/* ==========================================================================
   Sale y Sémola — Home V1 Scrollytelling (Bespoke Dinamo Sites Architecture)
   100% Standalone CSS (No dependency on purged tailwind.min.css)
   Artisanal Heritage Palette:
   - Linen / Surface: #fbf9f4, #f4eee4, #eae3d5
   - Primary Navy: #00234b, #001730, #000e24
   - Secondary Gold / Sand: #c9a054, #f3dca6, #f1e1c0, #695d43
   - Tertiary Forest Green: #2D3E2F, #172719, #d4e8d3
   - Coral Error CTA: #ba1a1a
   ========================================================================== */

:root {
    --c-linen: #fbf9f4;
    --c-linen-warm: #f4eee4;
    --c-linen-deep: #e8e0d2;
    --c-navy: #00234b;
    --c-navy-mid: #0b2240;
    --c-navy-dark: #001730;
    --c-navy-abyss: #020c1b;
    --c-gold: #c9a054;
    --c-gold-bright: #f3dca6;
    --c-sand: #f1e1c0;
    --c-bronze: #695d43;
    --c-forest: #2D3E2F;
    --c-forest-dark: #142216;
    --c-forest-light: #d4e8d3;
    --c-coral: #ba1a1a;
    --c-ink: #1b1c19;
    --c-muted: #43474e;

    --f-serif: 'Instrument Serif', Georgia, serif;
    --f-sans: 'Montserrat', system-ui, -apple-system, sans-serif;
    --f-mono: 'IBM Plex Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--c-linen);
    color: var(--c-ink);
    font-family: var(--f-sans);
    overflow-x: clip;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--c-linen);
    color: var(--c-ink);
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   0. TOP PROGRESS BAR & FLOATING PILL NAVIGATION (CAUCE / DINAMO STYLE)
   ========================================================================== */

/* Skip Link & Visually Hidden Accessibility Helper */
.dinamo-skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.dinamo-skip-link:focus {
    position: fixed;
    top: 16px;
    left: 16px;
    width: auto;
    height: auto;
    padding: 12px 20px;
    margin: 0;
    overflow: visible;
    clip: auto;
    background: var(--c-navy);
    color: #ffffff;
    border-radius: 9999px;
    font-weight: 700;
    z-index: 300;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--c-gold), var(--c-coral), var(--c-forest));
    transform-origin: 0 50%;
    transform: scaleX(var(--scroll-ratio, 0));
    z-index: 200;
    pointer-events: none;
}

.dinamo-header {
    position: fixed;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 150;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 24px;
    pointer-events: none;
}

@media (min-width: 1480px) {
    .dinamo-header {
        justify-content: center;
        padding: 0 36px;
    }
}

.dinamo-nav-pill {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: auto;
    max-width: 100%;
    min-width: 0;
    padding: 7px 10px 7px 16px;
    border-radius: 9999px;
    background: rgba(251, 249, 244, 0.9);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(0, 35, 75, 0.12);
    box-shadow: 0 16px 40px -10px rgba(0, 23, 48, 0.18), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Mobile & Tablet (<1200px): Pill expands cleanly on the left, Call button sits on the right */
@media (max-width: 1199.98px) {
    .dinamo-header {
        top: 30px;
        padding: 0 24px;
    }
    .dinamo-nav-pill {
        flex: 1 1 auto;
    }
}

@media (max-width: 767.98px) {
    .dinamo-header {
        top: 30px;
        padding: 0 20px;
        gap: 8px;
    }
    .dinamo-nav-pill {
        padding: 6px 8px 6px 12px;
        gap: 6px;
    }
    .dinamo-cta-order {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .dinamo-brand span {
        font-size: 0.74rem;
    }
    .dinamo-brand img {
        height: 32px !important;
    }
}

/* Override global styles.css header nav rules so links inside the pill never overflow */
.dinamo-header .dinamo-nav-links {
    display: none !important;
    align-items: center;
    gap: 2px !important;
}

@media (min-width: 1200px) {
    .dinamo-header .dinamo-nav-links {
        display: flex !important;
    }
}

@media (min-width: 1480px) {
    .dinamo-header .dinamo-nav-links {
        gap: 4px !important;
    }
}

.dinamo-cta-call-docked {
    pointer-events: auto;
    position: static;
    transform: none !important;
    padding: 11px 18px;
    font-size: 0.78rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 28px -6px rgba(186, 26, 26, 0.45);
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .dinamo-cta-call-docked {
        padding: 10px 14px;
        font-size: 0.74rem;
    }
}

@media (min-width: 1480px) {
    .dinamo-cta-call-docked {
        position: absolute;
        right: 36px;
        top: 50%;
        padding: 13px 22px;
        font-size: 0.82rem;
        transform: translateY(-50%) !important;
    }
    .dinamo-cta-call-docked:hover {
        transform: translateY(-50%) !important;
    }
}

.dinamo-header.is-scrolled .dinamo-nav-pill {
    background: rgba(0, 23, 48, 0.92);
    border-color: rgba(201, 160, 84, 0.35);
    box-shadow: 0 20px 45px -10px rgba(0, 10, 24, 0.55);
}

.dinamo-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--c-navy);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.dinamo-header.is-scrolled .dinamo-brand {
    color: #ffffff;
}

.dinamo-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.dinamo-brand:hover img {
    transform: scale(1.06) rotate(-2deg);
}

.dinamo-nav-links {
    display: none;
    align-items: center;
    gap: 2px;
}

@media (min-width: 1200px) {
    .dinamo-nav-links {
        display: flex;
    }
}

.dinamo-nav-links a {
    text-decoration: none;
    color: var(--c-navy);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 7px 11px;
    border-radius: 9999px;
    transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    white-space: nowrap;
}

@media (min-width: 1480px) {
    .dinamo-nav-links a {
        font-size: 0.8125rem;
        padding: 8px 16px;
    }
}

.dinamo-header.is-scrolled .dinamo-nav-links a {
    color: rgba(251, 249, 244, 0.9);
}

/* Hover state: App Gold */
.dinamo-nav-links a:hover:not([aria-current="page"]) {
    background-color: var(--c-gold);
    color: var(--c-navy-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(201, 160, 84, 0.35);
}

.dinamo-header.is-scrolled .dinamo-nav-links a:hover:not([aria-current="page"]) {
    background-color: var(--c-gold);
    color: var(--c-navy-dark);
    box-shadow: 0 6px 18px rgba(201, 160, 84, 0.4);
}

/* Active/Selected page: Forest Green */
.dinamo-nav-links a[aria-current="page"] {
    background-color: var(--c-forest);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(45, 62, 47, 0.32);
}

.dinamo-header.is-scrolled .dinamo-nav-links a[aria-current="page"] {
    background-color: var(--c-forest);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 232, 211, 0.3);
}

.dinamo-nav-links a[aria-current="page"]:hover {
    background-color: var(--c-gold);
    color: var(--c-navy-dark);
    transform: translateY(-1px);
}

.dinamo-nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dinamo-cta-order {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--c-navy);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease !important;
    white-space: nowrap;
}

