/* ========================================
   ROCS — Áridos Sostenibles del Sur
   One-pager institucional
   ======================================== */

:root {
    --rocs-green: #73AF55;
    --rocs-green-dark: #5f9645;
    --rocs-green-deep: #4c7a3a;
    --rocs-green-soft: #8fc46f;
    --rocs-dark: #1f2120;
    --rocs-charcoal: #2a2c2d;
    --rocs-charcoal-2: #2c2e2e;
    --rocs-charcoal-3: #232525;
    --rocs-text: #3b3d3e;
    --rocs-text-muted: #5a5d5e;
    --rocs-text-muted-2: #6b6e6d;
    --rocs-text-on-dark: #a7aaa9;
    --rocs-bg: #f6f6f4;
    --rocs-bg-alt: #eef2ea;
    --rocs-border: #e4e6e2;
    --rocs-border-2: #cfd3ce;
    --rocs-border-3: #d8dad8;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body.rocs {
    background: var(--rocs-bg);
    color: var(--rocs-text);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
}

.rocs h1, .rocs h2, .rocs h3 {
    font-family: 'Archivo', sans-serif;
}

.rocs a { color: var(--rocs-green-deep); text-decoration: none; }
.rocs a:hover { color: var(--rocs-green-dark); }
.rocs ::selection { background: var(--rocs-green); color: #fff; }
.rocs img { max-width: 100%; display: block; }

@keyframes rocs-fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---- Layout helpers ---- */
.rocs .wrap {
    max-width: 1280px;
    margin: 0 auto;
}

.rocs .section {
    padding: 64px 20px;
}

.rocs .section--dark {
    background: var(--rocs-charcoal-2);
}

.rocs .section--alt {
    background: var(--rocs-bg-alt);
}

.rocs .section-header {
    max-width: 640px;
    margin-bottom: 36px;
}

.rocs .eyebrow {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rocs-green);
}

.rocs .eyebrow--soft { color: var(--rocs-green-deep); }
.rocs .eyebrow--on-dark { color: var(--rocs-green-soft); }

.rocs .section-title {
    margin: 14px 0 0;
    font-weight: 800;
    font-size: 28px;
    line-height: 1.15;
    color: var(--rocs-charcoal);
    letter-spacing: -0.5px;
}

.rocs .section-title--on-dark { color: #fff; }

.rocs .two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

/* ========================================
   NAV
   ======================================== */
.rocs .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: transparent;
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(8px);
    transition: background .3s, border-color .3s;
}

.rocs .site-nav.is-solid {
    background: rgba(246, 246, 244, .95);
    border-bottom-color: rgba(0, 0, 0, .06);
}

.rocs .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rocs .nav-logo {
    height: 28px;
    width: auto;
    max-width: 260px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter .3s;
}

.rocs .site-nav.is-solid .nav-logo {
    filter: none;
}

.rocs .nav-links {
    display: none;
    align-items: center;
    gap: 26px;
    flex: none;
    white-space: nowrap;
    margin-left: 40px;
}

.rocs .nav-link {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    transition: color .3s;
}

.rocs .site-nav.is-solid .nav-link {
    color: var(--rocs-charcoal);
}

.rocs .nav-cta {
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    background: var(--rocs-green);
    color: #fff !important;
    border-radius: 3px;
    transition: background .2s;
}

.rocs .nav-cta:hover { background: var(--rocs-green-dark); }

.rocs .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.rocs .nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: background .3s;
}

.rocs .site-nav.is-solid .nav-toggle-bar {
    background: var(--rocs-charcoal);
}

/* ---- Mobile menu ---- */
.rocs .mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99;
    background: var(--rocs-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.rocs .mobile-menu.is-open {
    display: flex;
}

.rocs .mobile-menu a {
    font-size: 21px;
    font-weight: 700;
    color: #fff;
}

.rocs .mobile-menu .nav-cta {
    padding: 14px 30px;
    margin-top: 10px;
    color: #fff !important;
}

/* ========================================
   HERO
   ======================================== */
.rocs .hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--rocs-dark);
}

.rocs .hero-media {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

.rocs .hero-media iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 177.78vh;
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw;
    border: 0;
    pointer-events: none;
}

.rocs .hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 22, 20, 0) 78%, rgba(31, 33, 32, 1) 100%);
    pointer-events: none;
}

.rocs .hero-content {
    position: relative;
    flex: none;
    padding: 28px 20px 36px;
    max-width: 980px;
    animation: rocs-fade-up .8s ease both;
}

.rocs .hero-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.rocs .hero-kicker-line {
    width: 30px;
    height: 2px;
    background: var(--rocs-green);
}

.rocs .hero-kicker-text {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c7e0b8;
}

