/* ==========================================================
   Havelmark — hoja única del sitio
   Orden: fuentes · variables · base · cabecera · portada ·
   cabecera interior · secciones de la portada · páginas
   interiores · formulario · pie · aviso de cookies · ajustes
   ========================================================== */

/* ---------- fuentes ---------- */
@font-face {
    font-display:swap;
    font-family:'Funnel Display';
    font-style:normal;
    font-weight:400 800;
    src:url('../fonts/funnel-display-var.woff2') format('woff2');
    unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    ascent-override:95.20%;
    descent-override:23.80%;
    font-family:'Funnel Display Fallback';
    size-adjust:105.06%;
    src:local('Arial');
}
@font-face {
    font-display:swap;
    font-family:'Funnel Sans';
    font-style:normal;
    font-weight:300 800;
    src:url('../fonts/funnel-sans-var.woff2') format('woff2');
    unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    ascent-override:100.20%;
    descent-override:25.10%;
    font-family:'Funnel Sans Fallback';
    size-adjust:99.80%;
    src:local('Arial');
}

/* ---------- variables ---------- */
:root {
    --a1: rgb(0, 122, 112);
    --a2: rgb(214, 240, 120);
    --a3: rgb(84, 196, 184);
    --a4: rgb(0, 96, 88);
    --d1: 0 1px 2px rgba(14, 18, 24, 0.08), 0 18px 40px -12px rgba(14, 18, 24, 0.26);
    --d2: 46px; /* alcance real de --d1 bajo la caja: 18 + 40 − 12 */
    --f1: 'Funnel Display', 'Funnel Display Fallback', Arial, sans-serif;
    --f2: 'Funnel Sans', 'Funnel Sans Fallback', Arial, sans-serif;
    --g1: rgb(14, 18, 24);
    --g2: rgb(28, 33, 42);
    --g3: rgb(244, 246, 249);
    --g4: rgb(232, 235, 240);
    --g5: rgb(22, 26, 34);
    --g6: rgb(96, 104, 118);
    --g7: rgb(216, 221, 229);
    --g8: rgb(170, 178, 191);
    --h1: 44px; /* alto de la franja informativa */
    --k1: 10px;
    --r1: clamp(48px, 6vw, 72px);
    --r2: clamp(56px, 7vw, 88px);
    --r3: clamp(64px, 8vw, 104px);
    --r4: clamp(72px, 9vw, 120px);
    --r5: clamp(80px, 10vw, 136px);
    --r6: clamp(88px, 11vw, 156px);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--g3);
    color: var(--g5);
    font-family: var(--f2);
    font-size: 1.0625rem;
    line-height: 1.62;
    margin: 0;
}

body.nav-shown {
    overflow: hidden;
}

img {
    display: block;
    height: auto;
    max-width: 100%;
}

h1,
h2,
h3,
h4 {
    font-family: var(--f1);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 0.6em;
}

h2 {
    font-size: clamp(2rem, 3.6vw, 3rem);
}

h3 {
    font-size: clamp(1.3rem, 1.8vw, 1.6rem);
}

p {
    margin: 0 0 1em;
}

a {
    color: var(--g5);
    text-decoration-color: var(--a1);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--a4);
}

:focus-visible {
    outline: 3px solid var(--a3);
    outline-offset: 2px;
}

[id] {
    scroll-margin-top: 96px; /* la fila del menú queda pegada arriba */
}

.page-width {
    margin-left: auto;
    margin-right: auto;
    max-width: 1320px;
    padding-left: clamp(18px, 4vw, 40px);
    padding-right: clamp(18px, 4vw, 40px);
}

.sr-only {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* marcador inclinado: el signo de la casa */
.slanted-label {
    align-items: center;
    color: var(--a4);
    display: inline-flex;
    font-family: var(--f1);
    font-size: 0.82rem;
    font-weight: 600;
    gap: 12px;
    letter-spacing: 0.12em;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.slanted-label::before {
    background: var(--a1);
    content: "";
    display: inline-block;
    height: 14px;
    transform: skewX(-22deg);
    width: 26px;
}

.dark-surface .slanted-label {
    color: var(--a2);
}

.dark-surface .slanted-label::before {
    background: var(--a2);
}

.action-button {
    align-items: center;
    background: var(--a1);
    border: 2px solid var(--a1);
    border-radius: 0;
    color: rgb(255, 255, 255);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--f1);
    font-size: 1rem;
    font-weight: 600;
    gap: 10px;
    justify-content: center;
    letter-spacing: 0.01em;
    min-height: 52px;
    padding: 12px 26px;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.action-button:hover {
    background: var(--a4);
    border-color: var(--a4);
    color: rgb(255, 255, 255);
}

.action-button-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.55);
    color: rgb(255, 255, 255);
}