.dinamo-header.is-scrolled .dinamo-cta-order {
    background: var(--c-gold);
    color: var(--c-navy-dark);
}

.dinamo-cta-order:hover {
    background: var(--c-gold);
    color: var(--c-navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(201, 160, 84, 0.4);
}

.dinamo-cta-call {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--c-coral);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 9999px;
    letter-spacing: 0.03em;
    box-shadow: 0 6px 18px rgba(186, 26, 26, 0.35);
    transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease !important;
    white-space: nowrap;
}

.dinamo-cta-call:hover {
    background: #cf2020;
    border-color: rgba(255, 255, 255, 0.48);
    box-shadow: 0 0 28px 4px rgba(220, 38, 38, 0.65), 0 10px 24px -4px rgba(186, 26, 26, 0.55);
    filter: brightness(1.06);
}

.dinamo-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 35, 75, 0.15);
    background: transparent;
    color: var(--c-navy);
    cursor: pointer;
}

.dinamo-header.is-scrolled .dinamo-burger {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

@media (min-width: 1200px) {
    .dinamo-burger {
        display: none !important;
    }
}

/* ==========================================================================
   1. HERO CINEMÁTICO ENMARCADO (CAUCE / AERIA / RITUAL CELESTE ARCHITECTURE)
   ========================================================================== */

.hero-frame-outer {
    padding: 12px 12px 36px;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    /* Cosine-eased transition that reaches 100% pure --c-navy-abyss (#020c1b) at 65% height (behind .hero-cinema-box),
       ensuring the entire bottom zone and the start of .scrolly-master-track are solid #020c1b with zero line */
    background: linear-gradient(
        180deg in oklab,
        var(--c-linen) 0%,
        var(--c-linen) 15%,
        color-mix(in oklab, var(--c-linen) 90%, var(--c-navy-abyss) 10%) 23%,
        color-mix(in oklab, var(--c-linen) 65%, var(--c-navy-abyss) 35%) 34%,
        color-mix(in oklab, var(--c-linen) 35%, var(--c-navy-abyss) 65%) 45%,
        color-mix(in oklab, var(--c-linen) 10%, var(--c-navy-abyss) 90%) 56%,
        var(--c-navy-abyss) 65%,
        var(--c-navy-abyss) 100%
    );
}

@media (min-width: 768px) {
    .hero-frame-outer {
        padding: 18px 18px 48px;
    }
}

.hero-cinema-box {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: calc(100svh - 36px);
    border-radius: 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 92px 20px 32px;
    background: var(--c-navy-dark);
    box-shadow: 0 24px 60px rgba(2, 12, 27, 0.85);
    border: 1px solid rgba(201, 160, 84, 0.25);
}

@media (min-width: 768px) {
    .hero-cinema-box {
        border-radius: 36px;
        padding: 102px 48px 40px;
    }
}

.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    transform: scale(1.03);
    transition: transform 0.2s linear;
}

.hero-cinema-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 38%, rgba(0, 14, 36, 0.38) 0%, rgba(0, 14, 36, 0.76) 100%),
        linear-gradient(180deg, rgba(0, 14, 36, 0.65) 0%, rgba(0, 23, 48, 0.32) 45%, rgba(2, 12, 27, 0.92) 100%);
}

.hero-center-stage {
    position: relative;
    z-index: 2;
    max-width: 980px;
    width: 100%;
    text-align: center;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-kicker-pill {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 7px 18px 7px 10px;
    border-radius: 9999px;
    background: rgba(251, 249, 244, 0.95);
    color: var(--c-navy);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    margin-bottom: 42px;
    transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-kicker-pill[data-status="open"] {
    padding: 6px 7px 6px 9px;
}

@media (max-width: 680px) {
    .hero-kicker-pill,
    .hero-kicker-pill[data-status="open"] {
        border-radius: 18px;
        padding: 8px 12px;
        gap: 6px 8px;
        font-size: 0.72rem;
        max-width: 96%;
    }
    #hero-live-status-text {
        flex: 1 1 180px;
        text-align: left;
        line-height: 1.35;
    }
}

.hero-kicker-badge {
    width: 24px;
    height: 24px;
    border-radius: 9999px;
    background: var(--c-coral);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-sans);
    font-style: normal;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 0 0 3px rgba(186, 26, 26, 0.2);
}

.hero-kicker-pill[data-status="open"] .hero-kicker-badge {
    background: var(--c-forest);
    box-shadow: 0 0 0 3px rgba(45, 62, 47, 0.28);
}