.rocs .hero-title {
    margin: 0 0 22px;
    font-weight: 800;
    font-size: clamp(28px, 4.2vw, 56px);
    line-height: 1.08;
    color: #fff;
    letter-spacing: -1px;
}

.rocs .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.rocs .btn {
    text-align: center;
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 700;
    padding: 15px 28px;
    border-radius: 3px;
    transition: background .2s, border-color .2s;
}

.rocs .btn--primary {
    background: var(--rocs-green);
    color: #fff !important;
}

.rocs .btn--primary:hover { background: var(--rocs-green-dark); }

.rocs .btn--outline {
    border: 1.5px solid rgba(255, 255, 255, .5);
    color: #fff !important;
}

.rocs .btn--outline:hover { border-color: #fff; }

.rocs .btn--outline-green {
    border: 1.5px solid var(--rocs-green);
    color: var(--rocs-green-deep) !important;
    text-align: center;
    padding: 15px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
}

.rocs .btn--outline-green:hover { background: var(--rocs-bg-alt); }

/* ========================================
   TEXT BLOCKS
   ======================================== */
.rocs .lead-text p {
    margin: 0 0 18px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--rocs-text-muted);
    text-wrap: pretty;
}

.rocs .lead-text p:last-child { margin-bottom: 0; }

.rocs .lead-text--on-dark p {
    color: #b8bbba;
}

.rocs .media-frame {
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 6px;
    overflow: hidden;
}

.rocs .media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   CARDS GRID (Por qué elegirnos / Impacto)
   ======================================== */
.rocs .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, .08);
}

.rocs .card {
    background: var(--rocs-charcoal-2);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rocs .card svg { flex: none; }

.rocs .card h3 {
    margin: 0;
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}

.rocs .card h3.card--uppercase {
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 17px;
}

.rocs .card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--rocs-text-on-dark);
    text-wrap: pretty;
}

/* ========================================
   SOLUCIONES
   ======================================== */
.rocs .solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.rocs .solution {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.rocs .solution-media {
    width: 100%;
    height: 220px;
    border-radius: 6px;
    overflow: hidden;
}

.rocs .solution-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rocs .solution h3 {
    margin: 0;
    font-weight: 700;
    font-size: 21px;
    line-height: 1.25;
    color: var(--rocs-charcoal);
}

.rocs .norm-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 24px;
    border: 1.5px solid var(--rocs-border-2);
    border-radius: 6px;
    background: #fff;
    align-self: start;
    transition: border-color .2s, background .2s;
}

.rocs .norm-card:hover {
    border-color: var(--rocs-green);
    background: #f4f8f1;
}

.rocs .norm-card__label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--rocs-green);
}

.rocs .norm-card__title {
    font-weight: 700;
    font-size: 17px;
    color: var(--rocs-charcoal);
}

.rocs .norm-card__title span { color: var(--rocs-green); }

.rocs .norm-card__desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--rocs-text-muted-2);
}

/* ========================================
   PROCESO
   ======================================== */
.rocs .steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 36px;
}

.rocs .step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 2px solid #cfdcc5;
    padding-top: 18px;
}

.rocs .step__n {
    font-weight: 800;
    font-size: 13px;
    color: var(--rocs-green);
}

.rocs .step h3 {
    margin: 0;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.25;
    color: var(--rocs-charcoal);
}

.rocs .step p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--rocs-text-muted);
    text-wrap: pretty;
}

.rocs .process-gallery {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 220px);
    gap: 14px;
}

.rocs .process-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.rocs .process-gallery img:first-child {
    grid-row: auto;
}

/* ========================================
   ÁRIDOS VALORIZADOS
   ======================================== */
.rocs .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 36px;
}

.rocs .product-card {
    background: #fff;
    border: 1px solid var(--rocs-border);
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.rocs .product-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.rocs .product-card__body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rocs .product-card h3 {
    margin: 0;
    font-weight: 700;
    font-size: 18px;
    color: var(--rocs-charcoal);
}

.rocs .product-card p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--rocs-text-muted-2);
}

.rocs .tags-label {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a8d8e;
    margin-bottom: 18px;
}

.rocs .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rocs .tag {
    padding: 12px 22px;
    border: 1.5px solid var(--rocs-border-2);
    border-radius: 100px;
    font-size: 15px;
    font-weight: 600;
    color: var(--rocs-text);
}

/* ========================================
   COMPROMISO — ECONOMÍA CIRCULAR
   ======================================== */
.rocs .commitment-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 56px;
}

.rocs .commitment-media {
    width: 100%;
    height: 300px;
    border-radius: 6px;
    overflow: hidden;
}

.rocs .commitment-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rocs .pillars-label {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rocs-green-soft);
    margin-bottom: 16px;
}