.action-button-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--a2);
    color: var(--a2);
}

.action-button-outline {
    background: transparent;
    color: var(--a4);
}

.action-button-outline:hover {
    background: var(--a1);
    color: rgb(255, 255, 255);
}

/* ---------- cabecera ---------- */
.site-masthead {
    background: var(--g1);
    color: rgb(255, 255, 255);
    position: sticky;
    top: calc(-1 * var(--h1)); /* la franja se va con el scroll, el menú se queda */
    z-index: 150;
}

.masthead-info-strip {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    font-size: 0.9rem;
}

.masthead-info-row {
    align-items: center;
    display: flex;
    gap: 22px;
    height: var(--h1);
    justify-content: flex-end;
}

.masthead-info-hours {
    color: var(--g8);
    display: none;
    margin: 0 auto 0 0;
}

.masthead-info-link {
    align-items: center;
    color: rgb(255, 255, 255);
    display: inline-flex;
    min-height: 44px;
    text-decoration: none;
}

.masthead-info-link:hover {
    color: var(--a2);
}

.masthead-main-row {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    min-height: 76px;
}

.masthead-brand-link {
    align-items: center;
    color: rgb(255, 255, 255);
    display: inline-flex;
    font-family: var(--f1);
    font-size: 1.55rem;
    font-weight: 700;
    gap: 12px;
    letter-spacing: -0.02em;
    min-height: 48px;
    text-decoration: none;
}

.masthead-brand-link::before {
    background: linear-gradient(90deg, var(--a3) 0 38%, transparent 38% 62%, var(--a3) 62%);
    content: "";
    height: 24px;
    transform: skewX(-14deg);
    width: 22px;
}

.masthead-brand-link:hover {
    color: var(--a2);
}

.masthead-menu-trigger {
    align-items: center;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 0;
    color: rgb(255, 255, 255);
    cursor: pointer;
    display: inline-flex;
    font-family: var(--f1);
    font-size: 1rem;
    font-weight: 600;
    gap: 10px;
    min-height: 48px;
    min-width: 48px;
    padding: 0 16px;
    position: relative;
    z-index: 170;
}

.masthead-menu-bars {
    display: inline-grid;
    gap: 4px;
}

.masthead-menu-bars span {
    background: currentColor;
    display: block;
    height: 2px;
    transition: transform 0.2s ease;
    width: 18px;
}

body.nav-shown .masthead-menu-bars span:first-child {
    transform: translateY(3px) rotate(45deg);
}

body.nav-shown .masthead-menu-bars span:last-child {
    transform: translateY(-3px) rotate(-45deg);
}

.masthead-primary-nav {
    background: var(--g1);
    inset: 0;
    overflow-y: auto;
    padding: 132px clamp(18px, 6vw, 48px) 48px;
    position: fixed;
    transform: translateY(-14px);
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    visibility: hidden;
    z-index: 160; /* dentro del contexto de la cabecera (150) */
}

body.nav-shown .masthead-primary-nav {
    transform: none;
    transition: transform 0.25s ease, visibility 0s;
    visibility: visible;
}