.hero-kicker-cta {
    display: none;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    margin-left: 2px;
    border-radius: 9999px;
    background: var(--c-forest);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(45, 62, 47, 0.28);
    transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-kicker-pill[data-status="open"] .hero-kicker-cta {
    display: inline-flex;
}

.hero-kicker-cta:hover {
    background: var(--c-gold);
    color: var(--c-navy-dark);
    box-shadow: 0 0 18px rgba(201, 160, 84, 0.55);
}

.hero-display-title {
    margin: 0 0 22px;
    color: #ffffff;
    font-family: var(--f-sans);
    font-weight: 700;
    font-size: clamp(2.65rem, 6.8vw, 6.2rem);
    line-height: 0.94;
    letter-spacing: -0.035em;
    text-shadow: 0 12px 40px rgba(0, 10, 24, 0.55);
}

.hero-display-title em {
    display: block;
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(3.1rem, 7.8vw, 7.1rem);
    color: var(--c-gold-bright);
    letter-spacing: -0.02em;
    line-height: 0.92;
    margin-top: 4px;
}

.hero-lead-copy {
    margin: 0 auto 32px;
    max-width: 610px;
    color: rgba(251, 249, 244, 0.88);
    font-size: clamp(0.98rem, 1.35vw, 1.18rem);
    line-height: 1.58;
    font-weight: 400;
}

.hero-cta-cluster {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 9999px;
    background: var(--c-linen);
    color: var(--c-navy);
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-primary:hover {
    background: var(--c-gold-bright);
    color: var(--c-navy-dark);
    transform: translateY(-3px) scale(1.02);
}

.btn-hero-glass {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 9999px;
    background: rgba(0, 23, 48, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(243, 220, 166, 0.45);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-hero-glass:hover {
    background: rgba(201, 160, 84, 0.25);
    border-color: var(--c-gold-bright);
    transform: translateY(-3px);
}

.hero-bottom-bar {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid rgba(243, 220, 166, 0.22);
    font-family: var(--f-mono);
    font-size: clamp(0.64rem, 0.75vw, 0.72rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(243, 220, 166, 0.88);
}

@media (min-width: 1200px) {
    .hero-bottom-bar {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
        gap: 16px;
        padding-top: 20px;
    }

    .hero-bottom-coords {
        justify-self: start;
    }

    .hero-scroll-cue {
        justify-self: center;
    }

    .hero-channels-group {
        justify-self: end;
    }
}

.hero-bottom-coords {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1.3;
}

.hero-scroll-cue {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-scroll-cue:hover {
    color: var(--c-gold-bright);
}

.hero-channels-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.hero-channel-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(243, 220, 166, 0.92);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

a.hero-channel-item:hover {
    color: #ffffff;
}

.hero-channel-brand-img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.hero-channel-brand-badge {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--c-forest);
    color: var(--c-gold-bright);
    border: 1px solid rgba(243, 220, 166, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.hero-channel-svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: currentColor;
}

.hero-channel-icon {
    font-size: 14px !important;
    line-height: 1;
    color: var(--c-gold-bright);
}

.hero-channel-sep {
    opacity: 0.45;
    user-select: none;
}

/* ==========================================================================
   2. SCROLLYTELLING FULL-VIEWPORT STICKY ENGINE (4 CHAPTERS)
   ========================================================================== */

.scrolly-master-track {
    position: relative;
    /* Cosine S-curve (C1 continuous derivative = 0 at both ends) over 400px to eliminate Mach bands */
    background: linear-gradient(
        180deg in oklab,
        var(--c-navy-abyss) 0%,
        var(--c-navy-abyss) calc(100% - 400px),
        color-mix(in oklab, var(--c-navy-abyss) 97.6%, var(--c-linen) 2.4%) calc(100% - 360px),
        color-mix(in oklab, var(--c-navy-abyss) 90.5%, var(--c-linen) 9.5%) calc(100% - 320px),
        color-mix(in oklab, var(--c-navy-abyss) 79.4%, var(--c-linen) 20.6%) calc(100% - 280px),
        color-mix(in oklab, var(--c-navy-abyss) 65.5%, var(--c-linen) 34.5%) calc(100% - 240px),
        color-mix(in oklab, var(--c-navy-abyss) 50%, var(--c-linen) 50%) calc(100% - 200px),
        color-mix(in oklab, var(--c-navy-abyss) 34.5%, var(--c-linen) 65.5%) calc(100% - 160px),
        color-mix(in oklab, var(--c-navy-abyss) 20.6%, var(--c-linen) 79.4%) calc(100% - 120px),
        color-mix(in oklab, var(--c-navy-abyss) 9.5%, var(--c-linen) 90.5%) calc(100% - 80px),
        color-mix(in oklab, var(--c-navy-abyss) 2.4%, var(--c-linen) 97.6%) calc(100% - 40px),
        var(--c-linen) 100%
    );
    color: #ffffff;
    padding-bottom: 260px;
}

.scrolly-header-wrap {
    max-width: 1360px;
    margin: 0 auto;
    padding: 72px 20px 0;
}

@media (min-width: 1024px) {
    .scrolly-header-wrap {
        padding: 96px 48px 0;
    }
}

.scrolly-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(201, 160, 84, 0.22);
}

.scrolly-layout {
    max-width: 1360px;
    margin: 0 auto;
    padding: 48px 20px 80px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

@media (min-width: 1024px) {
    .scrolly-layout {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        padding: 56px 48px 120px;
        align-items: start;
    }
}

/* Sticky Right Visual Stage */
.scrolly-stage-sticky {
    position: relative;
    width: 100%;
    height: 440px;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid rgba(201, 160, 84, 0.35);
    box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.75);
    background: var(--c-navy-dark);
}

@media (min-width: 1024px) {
    .scrolly-stage-sticky {
        position: sticky;
        top: 108px;
        height: 620px;
        max-height: none;
        order: 2;
    }
    .scrolly-steps-column {
        order: 1;
    }
}

.scrolly-visual-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.scrolly-visual-layer.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.scrolly-visual-layer img,
.scrolly-visual-layer video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.scrolly-stage-hud {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(2, 12, 27, 0.35) 0%, transparent 35%, rgba(2, 12, 27, 0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px;
    pointer-events: none;
    z-index: 5;
}

.scrolly-hud-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--f-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--c-gold-bright);
    text-transform: uppercase;
}

.scrolly-hud-pill {
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(0, 23, 48, 0.78);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 160, 84, 0.45);
}

.scrolly-hud-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scrolly-hud-title {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: clamp(1.75rem, 3vw, 2.6rem);
    color: #ffffff;
    line-height: 1.05;
    margin: 0;
}

.scrolly-hud-meta {
    font-size: 0.875rem;
    color: rgba(251, 249, 244, 0.85);
    margin: 0;
}

/* Left Column Narrative Chapters */
.scrolly-steps-column {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 1024px) {
    .scrolly-steps-column {
        gap: 28vh;
        padding-bottom: 18vh;
    }
}

.scrolly-chapter {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    border-radius: 28px;
    background: rgba(11, 34, 64, 0.55);
    border: 1px solid rgba(201, 160, 84, 0.18);
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.42;
}

@media (min-width: 1024px) {
    .scrolly-chapter {
        height: 620px;
        min-height: 620px;
        padding: 40px;
    }
}

.scrolly-chapter.is-active {
    opacity: 1;
    background: linear-gradient(155deg, rgba(14, 39, 70, 0.92) 0%, rgba(2, 18, 38, 0.96) 100%);
    border-color: rgba(201, 160, 84, 0.65);
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.65);
}

.chapter-index {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--c-gold-bright);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.chapter-heading {
    font-size: clamp(1.75rem, 2.8vw, 2.5rem);
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 16px;
    color: #ffffff;
}

.chapter-heading em {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--c-gold-bright);
    font-size: 1.12em;
}

.chapter-body {
    color: rgba(251, 249, 244, 0.8);
    font-size: 0.96rem;
    line-height: 1.65;
    margin: 0 0 22px;
}

.chapter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.chapter-tag {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    padding: 5px 12px;
    border-radius: 9999px;
    background: rgba(201, 160, 84, 0.14);
    border: 1px solid rgba(201, 160, 84, 0.38);
    color: var(--c-gold-bright);
}

.chapter-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    background: rgba(201, 160, 84, 0.2);
    border: 1px solid var(--c-gold);
    padding: 11px 20px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.25s ease;
}