.rocs .pillars {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: rgba(255, 255, 255, .12);
    border-top: 1px solid rgba(255, 255, 255, .12);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.rocs .pillar {
    background: var(--rocs-charcoal-2);
}

.rocs .pillar summary {
    list-style: none;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 4px;
    cursor: pointer;
    font-family: inherit;
}

.rocs .pillar summary::-webkit-details-marker { display: none; }

.rocs .pillar__head {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.rocs .pillar__n {
    font-weight: 800;
    font-size: 13px;
    color: var(--rocs-green);
}

.rocs .pillar__title {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
}

.rocs .pillar__icon {
    flex: none;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    color: var(--rocs-green);
}

.rocs .pillar__icon::before { content: '+'; }
.rocs .pillar[open] .pillar__icon::before { content: '−'; }

.rocs .pillar__body {
    padding: 0 4px 22px 41px;
}

.rocs .pillar__body p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--rocs-text-on-dark);
    text-wrap: pretty;
    max-width: 520px;
}

.rocs .impact-block {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 36px;
}

.rocs .impact-label {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rocs-green-soft);
    margin-bottom: 28px;
}

.rocs .impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1px;
    background: rgba(255, 255, 255, .08);
    margin-bottom: 28px;
}

.rocs .impact-note {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: #8a8d8e;
    font-style: italic;
}

/* ========================================
   CONTACTO
   ======================================== */
.rocs .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.rocs .contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.rocs .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.rocs .contact-item svg {
    flex: none;
    margin-top: 2px;
}

.rocs .contact-item__label {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rocs-green-deep);
    margin-bottom: 6px;
}

.rocs .contact-item__value {
    font-size: 15px;
    color: var(--rocs-charcoal);
}

.rocs .contact-item a.contact-item__value {
    font-weight: 600;
}

.rocs .map-embed {
    width: 100%;
    height: 240px;
    border: 0;
    border-radius: 6px;
}

.rocs .contact-form {
    background: #fff;
    border: 1px solid var(--rocs-border);
    border-radius: 6px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-self: start;
}

.rocs .field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rocs .field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--rocs-text);
}

.rocs .field input,
.rocs .field textarea {
    padding: 13px 14px;
    border: 1px solid var(--rocs-border-3);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    background: #fafaf9;
    width: 100%;
}

.rocs .field textarea { resize: none; }

.rocs .field input:focus,
.rocs .field textarea:focus {
    outline: none;
    border-color: var(--rocs-green);
}

.rocs .field-error {
    margin: 0;
    font-size: 13px;
    color: #c0392b;
}

.rocs .field-error li { list-style: none; }
.rocs .field-error ul { margin: 0; padding: 0; }

.rocs .form-submit {
    margin-top: 6px;
    padding: 15px;
    background: var(--rocs-green);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s;
}

.rocs .form-submit:hover { background: var(--rocs-green-dark); }

.rocs .form-alert {
    margin: 0;
    padding: 13px 16px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
}

.rocs .form-alert--success {
    background: #eaf5e4;
    color: #2f5c1f;
    border: 1px solid #bfe0ac;
}

.rocs .form-alert--danger {
    background: #fbeaea;
    color: #7d2020;
    border: 1px solid #f1c0c0;
}

/* ========================================
   FOOTER
   ======================================== */
.rocs .site-footer {
    padding: 32px 20px;
    background: var(--rocs-charcoal-3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-align: center;
}

.rocs .site-footer img {
    height: 26px;
    width: auto;
    filter: brightness(0) invert(1);
}

.rocs .site-footer span {
    font-size: 13px;
    color: #7c7f7e;
}

/* ========================================
   RESPONSIVE — desktop (>= 1100px)
   ======================================== */
@media (min-width: 1100px) {
    .rocs .site-nav { padding: 18px 40px; }
    .rocs .nav-logo { height: 34px; }
    .rocs .nav-links { display: flex; }
    .rocs .nav-toggle { display: none; }
    .rocs .mobile-menu { display: none !important; }

    .rocs .hero { min-height: 680px; }
    .rocs .hero-content { padding: 44px 48px 56px; }
    .rocs .hero-actions .btn { flex: 0 0 auto; }

    .rocs .section { padding: 120px 48px; }
    .rocs .section-header { margin-bottom: 56px; }
    .rocs .section-title { font-size: 38px; }
    .rocs .card { padding: 36px 30px; }

    .rocs .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }

    .rocs .solutions-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
    .rocs .solution-media { height: 300px; }

    .rocs .map-embed { height: 300px; }

    .rocs .steps-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; }

    .rocs .process-gallery {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        grid-template-rows: 240px 240px;
    }
    .rocs .process-gallery img:first-child { grid-row: span 2; }

    .rocs .commitment-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: 64px; }
    .rocs .commitment-media { height: 620px; position: sticky; top: 110px; }

    .rocs .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
    .rocs .contact-form { padding: 36px; }

    .rocs .site-footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
        padding: 32px 48px;
    }
}