.masthead-nav-list {
    display: grid;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.masthead-nav-link {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgb(255, 255, 255);
    display: flex;
    font-family: var(--f1);
    font-size: 1.9rem;
    font-weight: 600;
    min-height: 64px;
    text-decoration: none;
}

.masthead-nav-link:hover,
.masthead-nav-link[aria-current="page"] {
    color: var(--a2);
}

.masthead-nav-cta {
    margin-top: 28px;
}

@media (min-width: 720px) {
    .masthead-info-hours {
        display: block;
    }
}

@media (min-width: 1000px) {
    .masthead-menu-trigger {
        display: none;
    }

    .masthead-primary-nav {
        background: transparent;
        inset: auto;
        overflow: visible;
        padding: 0;
        position: static;
        transform: none;
        transition: none;
        visibility: visible;
    }

    .masthead-nav-list {
        align-items: center;
        display: flex;
        gap: 30px;
    }

    .masthead-nav-link {
        border-bottom: 0;
        font-size: 1.02rem;
        min-height: 48px;
        position: relative;
    }

    .masthead-nav-link[aria-current="page"]::after {
        background: var(--a2);
        bottom: 6px;
        content: "";
        height: 4px;
        left: 0;
        position: absolute;
        transform: skewX(-22deg);
        width: 22px;
    }

    .masthead-nav-cta {
        margin-top: 0;
    }

    .masthead-nav-cta .action-button {
        min-height: 48px;
        padding: 10px 20px;
    }
}

/* ---------- portada (solo tipografía) ---------- */
.dark-surface {
    background: var(--g1);
    color: rgb(255, 255, 255);
}

.stage-hero {
    /* luz de escenario: un foco frío y un rebote lima muy bajo */
    background:
        radial-gradient(ellipse 55% 60% at 76% 52%, rgba(84, 196, 184, 0.2), transparent 70%),
        radial-gradient(circle at 8% 92%, rgba(214, 240, 120, 0.07), transparent 38%),
        var(--g1);
    overflow: hidden;
    padding-bottom: clamp(64px, 9vw, 128px);
    padding-top: clamp(40px, 5vw, 72px);
}

.stage-hero-grid {
    display: grid;
    gap: 56px;
}

.stage-hero-copy {
    min-width: 0;
}

.stage-headline {
    font-size: clamp(3rem, 10.5vw, 6.5rem);
    letter-spacing: -0.035em;
    line-height: 0.98;
    margin-bottom: 30px;
}

.stage-headline-line {
    display: block;
}

.stage-rotor {
    color: var(--a2);
    display: block;
    height: 1.12em;
    overflow: hidden;
}

.stage-rotor-track {
    animation: stage-rotor-steps 11s cubic-bezier(0.7, 0, 0.3, 1) infinite;
    display: block;
}

.stage-rotor-track span {
    display: block;
    height: 1.12em;
    line-height: 1.12;
}

@keyframes stage-rotor-steps {
    0%, 18% {
        transform: translateY(0);
    }
    25%, 43% {
        transform: translateY(-20%);
    }
    50%, 68% {
        transform: translateY(-40%);
    }
    75%, 93% {
        transform: translateY(-60%);
    }
    100% {
        transform: translateY(-80%);
    }
}

.stage-lead {
    color: var(--g8);
    font-size: clamp(1.08rem, 1.4vw, 1.25rem);
    max-width: 34em;
}

.stage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.stage-ledger {
    align-self: center;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding-left: clamp(18px, 3vw, 36px);
}

.stage-ledger-list {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.stage-ledger-item {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: grid;
    gap: 2px 18px;
    grid-template-columns: auto 1fr;
    padding: 18px 0;
}

.stage-ledger-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.stage-ledger-figure {
    color: rgb(255, 255, 255);
    font-family: var(--f1);
    font-size: clamp(2.4rem, 4.4vw, 3.6rem);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    grid-row: span 2;
    letter-spacing: -0.03em;
    line-height: 1;
    min-width: 2.6ch;
}

.stage-ledger-unit {
    align-items: center;
    color: var(--a2);
    display: flex;
    font-family: var(--f1);
    font-size: 0.86rem;
    font-weight: 600;
    gap: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stage-ledger-unit::before {
    background: var(--a2);
    content: "";
    height: 10px;
    transform: skewX(-22deg);
    width: 18px;
}

.stage-ledger-note {
    color: var(--g8);
    font-size: 0.98rem;
    margin: 0;
}

@media (min-width: 960px) {
    .stage-hero-grid {
        align-items: end;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

    .stage-hero-copy {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    .stage-lead {
        margin-left: auto;
    }

    .stage-actions {
        justify-content: flex-end;
    }

    .stage-ledger {
        grid-column: 1;
        grid-row: 1;
    }
}

/* ---------- cabecera de páginas interiores ---------- */
.inner-stage {
    background:
        radial-gradient(ellipse 50% 80% at 85% 10%, rgba(84, 196, 184, 0.16), transparent 70%),
        var(--g1);
    padding-bottom: clamp(48px, 6vw, 84px);
    padding-top: clamp(40px, 5vw, 72px);
}

.inner-stage-grid {
    display: grid;
    gap: 36px;
}

.inner-stage-copy {
    min-width: 0;
}

.inner-stage-title {
    font-size: clamp(2.5rem, 5.4vw, 3.6rem);
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.inner-stage-lead {
    color: var(--g8);
    font-size: 1.12rem;
    margin: 0;
    max-width: 38em;
}

.inner-stage-aside {
    align-self: end;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    min-width: 0;
    padding-left: clamp(18px, 3vw, 32px);
}

.inner-stage-aside-title {
    color: var(--g8);
    font-family: var(--f1);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.inner-stage-links {
    display: grid;
    list-style: none;
    margin: 0;
    padding: 0;
}

.inner-stage-links a {
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgb(255, 255, 255);
    display: flex;
    gap: 14px;
    min-height: 48px;
    text-decoration: none;
}

.inner-stage-links a::before {
    background: var(--a2);
    content: "";
    flex: 0 0 auto;
    height: 9px;
    transform: skewX(-22deg);
    width: 16px;
}

.inner-stage-links a:hover {
    color: var(--a2);
}

.inner-stage-facts {
    display: grid;
    gap: 0;
    margin: 0;
}

.inner-stage-facts div {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 12px 0;
}

.inner-stage-facts dt {
    color: var(--g8);
}

.inner-stage-facts dd {
    color: rgb(255, 255, 255);
    font-family: var(--f1);
    font-weight: 600;
    margin: 0;
    text-align: right;
}

@media (min-width: 960px) {
    .inner-stage-grid {
        align-items: end;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }

    .inner-stage-copy {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    .inner-stage-lead {
        margin-left: auto;
    }

    .inner-stage-aside {
        grid-column: 1;
        grid-row: 1;
    }
}

/* ---------- bloques comunes del cuerpo ---------- */
.body-section {
    padding-bottom: var(--r1);
    padding-top: var(--r1);
}

.body-section-wide {
    padding-bottom: var(--r3);
    padding-top: var(--r3);
}

.body-section-head {
    display: grid;
    gap: 18px 48px;
    margin-bottom: 40px;
}

.body-section-head h2 {
    margin: 0;
    max-width: 16em;
}

.body-section-intro {
    color: var(--g6);
    margin: 0;
    max-width: 36em;
}

@media (min-width: 960px) {
    .body-section-head {
        align-items: end;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.ruled-divider {
    border: 0;
    border-top: 1px solid var(--g7);
    margin: 0;
}

.fact-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.fact-chip {
    background: var(--g4);
    border-left: 4px solid var(--a1);
    border-radius: 0 8px 8px 0;
    color: var(--g5);
    font-size: 0.95rem;
    padding: 6px 14px;
}

.fact-chip strong {
    font-family: var(--f1);
}

/* ---------- carril de sectores ---------- */
.sector-rail-controls {
    display: flex;
    gap: 10px;
}

.sector-rail-button {
    align-items: center;
    background: transparent;
    border: 1px solid var(--g5);
    border-radius: 0;
    color: var(--g5);
    cursor: pointer;
    display: inline-flex;
    font-size: 1.3rem;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.sector-rail-button:hover {
    background: var(--g5);
    color: rgb(255, 255, 255);
}

.sector-rail-headline {
    display: grid;
    gap: 24px;
}

@media (min-width: 960px) {
    .sector-rail-headline {
        align-items: end;
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

.sector-rail-track {
    display: flex;
    gap: 0;
    margin-top: 36px;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 18px;
    scroll-snap-type: x mandatory;
    scrollbar-color: var(--a1) transparent;
    scrollbar-width: thin;
}

.sector-rail-panel {
    border-left: 1px solid var(--g7);
    flex: 0 0 min(84%, 400px);
    padding: 0 26px;
    scroll-snap-align: start;
}

.sector-rail-panel:first-child {
    border-left: 0;
    padding-left: 0;
}

.sector-rail-photo {
    aspect-ratio: 5 / 4;
    margin: 0 0 22px;
    object-fit: cover;
    width: 100%;
}

.sector-rail-index {
    color: var(--a4);
    display: block;
    font-family: var(--f1);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.sector-rail-panel p {
    color: var(--g6);
}

.sector-rail-link {
    align-items: center;
    display: inline-flex;
    font-weight: 600;
    min-height: 44px;
}

/* ---------- recorrido con trazo svg ---------- */
.delivery-path-board {
    background: var(--g4);
    border-radius: 12px;
    padding: clamp(28px, 4vw, 48px) clamp(18px, 3vw, 36px);
    position: relative;
}

.delivery-path-curve {
    display: none;
    fill: none;
    height: 120px;
    left: clamp(18px, 3vw, 36px);
    position: absolute;
    right: clamp(18px, 3vw, 36px);
    top: clamp(28px, 4vw, 48px);
    width: calc(100% - 2 * clamp(18px, 3vw, 36px));
}

.delivery-path-curve-vertical {
    bottom: 40px;
    display: block;
    fill: none;
    height: calc(100% - 80px);
    left: clamp(18px, 3vw, 36px);
    position: absolute;
    top: 40px;
    width: 36px;
}

.delivery-path-curve path,
.delivery-path-curve-vertical path {
    stroke: var(--a1);
    stroke-dasharray: 2 9;
    stroke-linecap: round;
    stroke-width: 3;
}

.delivery-path-steps {
    counter-reset: delivery;
    display: grid;
    gap: 34px;
    list-style: none;
    margin: 0;
    padding: 0 0 0 58px;
    position: relative;
}

.delivery-path-step {
    counter-increment: delivery;
    position: relative;
}

.delivery-path-step::before {
    align-items: center;
    background: var(--g1);
    color: var(--a2);
    content: counter(delivery);
    display: flex;
    font-family: var(--f1);
    font-size: 0.95rem;
    font-weight: 700;
    height: 36px;
    justify-content: center;
    left: -58px;
    position: absolute;
    top: -4px;
    transform: skewX(-12deg);
    width: 36px;
}

.delivery-path-step h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.delivery-path-step p {
    color: var(--g6);
    font-size: 1rem;
    margin: 0 0 10px;
}

.delivery-path-time {
    color: var(--a4);
    font-family: var(--f1);
    font-size: 0.9rem;
    font-weight: 700;
}

@media (min-width: 1000px) {
    .delivery-path-curve {
        display: block;
    }

    .delivery-path-curve-vertical {
        display: none;
    }

    .delivery-path-steps {
        gap: 0;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 120px 0 0;
    }

    .delivery-path-step {
        padding: 0 16px;
        text-align: center;
    }

    .delivery-path-step::before {
        left: calc(50% - 18px);
        top: -78px; /* cae sobre el trazo: 120 − 60 + 18 */
    }
}

/* ---------- tabla de programas ---------- */
.program-compare-frame {
    background: rgb(255, 255, 255);
    border-radius: 12px;
    box-shadow: var(--d1);
    overflow-x: auto;
    scrollbar-color: var(--a1) transparent;
    scrollbar-width: thin;
}

.program-compare-table {
    border-collapse: collapse;
    min-width: 640px;
    width: 100%;
}

.program-compare-table caption {
    color: var(--g6);
    font-size: 0.95rem;
    padding: 20px 24px 0;
    text-align: left;
}

.program-compare-table th,
.program-compare-table td {
    border-bottom: 1px solid var(--g7);
    padding: 16px 24px;
    text-align: left;
    vertical-align: top;
}

.program-compare-table thead th {
    font-family: var(--f1);
    font-size: 1.25rem;
    letter-spacing: -0.01em;
}

.program-compare-table tbody th {
    color: var(--g6);
    font-weight: 500;
    width: 26%;
}

.program-compare-table tbody tr:last-child th,
.program-compare-table tbody tr:last-child td {
    border-bottom: 0;
}

.program-compare-price {
    color: var(--a4);
    font-family: var(--f1);
    font-size: 1.35rem;
    font-weight: 700;
}

.program-compare-note {
    color: var(--g6);
    font-size: 0.95rem;
    margin-top: calc(var(--d2) + 20px);
    max-width: 52em;
}

/* ---------- historias y citas ---------- */
.story-pair {
    display: grid;
    gap: 0;
}

.story-card {
    border-top: 1px solid var(--g7);
    padding: 32px 0;
}

.story-card h3 {
    max-width: 18em;
}

.story-card p {
    color: var(--g5);
}

@media (min-width: 900px) {
    .story-pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-card {
        border-top: 0;
        padding: 0 40px;
    }

    .story-card:first-child {
        padding-left: 0;
    }

    .story-card + .story-card {
        border-left: 1px solid var(--g7);
    }
}

.quote-pair {
    display: grid;
    gap: 28px;
}

.quote-block {
    border-top: 3px solid var(--a1);
    margin: 0;
    padding: 26px 0 0;
}

.quote-block p {
    font-family: var(--f1);
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.32;
}

.quote-block cite {
    color: var(--g6);
    display: block;
    font-size: 0.98rem;
    font-style: normal; /* cite viene en cursiva por defecto */
}

@media (min-width: 900px) {
    .quote-pair {
        gap: 56px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---------- franja final con formulario ---------- */
.closing-panel {
    background:
        radial-gradient(ellipse 60% 90% at 100% 0%, rgba(84, 196, 184, 0.18), transparent 70%),
        var(--g1);
    border-radius: 12px;
    color: rgb(255, 255, 255);
    display: grid;
    gap: 40px;
    padding: clamp(28px, 5vw, 64px);
}

.closing-panel h2 {
    max-width: 13em;
}

.closing-panel p {
    color: var(--g8);
}

.closing-panel a {
    color: rgb(255, 255, 255);
}

.closing-contact-list {
    display: grid;
    gap: 6px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.closing-contact-list a {
    align-items: center;
    display: inline-flex;
    font-family: var(--f1);
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 44px;
    text-decoration-color: var(--a2);
}

@media (min-width: 960px) {
    .closing-panel {
        align-items: start;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

/* ---------- formulario ---------- */
.request-form {
    background: rgb(255, 255, 255);
    border-radius: 10px;
    color: var(--g5); /* color propio: la tarjeta clara vive dentro de un fondo oscuro */
    display: grid;
    gap: 18px;
    padding: clamp(22px, 3vw, 36px);
    position: relative;
}

.request-form-title {
    font-size: 1.5rem;
    margin: 0;
}

.request-form-field {
    display: grid;
    gap: 6px;
}

.request-form-field label {
    font-family: var(--f1);
    font-size: 0.98rem;
    font-weight: 600;
}

.request-form-field input {
    background: var(--g3);
    border: 1px solid var(--g6);
    border-radius: 0;
    color: var(--g5);
    font-family: var(--f2);
    font-size: 1.05rem;
    min-height: 52px;
    padding: 12px 14px;
    width: 100%;
}

.request-form-field input:focus-visible {
    border-color: var(--a1);
}

.request-form-consent {
    align-items: start;
    display: grid;
    font-size: 0.98rem;
    gap: 12px;
    grid-template-columns: 24px 1fr;
}

.request-form-consent input {
    accent-color: var(--a1);
    height: 22px;
    margin: 2px 0 0;
    width: 22px;
}

.request-form .request-form-consent a {
    color: var(--g5);
}

.request-form-trap {
    height: 1px;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

.request-form-status {
    color: var(--g6);
    font-size: 0.95rem;
    margin: 0;
    min-height: 1.5em;
}

.request-form-status[data-state="error"] {
    color: rgb(168, 36, 36);
}

/* ---------- páginas interiores ---------- */
.anchor-sector {
    border-top: 1px solid var(--g7);
}

.sector-detail-grid {
    display: grid;
    gap: 40px;
}

.sector-detail-copy {
    min-width: 0;
}

.sector-detail-copy p {
    max-width: 40em;
}

.sector-detail-photo {
    aspect-ratio: 5 / 4;
    margin: 28px 0 0;
    max-height: clamp(300px, 46vh, 460px);
    object-fit: cover;
    width: 100%;
}

.spec-sheet {
    align-self: start;
    background: rgb(255, 255, 255);
    border-radius: 10px;
    border-top: 4px solid var(--a1);
    margin: 0;
    padding: 8px 26px 14px;
}

.spec-sheet-title {
    font-size: 1.1rem;
    margin: 18px 0 6px;
}

.spec-sheet-list {
    margin: 0;
}

.spec-sheet-row {
    border-bottom: 1px solid var(--g7);
    display: grid;
    gap: 4px;
    padding: 14px 0;
}

.spec-sheet-row:last-child {
    border-bottom: 0;
}

.spec-sheet dt {
    color: var(--g6);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.spec-sheet dd {
    margin: 0;
}

@media (min-width: 960px) {
    .sector-detail-grid {
        grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    }

    .sector-detail-grid-flipped .sector-detail-copy {
        grid-column: 2;
        grid-row: 1;
    }

    .sector-detail-grid-flipped .spec-sheet {
        grid-column: 1;
        grid-row: 1;
    }

    .sector-detail-grid-flipped {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }
}

.numbered-tiles {
    counter-reset: tile;
    display: grid;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.numbered-tile {
    background: var(--g4);
    border-radius: 10px;
    counter-increment: tile;
    padding: 26px 24px 22px;
}

.numbered-tile::before {
    color: var(--a4);
    content: counter(tile, decimal-leading-zero);
    display: block;
    font-family: var(--f1);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 14px;
}

.numbered-tile h3 {
    font-size: 1.2rem;
}

.numbered-tile p {
    color: var(--g5);
    font-size: 1rem;
    margin: 0;
}

@media (min-width: 760px) {
    .numbered-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .numbered-tiles-four {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.case-story {
    border-top: 1px solid var(--g7);
    display: grid;
    gap: 28px;
    padding-bottom: var(--r2);
    padding-top: var(--r2);
}

.case-story-number {
    color: var(--a4);
    font-family: var(--f1);
    font-size: clamp(3.4rem, 7vw, 5.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.9;
}

.case-story-body {
    min-width: 0;
}

.case-story-body h2 {
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    max-width: 22em;
}

.case-story-body h3 {
    color: var(--g6);
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    margin: 24px 0 8px;
    text-transform: uppercase;
}

.case-story-figures {
    background: var(--g1);
    border-radius: 10px;
    color: rgb(255, 255, 255);
    display: grid;
    gap: 0;
    margin: 0;
    padding: 10px 24px;
}

.case-story-figures div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 0;
}

.case-story-figures div:last-child {
    border-bottom: 0;
}

.case-story-figures dt {
    color: var(--g8);
    font-size: 0.92rem;
}

.case-story-figures dd {
    font-family: var(--f1);
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0;
}

@media (min-width: 960px) {
    .case-story {
        grid-template-columns: 140px minmax(0, 1fr) 280px;
    }

    .case-story-figures {
        align-self: start;
    }
}

.wide-photo-figure {
    margin: 0;
}

.wide-photo-figure img {
    max-height: clamp(300px, 52vh, 560px);
    object-fit: cover;
    width: 100%;
}

.wide-photo-figure figcaption {
    border-bottom: 1px solid var(--g7);
    color: var(--g6);
    font-size: 0.95rem;
    padding: 12px 0;
}

.split-copy-grid {
    display: grid;
    gap: 40px;
}

.split-copy-grid > * {
    min-width: 0;
}

.wide-photo-figure + .split-copy-grid {
    margin-top: 48px;
}

@media (min-width: 960px) {
    .split-copy-grid {
        align-items: start;
        grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    }
}

.narrative-column p {
    max-width: 40em;
}

.side-photo-figure {
    margin: 0;
}

.side-photo-figure img {
    aspect-ratio: 7 / 5;
    max-height: clamp(280px, 44vh, 440px);
    object-fit: cover;
    width: 100%;
}

.side-photo-figure figcaption {
    background: var(--g4);
    color: var(--g5);
    font-size: 0.95rem;
    padding: 12px 16px;
}

.crew-table-frame {
    border-radius: 10px;
    border-top: 4px solid var(--a1);
    overflow-x: auto;
    scrollbar-color: var(--a1) transparent;
    scrollbar-width: thin;
}

.crew-table {
    background: rgb(255, 255, 255);
    border-collapse: collapse;
    min-width: 560px;
    width: 100%;
}

.crew-table caption {
    font-family: var(--f1);
    font-size: 1.15rem;
    font-weight: 700;
    padding: 18px 22px 6px;
    text-align: left;
}

.crew-table th,
.crew-table td {
    border-bottom: 1px solid var(--g7);
    padding: 14px 22px;
    text-align: left;
    vertical-align: top;
}

.crew-table thead th {
    color: var(--g6);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.inverse-band {
    background: var(--g2);
    border-radius: 12px;
    color: rgb(255, 255, 255);
    padding: clamp(28px, 4vw, 52px);
}

.inverse-band p {
    color: var(--g8);
}

.inverse-band a {
    color: rgb(255, 255, 255);
    text-decoration-color: var(--a2);
}

.inverse-band-figure {
    color: var(--a2);
    display: block;
    font-family: var(--f1);
    font-size: clamp(3rem, 6vw, 4.6rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 14px;
}

/* ---------- contacto ---------- */
.contact-layout {
    display: grid;
    gap: 40px;
}

.contact-layout > * {
    min-width: 0;
}

@media (min-width: 960px) {
    .contact-layout {
        align-items: start;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    }
}

.contact-card {
    background: rgb(255, 255, 255);
    border-left: 4px solid var(--a1);
    border-radius: 0 10px 10px 0;
    padding: 26px 28px;
}

.contact-card address {
    font-style: normal;
    line-height: 1.75;
}

.contact-card a {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
}

.hours-table {
    border-collapse: collapse;
    margin-top: 10px;
    width: 100%;
}

.hours-table caption {
    font-family: var(--f1);
    font-weight: 700;
    padding-bottom: 6px;
    text-align: left;
}

.hours-table th,
.hours-table td {
    border-top: 1px solid var(--g7);
    padding: 10px 0;
    text-align: left;
}

.hours-table td {
    text-align: right;
}

.contact-form-shell {
    background: var(--g1);
    border-radius: 12px;
    padding: clamp(14px, 2vw, 22px);
}

/* ---------- páginas legales ---------- */
.legal-sheet {
    display: grid;
    gap: 22px;
}

.legal-sheet > * {
    min-width: 0;
}

.case-photo-band {
    padding-top: 12px;
}

.legal-card {
    background: rgb(255, 255, 255);
    border-radius: 10px;
    border-top: 1px solid var(--g7);
    padding: clamp(22px, 3vw, 34px);
}

.legal-card h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
}

.legal-card p:last-child,
.legal-card ul:last-child {
    margin-bottom: 0;
}

.legal-card ul {
    margin: 0 0 1em;
    padding-left: 1.2em;
}

.legal-card li {
    margin-bottom: 6px;
}

.legal-card-accent {
    border-left: 4px solid var(--a1);
    border-radius: 0 10px 10px 0;
}

.legal-table {
    border-collapse: collapse;
    width: 100%;
}

.legal-table-frame {
    overflow-x: auto;
    scrollbar-color: var(--a1) transparent;
    scrollbar-width: thin;
}

.legal-table caption {
    color: var(--g6);
    font-size: 0.95rem;
    padding-bottom: 8px;
    text-align: left;
}

.legal-table th,
.legal-table td {
    border-top: 1px solid var(--g7);
    overflow-wrap: anywhere;
    padding: 12px 14px 12px 0;
    text-align: left;
    vertical-align: top;
}

.legal-table th[scope="row"] {
    color: var(--g6);
    font-weight: 600;
    width: 34%;
}

.legal-table thead th {
    color: var(--g6);
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.legal-reset-button {
    margin-top: 6px;
}

@media (min-width: 1000px) {
    .legal-sheet-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .legal-sheet-split .legal-card-full {
        grid-column: 1 / -1;
    }
}

/* ---------- página no encontrada y confirmación ---------- */
.route-list {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.route-list a {
    align-items: center;
    border-bottom: 1px solid var(--g7);
    display: flex;
    font-family: var(--f1);
    font-size: 1.3rem;
    font-weight: 600;
    justify-content: space-between;
    min-height: 64px;
    text-decoration: none;
}

.route-list-dark a {
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.route-list-dark a::after {
    color: var(--a2);
}

.route-list a::after {
    color: var(--a1);
    content: "→";
}

/* ---------- pie ---------- */
.site-footer {
    background: var(--g1);
    color: var(--g8);
    font-size: 0.98rem;
    margin-top: var(--r6);
    padding-bottom: 40px;
    padding-top: var(--r4);
}

.site-footer-columns {
    display: grid;
    gap: 40px;
}

@media (min-width: 900px) {
    .site-footer-columns {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    }
}

.site-footer-brand {
    color: rgb(255, 255, 255);
    font-family: var(--f1);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}

.site-footer address {
    font-style: normal;
    line-height: 1.75;
}

.site-footer address small {
    color: var(--g8);
    display: block;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: 12px;
}

.site-footer-heading {
    color: rgb(255, 255, 255);
    font-size: 1rem;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.site-footer-links {
    display: grid;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer a {
    align-items: center;
    color: rgb(255, 255, 255);
    display: inline-flex;
    min-height: 44px;
    text-decoration-color: var(--a3);
}

.site-footer a:hover {
    color: var(--a2);
}

.site-footer-base {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 48px;
    padding-top: 22px;
}

.site-footer-base p {
    margin: 0;
}

/* ---------- aviso de cookies ---------- */
.aviso-cookies {
    background: var(--g1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    bottom: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 36px -10px rgba(0, 0, 0, 0.5);
    color: rgb(255, 255, 255);
    left: 12px;
    padding: 16px 18px;
    position: fixed;
    right: 12px;
    visibility: hidden;
    z-index: 140;
}

.aviso-cookies.woke {
    visibility: visible;
}

.aviso-cookies-question {
    font-family: var(--f1);
    font-size: 1.02rem;
    font-weight: 700;
    margin: 0 0 4px;
}

.aviso-cookies-answer {
    color: var(--g8);
    font-size: 0.95rem;
    line-height: 1.45;
    margin: 0 0 12px;
}

.aviso-cookies-answer a {
    color: rgb(255, 255, 255);
    text-decoration-color: var(--a2);
}

.aviso-cookies-buttons {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}

.aviso-cookies-buttons button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 0;
    color: rgb(255, 255, 255);
    cursor: pointer;
    font-family: var(--f1);
    font-size: 0.98rem;
    font-weight: 600;
    min-height: 46px;
    padding: 8px 12px;
}

.aviso-cookies-buttons button:hover {
    border-color: var(--a2);
    color: var(--a2);
}

@media (min-width: 640px) {
    .aviso-cookies {
        max-width: 380px;
        right: auto;
    }
}

/* ---------- ajustes ---------- */
@media (prefers-reduced-motion: reduce) {
    .stage-rotor-track {
        animation: none;
    }

    .action-button,
    .masthead-primary-nav,
    .masthead-menu-bars span {
        transition: none;
    }
}

@media (min-width: 2200px) {
}

@media print {
    .site-masthead,
    .aviso-cookies {
        display: none;
    }
}