.chapter-cta:hover {
    background: var(--c-gold);
    color: var(--c-navy-dark);
}

/* ==========================================================================
   3. VANTAGE / 03 INTERACTIVE LEDGER FOR NOVEDADES EN CARTA
   ========================================================================== */

.ledger-section {
    padding: 80px 20px 110px;
    background: linear-gradient(
        180deg,
        var(--c-linen) 0%,
        var(--c-linen) 82%,
        var(--c-linen-warm) 100%
    );
    color: var(--c-ink);
    border-bottom: none;
}

/* Specialized Landing Variant for Landing Pages (Empanadas, Pizzería)
   Cosine S-curve over 400px from warm editorial linen into pure dark navy abyss */
.ledger-section.ledger-section-landing {
    padding-bottom: 260px;
    background: linear-gradient(
        180deg in oklab,
        var(--c-linen) 0%,
        var(--c-linen) calc(100% - 400px),
        color-mix(in oklab, var(--c-linen) 97.6%, var(--c-navy-abyss) 2.4%) calc(100% - 360px),
        color-mix(in oklab, var(--c-linen) 90.5%, var(--c-navy-abyss) 9.5%) calc(100% - 320px),
        color-mix(in oklab, var(--c-linen) 79.4%, var(--c-navy-abyss) 20.6%) calc(100% - 280px),
        color-mix(in oklab, var(--c-linen) 65.5%, var(--c-navy-abyss) 34.5%) calc(100% - 240px),
        color-mix(in oklab, var(--c-linen) 50%, var(--c-navy-abyss) 50%) calc(100% - 200px),
        color-mix(in oklab, var(--c-linen) 34.5%, var(--c-navy-abyss) 65.5%) calc(100% - 160px),
        color-mix(in oklab, var(--c-linen) 20.6%, var(--c-navy-abyss) 79.4%) calc(100% - 120px),
        color-mix(in oklab, var(--c-linen) 9.5%, var(--c-navy-abyss) 90.5%) calc(100% - 80px),
        color-mix(in oklab, var(--c-linen) 2.4%, var(--c-navy-abyss) 97.6%) calc(100% - 40px),
        var(--c-navy-abyss) 100%
    );
}

@media (min-width: 768px) {
    .ledger-section {
        padding: 96px 48px 130px;
    }
    .ledger-section.ledger-section-landing {
        padding-bottom: 300px;
    }
}

.ledger-container {
    max-width: 1280px;
    margin: 0 auto;
}

.ledger-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0, 35, 75, 0.15);
}

@media (min-width: 900px) {
    .ledger-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.ledger-kicker {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-bronze);
    display: block;
    margin-bottom: 10px;
}

.ledger-title {
    font-size: clamp(2.2rem, 4.8vw, 4.2rem);
    font-weight: 700;
    line-height: 0.96;
    letter-spacing: -0.03em;
    color: var(--c-navy);
    margin: 0;
}

.ledger-title em {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--c-bronze);
    font-size: 1.08em;
}

.ledger-filter-pills {
    display: inline-flex;
    padding: 5px;
    border-radius: 9999px;
    background: var(--c-linen-deep);
    border: 1px solid rgba(0, 35, 75, 0.12);
    gap: 4px;
    align-self: flex-start;
}

.ledger-filter-btn {
    border: none;
    background: transparent;
    color: var(--c-navy);
    font-family: var(--f-sans);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.ledger-filter-btn[aria-pressed="true"] {
    background: var(--c-navy);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(0, 35, 75, 0.25);
}

.ledger-grid-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
    align-items: start;
}

@media (min-width: 1024px) {
    .ledger-grid-showcase {
        grid-template-columns: 7fr 5fr;
        gap: 48px;
    }
}

.ledger-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: none;
}

.ledger-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 20px 24px;
    min-height: 118px;
    border: 1px solid rgba(0, 35, 75, 0.12);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: background-color 0.38s cubic-bezier(0.16, 1, 0.3, 1), color 0.38s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-align: left;
    background: rgba(255, 255, 255, 0.45);
    width: 100%;
}

.ledger-row::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    width: 100%;
    background: var(--c-gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ledger-row:hover,
.ledger-row.is-selected {
    background: var(--c-navy);
    color: #ffffff;
    border-color: var(--c-navy);
    box-shadow: 0 14px 30px -8px rgba(0, 35, 75, 0.28);
}

.ledger-row:hover::before,
.ledger-row.is-selected::before {
    transform: scaleX(1);
}

.ledger-row-num {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--c-bronze);
    margin-right: 12px;
    transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ledger-row:hover .ledger-row-num,
.ledger-row.is-selected .ledger-row-num {
    color: var(--c-gold-bright);
}

.ledger-row-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ledger-row-badge {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(201, 160, 84, 0.22);
    color: var(--c-navy);
    font-weight: 700;
    transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ledger-row:hover .ledger-row-badge,
.ledger-row.is-selected .ledger-row-badge {
    background: rgba(201, 160, 84, 0.28);
    color: var(--c-gold-bright);
}

.ledger-row-desc {
    margin: 0;
    font-size: 0.875rem;
    color: var(--c-muted);
    line-height: 1.45;
    transition: color 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.ledger-row:hover .ledger-row-desc,
.ledger-row.is-selected .ledger-row-desc {
    color: rgba(251, 249, 244, 0.8);
}

.ledger-row-price {
    font-family: var(--f-mono);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--c-navy);
    white-space: nowrap;
    transition: transform 0.3s ease, color 0.3s ease;
}

.ledger-row:hover .ledger-row-price,
.ledger-row.is-selected .ledger-row-price {
    color: var(--c-gold-bright);
    transform: scale(1.08);
}

/* Right Preview Card for Selected Ledger Row */
.ledger-preview-stage {
    position: sticky;
    top: 110px;
    border-radius: 26px;
    overflow: hidden;
    background: var(--c-navy-dark);
    color: #ffffff;
    border: 1px solid rgba(201, 160, 84, 0.4);
    box-shadow: 0 25px 55px -12px rgba(0, 23, 48, 0.3);
}

.ledger-preview-img-wrap {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.ledger-preview-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.ledger-preview-body {
    padding: 28px;
}

.ledger-preview-kicker {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    color: var(--c-gold-bright);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 6px;
}

.ledger-preview-title {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.ledger-preview-desc {
    font-size: 0.92rem;
    color: rgba(251, 249, 244, 0.82);
    line-height: 1.55;
    margin: 0 0 16px;
}

.ledger-preview-allergens {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--c-sand);
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    margin-bottom: 22px;
}

/* ==========================================================================
   4. AXIS / 04 INTERACTIVE SVG DIAL ("LA ALQUIMIA DE LA PASTA FRESCA")
   ========================================================================== */

.axis-section {
    padding: 90px 20px 280px;
    /* Cosine S-curve over 380px from warm linen into forest dark with zero Mach banding */
    background: linear-gradient(
        180deg in oklab,
        var(--c-linen-warm) 0%,
        var(--c-linen-warm) calc(100% - 380px),
        color-mix(in oklab, var(--c-linen-warm) 97.6%, var(--c-forest-dark) 2.4%) calc(100% - 342px),
        color-mix(in oklab, var(--c-linen-warm) 90.5%, var(--c-forest-dark) 9.5%) calc(100% - 304px),
        color-mix(in oklab, var(--c-linen-warm) 79.4%, var(--c-forest-dark) 20.6%) calc(100% - 266px),
        color-mix(in oklab, var(--c-linen-warm) 65.5%, var(--c-forest-dark) 34.5%) calc(100% - 228px),
        color-mix(in oklab, var(--c-linen-warm) 50%, var(--c-forest-dark) 50%) calc(100% - 190px),
        color-mix(in oklab, var(--c-linen-warm) 34.5%, var(--c-forest-dark) 65.5%) calc(100% - 152px),
        color-mix(in oklab, var(--c-linen-warm) 20.6%, var(--c-forest-dark) 79.4%) calc(100% - 114px),
        color-mix(in oklab, var(--c-linen-warm) 9.5%, var(--c-forest-dark) 90.5%) calc(100% - 76px),
        color-mix(in oklab, var(--c-linen-warm) 2.4%, var(--c-forest-dark) 97.6%) calc(100% - 38px),
        var(--c-forest-dark) 100%
    );
    border-bottom: none;
}

@media (min-width: 768px) {
    .axis-section {
        padding: 110px 48px 300px;
    }
}

.axis-container {
    max-width: 1280px;
    margin: 0 auto;
}

.axis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 48px;
}

@media (min-width: 1024px) {
    .axis-grid {
        grid-template-columns: 6fr 6fr;
        gap: 64px;
    }
}

.axis-btn-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: none;
}

.axis-item-btn {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    min-height: 90px;
    border: 1px solid rgba(0, 35, 75, 0.14);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.65);
    text-align: left;
    cursor: pointer;
    transition: background-color 0.38s cubic-bezier(0.16, 1, 0.3, 1), color 0.38s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.38s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
    color: var(--c-navy);
    font-family: var(--f-sans);
    width: 100%;
    isolation: isolate;
}

.axis-item-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    filter: blur(4.5px) saturate(0.95);
    opacity: 0.24;
    transform: scale(1.02);
    transform-origin: center center;
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
    pointer-events: none;
}

.axis-item-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(251, 249, 244, 0.92) 0%,
        rgba(251, 249, 244, 0.78) 52%,
        rgba(251, 249, 244, 0.32) 100%
    );
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.axis-item-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    width: 100%;
    background: var(--c-gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 2;
}

.axis-item-btn:hover,
.axis-item-btn[aria-pressed="true"] {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(201, 160, 84, 0.55);
    box-shadow: 0 14px 30px -10px rgba(0, 35, 75, 0.18);
}

.axis-item-btn:hover .axis-item-bg,
.axis-item-btn[aria-pressed="true"] .axis-item-bg {
    transform: scale(1.14);
    filter: blur(1px) saturate(1.12);
    opacity: 0.62;
}

.axis-item-btn:hover .axis-item-bg::after,
.axis-item-btn[aria-pressed="true"] .axis-item-bg::after {
    opacity: 0.72;
}

.axis-item-btn:hover::before,
.axis-item-btn[aria-pressed="true"]::before {
    transform: scaleX(1);
}

.axis-item-btn:hover .axis-num,
.axis-item-btn[aria-pressed="true"] .axis-num {
    background: var(--c-navy);
    color: var(--c-gold-bright);
    border-color: var(--c-navy);
}

.axis-num {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 35, 75, 0.25);
    background: rgba(251, 249, 244, 0.75);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-mono);
    font-size: 0.78rem;
    font-weight: 600;
    transition: background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.axis-item-copy {
    position: relative;
    z-index: 1;
}

.axis-arrow-icon {
    position: relative;
    z-index: 1;
    font-size: 1.25rem;
    color: rgba(0, 35, 75, 0.65);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), color 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.axis-item-btn:hover .axis-arrow-icon,
.axis-item-btn[aria-pressed="true"] .axis-arrow-icon {
    transform: translateX(5px);
    color: var(--c-navy);
}

.axis-item-name {
    font-size: 1.15rem;
    font-weight: 700;
    display: block;
}

.axis-item-sub {
    font-size: 0.84rem;
    color: var(--c-muted);
    display: block;
    margin-top: 2px;
}

.axis-dial-stage {
    background: var(--c-navy-dark);
    border-radius: 32px;
    padding: 36px;
    color: #ffffff;
    border: 1px solid rgba(201, 160, 84, 0.4);
    box-shadow: 0 25px 60px -15px rgba(0, 23, 48, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.axis-dial-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 10px;
    min-height: 1.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.axis-dial-desc {
    font-size: 0.92rem;
    color: rgba(251, 249, 244, 0.82);
    line-height: 1.55;
    max-width: 460px;
    min-height: 4.3rem;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.axis-dial-sauces {
    font-family: var(--f-mono);
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--c-gold-bright);
    max-width: 520px;
    min-height: 2.3rem;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.axis-svg-wheel {
    width: 100%;
    max-width: 340px;
    height: auto;
    margin-bottom: 20px;
}

.axis-wheel-rotor {
    transform-origin: 200px 200px;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   5. RELAY 4-COLUMN KINETIC PROCESS & OPEN/24 MONUMENTAL CLOSING
   ========================================================================== */

.relay-section {
    padding: 80px 20px 240px;
    background: linear-gradient(
        180deg in oklab,
        var(--c-forest-dark) 0%,
        var(--c-forest-dark) calc(100% - 320px),
        color-mix(in oklab, var(--c-forest-dark) 90.5%, var(--c-navy-abyss) 9.5%) calc(100% - 256px),
        color-mix(in oklab, var(--c-forest-dark) 65.5%, var(--c-navy-abyss) 34.5%) calc(100% - 192px),
        color-mix(in oklab, var(--c-forest-dark) 34.5%, var(--c-navy-abyss) 65.5%) calc(100% - 128px),
        color-mix(in oklab, var(--c-forest-dark) 9.5%, var(--c-navy-abyss) 90.5%) calc(100% - 64px),
        var(--c-navy-abyss) 100%
    );
    color: #ffffff;
}

/* Specialized Landing Variant for Landing Pages (Empanadas, Pizzería)
   Starts in pure --c-navy-abyss (#020c1b) matching the hero bottom,
   and smoothly transitions over 400px into pure --c-linen (#fbf9f4) */
.relay-section.relay-section-landing {
    padding-bottom: 280px;
    background: linear-gradient(
        180deg in oklab,
        var(--c-navy-abyss) 0%,
        var(--c-navy-abyss) calc(100% - 400px),
        color-mix(in oklab, var(--c-navy-abyss) 97.6%, var(--c-linen) 2.4%) calc(100% - 360px),
        color-mix(in oklab, var(--c-navy-abyss) 90.5%, var(--c-linen) 9.5%) calc(100% - 320px),
        color-mix(in oklab, var(--c-navy-abyss) 79.4%, var(--c-linen) 20.6%) calc(100% - 280px),
        color-mix(in oklab, var(--c-navy-abyss) 65.5%, var(--c-linen) 34.5%) calc(100% - 240px),
        color-mix(in oklab, var(--c-navy-abyss) 50%, var(--c-linen) 50%) calc(100% - 200px),
        color-mix(in oklab, var(--c-navy-abyss) 34.5%, var(--c-linen) 65.5%) calc(100% - 160px),
        color-mix(in oklab, var(--c-navy-abyss) 20.6%, var(--c-linen) 79.4%) calc(100% - 120px),
        color-mix(in oklab, var(--c-navy-abyss) 9.5%, var(--c-linen) 90.5%) calc(100% - 80px),
        color-mix(in oklab, var(--c-navy-abyss) 2.4%, var(--c-linen) 97.6%) calc(100% - 40px),
        var(--c-linen) 100%
    );
}

@media (min-width: 768px) {
    .relay-section {
        padding: 100px 48px 260px;
    }
    .relay-section.relay-section-landing {
        padding-bottom: 320px;
    }
}

.relay-grid {
    max-width: 1280px;
    margin: 56px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    border-top: 1px solid rgba(212, 232, 211, 0.22);
}

@media (min-width: 768px) {
    .relay-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .relay-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.relay-step {
    padding: 36px 28px;
    border-bottom: 1px solid rgba(212, 232, 211, 0.16);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
}

@media (min-width: 1024px) {
    .relay-step {
        border-right: 1px solid rgba(212, 232, 211, 0.16);
        border-bottom: none;
    }
    .relay-step:last-child {
        border-right: none;
    }
}

.relay-step:hover {
    transform: translateY(-9px);
    background: rgba(201, 160, 84, 0.12);
}

/* Monumental Closing Split Section (OPEN/24 inspired) */
.open-closing-section {
    position: relative;
    background: linear-gradient(
        180deg in oklab,
        var(--c-navy-abyss) 0%,
        var(--c-navy-abyss) calc(100% - 240px),
        color-mix(in oklab, var(--c-navy-abyss) 97.6%, var(--c-gold) 2.4%) calc(100% - 216px),
        color-mix(in oklab, var(--c-navy-abyss) 90.5%, var(--c-gold) 9.5%) calc(100% - 192px),
        color-mix(in oklab, var(--c-navy-abyss) 79.4%, var(--c-gold) 20.6%) calc(100% - 168px),
        color-mix(in oklab, var(--c-navy-abyss) 65.5%, var(--c-gold) 34.5%) calc(100% - 144px),
        color-mix(in oklab, var(--c-navy-abyss) 50%, var(--c-gold) 50%) calc(100% - 120px),
        color-mix(in oklab, var(--c-navy-abyss) 34.5%, var(--c-gold) 65.5%) calc(100% - 96px),
        color-mix(in oklab, var(--c-navy-abyss) 20.6%, var(--c-gold) 79.4%) calc(100% - 72px),
        color-mix(in oklab, var(--c-navy-abyss) 9.5%, var(--c-gold) 90.5%) calc(100% - 48px),
        color-mix(in oklab, var(--c-navy-abyss) 2.4%, var(--c-gold) 97.6%) calc(100% - 24px),
        var(--c-gold) 100%
    );
    color: #ffffff;
    overflow: hidden;
    border-top: none;
    padding-bottom: 110px;
}

.open-closing-grid {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .open-closing-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.open-col-left {
    padding: 72px 24px;
    border-bottom: 1px solid rgba(201, 160, 84, 0.2);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

.open-text-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.open-display-title {
    text-align: center;
}

.open-text-block p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.open-cta-group {
    justify-content: center;
    margin: 0 auto;
}

.open-watermark {
    text-align: center;
    margin: 24px auto 0;
}

@media (min-width: 1024px) {
    .open-col-left {
        padding: 96px 64px;
        border-bottom: none;
        border-right: 1px solid rgba(201, 160, 84, 0.2);
        align-items: flex-start;
        text-align: left;
    }

    .open-text-block {
        align-items: flex-start;
        text-align: left;
    }

    .open-display-title {
        text-align: left;
    }

    .open-text-block p {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
    }

    .open-cta-group {
        justify-content: flex-start;
        margin: 0;
    }

    .open-watermark {
        text-align: left;
        margin: 24px 0 0;
    }
}

.open-col-right {
    padding: 72px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 1024px) {
    .open-col-right {
        padding: 96px 64px;
    }
}

.open-watermark {
    font-family: var(--f-serif);
    font-style: italic;
    font-size: clamp(5rem, 14vw, 12rem);
    line-height: 0.8;
    color: rgba(201, 160, 84, 0.08);
    user-select: none;
    pointer-events: none;
    margin-top: 24px;
}

/* ==========================================================================
   6. LUXURY EDITORIAL FOOTER (ARTISANAL GOLD WITH S-CURVE TRANSITIONS)
   ========================================================================== */

.dinamo-footer {
    position: relative;
    background: var(--c-gold);
    color: var(--c-navy);
    font-family: var(--f-sans);
    border-top: none;
    z-index: 10;
}

.dinamo-footer-main {
    padding: 36px 24px 64px;
}

@media (min-width: 768px) {
    .dinamo-footer-main {
        padding: 48px 48px 76px;
    }
}

.dinamo-footer-container {
    max-width: 1360px;
    margin: 0 auto;
}

.dinamo-footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 44px;
    padding-bottom: 24px;
}

@media (min-width: 768px) {
    .dinamo-footer-grid {
        grid-template-columns: 1.2fr 0.8fr 1fr;
        gap: 40px;
    }
}

@media (min-width: 1024px) {
    .dinamo-footer-grid {
        grid-template-columns: 1.5fr 1fr 1.1fr 1fr;
        gap: 52px;
    }
}

.dinamo-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dinamo-footer-logo-row {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--c-navy);
}

.dinamo-footer-logo-row img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 35, 75, 0.25));
}

.dinamo-footer-logo-text {
    font-family: var(--f-sans);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    color: #00234b;
}

.dinamo-footer-tagline {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(0, 35, 75, 0.85);
    max-width: 340px;
    margin: 0;
    font-weight: 500;
}

.dinamo-footer-craft-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 9999px;
    background: var(--c-forest);
    border: 1px solid rgba(201, 160, 84, 0.45);
    color: #ffffff;
    font-family: var(--f-mono);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    width: fit-content;
    box-shadow: 0 4px 12px rgba(20, 34, 22, 0.25);
}

.dinamo-footer-socials {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.dinamo-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(0, 35, 75, 0.25);
    color: var(--c-navy);
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 35, 75, 0.08);
    text-decoration: none;
}

.dinamo-social-link:hover {
    background: var(--c-navy);
    color: var(--c-gold-bright);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 35, 75, 0.22);
}

.dinamo-social-disabled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: rgba(0, 35, 75, 0.08);
    border: 1px dashed rgba(0, 35, 75, 0.25);
    color: rgba(0, 35, 75, 0.35);
    cursor: not-allowed;
    opacity: 0.6;
}

.dinamo-social-svg {
    width: 18px;
    height: 18px;
}

.dinamo-footer-call-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: fit-content !important;
    min-width: 220px;
    padding: 12px 24px !important;
    margin-bottom: 4px;
}

.dinamo-footer-channels {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.dinamo-footer-channels-label {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    color: rgba(0, 35, 75, 0.75);
    text-transform: uppercase;
    font-weight: 600;
}

.dinamo-footer-channel-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(0, 35, 75, 0.22);
    color: var(--c-navy);
    font-family: var(--f-sans);
    font-size: 0.76rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 35, 75, 0.08);
}

.dinamo-footer-col h4 {
    font-family: var(--f-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #001730;
    font-weight: 800;
    margin: 0 0 18px;
    border-bottom: 1px solid rgba(0, 35, 75, 0.18);
    padding-bottom: 6px;
}

.dinamo-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dinamo-footer-links a {
    color: rgba(0, 35, 75, 0.88);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color 0.22s ease, transform 0.22s ease;
    display: inline-block;
}

.dinamo-footer-links a:hover {
    color: var(--c-coral);
    transform: translateX(4px);
}

.dinamo-footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.88rem;
}

.dinamo-footer-contact-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.dinamo-footer-contact-label {
    font-family: var(--f-mono);
    font-size: 0.72rem;
    color: rgba(0, 35, 75, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

.dinamo-footer-contact-value {
    color: #00234b;
    text-decoration: none;
    line-height: 1.45;
    font-weight: 600;
    transition: color 0.2s ease;
}

.dinamo-footer-contact-value:hover {
    color: var(--c-coral);
}

.tag-delivery-gold {
    background: rgba(255, 255, 255, 0.55) !important;
    border: 1px solid rgba(0, 35, 75, 0.25) !important;
    color: var(--c-navy) !important;
    font-weight: 700 !important;
}

@media (max-width: 767.98px) {
    .dinamo-footer-grid {
        text-align: center;
    }

    .dinamo-footer-brand {
        align-items: center;
        text-align: center;
    }

    .dinamo-footer-logo-row {
        justify-content: center;
    }

    .dinamo-footer-tagline {
        margin: 0 auto;
        text-align: center;
    }

    .dinamo-footer-craft-badge {
        margin: 0 auto;
    }

    .dinamo-footer-socials {
        justify-content: center;
        width: 100%;
    }

    .dinamo-footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dinamo-footer-col h4 {
        text-align: center;
        width: fit-content;
        margin: 0 auto 18px;
    }

    .dinamo-footer-links {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .dinamo-footer-links a {
        text-align: center;
    }

    .dinamo-footer-links a:hover {
        transform: translateY(-2px);
    }

    .dinamo-footer-contact-list {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .dinamo-footer-contact-item {
        align-items: center;
        text-align: center;
    }

    .dinamo-footer-contact-value {
        text-align: center;
    }

    .dinamo-footer-call-btn {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .dinamo-footer-channels {
        justify-content: center;
        width: 100%;
    }

    .dinamo-footer-bottom {
        text-align: center;
        justify-content: center;
    }

    .dinamo-footer-legal-links {
        justify-content: center;
        width: 100%;
    }
}

/* Bottom Legal Bar (Deep Navy with S-curve gradient entrance) */
.dinamo-footer-bottom-wrap {
    background: linear-gradient(
        180deg in oklab,
        var(--c-gold) 0%,
        color-mix(in oklab, var(--c-gold) 97.6%, var(--c-navy-abyss) 2.4%) 16px,
        color-mix(in oklab, var(--c-gold) 90.5%, var(--c-navy-abyss) 9.5%) 32px,
        color-mix(in oklab, var(--c-gold) 79.4%, var(--c-navy-abyss) 20.6%) 48px,
        color-mix(in oklab, var(--c-gold) 65.5%, var(--c-navy-abyss) 34.5%) 64px,
        color-mix(in oklab, var(--c-gold) 50%, var(--c-navy-abyss) 50%) 80px,
        color-mix(in oklab, var(--c-gold) 34.5%, var(--c-navy-abyss) 65.5%) 96px,
        color-mix(in oklab, var(--c-gold) 20.6%, var(--c-navy-abyss) 79.4%) 112px,
        color-mix(in oklab, var(--c-gold) 9.5%, var(--c-navy-abyss) 90.5%) 128px,
        color-mix(in oklab, var(--c-gold) 2.4%, var(--c-navy-abyss) 97.6%) 144px,
        var(--c-navy-abyss) 160px,
        var(--c-navy-abyss) 100%
    );
    padding: 110px 24px 38px;
    color: rgba(251, 249, 244, 0.65);
    border-top: none;
}

@media (min-width: 768px) {
    .dinamo-footer-bottom-wrap {
        padding: 120px 48px 44px;
    }
}

.dinamo-footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(251, 249, 244, 0.65);
}

@media (min-width: 768px) {
    .dinamo-footer-bottom {
        flex-direction: row;
    }
}

.dinamo-footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.dinamo-footer-legal-links a {
    font-family: var(--f-mono);
    font-size: 0.76rem;
    color: rgba(251, 249, 244, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.dinamo-footer-legal-links a:hover {
    color: var(--c-gold-bright);
}

/* ==========================================================================
   6. KINETIC SCROLL ENTRANCE & EXIT CHOREOGRAPHY (REVERSIBLE IN/OUT)
   ========================================================================== */

.hero-cinema-box {
    transform-origin: center top;
    will-change: transform, opacity;
}

.hero-center-stage {
    will-change: transform, opacity;
}

[data-scroll-fx] {
    transition-property: opacity, transform, filter, background-color, color, border-color, box-shadow !important;
    transition-duration: 0.85s !important;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
    transition-delay: var(--fx-delay, 0ms) !important;
    will-change: opacity, transform;
}

/* Interactive items inside in-view sections respond immediately and smoothly to hover */
.ledger-row[data-scroll-fx][data-scroll-state="in-view"],
.axis-item-btn[data-scroll-fx][data-scroll-state="in-view"],
.relay-step[data-scroll-fx][data-scroll-state="in-view"] {
    transition-duration: 0.38s !important;
    transition-delay: 0ms !important;
}

/* 1. Editorial Vertical Reveal + Exit (Headers, Titles, Relay Steps) */
[data-scroll-fx="fade-up"][data-scroll-state="below"] {
    opacity: 0;
    transform: translate3d(0, 52px, 0) scale(0.95);
    filter: blur(6px);
}

[data-scroll-fx="fade-up"][data-scroll-state="in-view"] {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0px);
}

.relay-step[data-scroll-fx="fade-up"][data-scroll-state="in-view"]:hover {
    transform: translate3d(0, -9px, 0) scale(1);
}

[data-scroll-fx][data-scroll-state="in-view"]:hover {
    --fx-delay: 0ms !important;
    transition-delay: 0ms !important;
}

[data-scroll-fx="fade-up"][data-scroll-state="above"] {
    opacity: 0;
    transform: translate3d(0, -38px, 0) scale(0.96);
    filter: blur(5px);
}

/* 2. Staggered Left-Column Cascade (Ledger Rows, Axis Buttons, Left Split) */
[data-scroll-fx="slide-left"][data-scroll-state="below"] {
    opacity: 0;
    transform: translate3d(-40px, 26px, 0) scale(0.96);
    filter: blur(4px);
}

[data-scroll-fx="slide-left"][data-scroll-state="in-view"] {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0px);
}

[data-scroll-fx="slide-left"][data-scroll-state="above"] {
    opacity: 0;
    transform: translate3d(-26px, -24px, 0) scale(0.97);
    filter: blur(3px);
}

/* 3. Counter-Balanced Right Stage Glide (Sticky Stages, Dial Stage, Map Card) */
[data-scroll-fx="slide-right"][data-scroll-state="below"] {
    opacity: 0;
    transform: translate3d(44px, 32px, 0) scale(0.94);
    filter: blur(6px);
}

[data-scroll-fx="slide-right"][data-scroll-state="in-view"] {
    opacity: 1;
    transform: none;
    filter: none;
}

[data-scroll-fx="slide-right"][data-scroll-state="above"] {
    opacity: 0;
    transform: translate3d(32px, -32px, 0) scale(0.95);
    filter: blur(5px);
}

/* 4. Scrollytelling Chapter 3D Depth Focus (In/Out) */
.scrolly-chapter {
    transform-origin: center center;
    transform: scale(0.95);
    filter: blur(1.5px);
}

.scrolly-chapter.is-active {
    transform: scale(1);
    filter: blur(0px);
}

/* accessibility & Reduced Motion + Mobile Drawer Fix */
#mobile-menu-drawer {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease !important;
}

#mobile-menu-drawer.translate-x-full {
    transform: translateX(100%) !important;
    pointer-events: none;
}

/* Override global styles.css prefers-reduced-motion 0.01ms transition lock so all hovers & animations are silky smooth */
@media (prefers-reduced-motion: reduce) {
    .dinamo-nav-pill,
    .dinamo-brand img,
    .dinamo-nav-links a,
    .dinamo-cta-order,
    .dinamo-cta-call,
    .hero-kicker-pill,
    .hero-kicker-badge,
    .hero-kicker-cta,
    .btn-hero-primary,
    .btn-hero-glass,
    .chapter-cta,
    .ledger-filter-btn,
    .ledger-row,
    .ledger-row::before,
    .ledger-row-price,
    .ledger-preview-img-wrap img,
    .novedad-cta-button,
    .axis-item-btn,
    .axis-item-btn::before,
    .axis-item-bg,
    .axis-item-bg::after,
    .axis-num,
    .axis-arrow-icon,
    .axis-wheel-rotor,
    .relay-step {
        transition-duration: 0.35s !important;
        transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
    [data-scroll-fx] {
        transition-property: opacity, transform, filter, background-color, color, border-color, box-shadow !important;
        transition-duration: 0.85s !important;
        transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
        transition-delay: var(--fx-delay, 0ms) !important;
    }
    .ledger-row[data-scroll-fx][data-scroll-state="in-view"],
    .axis-item-btn[data-scroll-fx][data-scroll-state="in-view"],
    .relay-step[data-scroll-fx][data-scroll-state="in-view"] {
        transition-duration: 0.38s !important;
        transition-delay: 0ms !important;
    }
    .scrolly-visual-layer {
        transition-duration: 0.75s !important;
    }
    .scrolly-chapter {
        transition-duration: 0.55s !important;
        transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
    }
}
