/* ============================================
   LEYENDA — PREMIUM POSTPRODUCTION EDITION
   Mantiene el colorway (oro + negro) y sube el nivel visual.
   ============================================ */

:root {
    --bg-950: #050505;
    --bg-900: #0a0a0a;
    --bg-800: #101010;

    --ink-0: #ffffff;
    --ink-100: #e0e0e0;
    --ink-300: #c0c0c0;
    --ink-500: #b0b0b0;

    --gold-300: #e0c04a;
    --gold-500: #d4af37;
    --gold-600: #b8941f;

    --radius-lg: 16px;
    --radius-xl: 22px;

    --shadow-xl: 0 26px 80px rgba(0, 0, 0, 0.65);
    --shadow-gold: 0 24px 70px rgba(212, 175, 55, 0.14);

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1);

    --mx: 50%;
    --my: 35%;
}

html {
    color-scheme: dark;
}

html.js {
    scroll-behavior: smooth;
}

.leyenda-page {
    background: radial-gradient(circle at 20% 10%, rgba(212, 175, 55, 0.06), transparent 35%),
                radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.05), transparent 38%),
                radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.02), transparent 52%),
                var(--bg-900);
    color: var(--ink-100);
    font-family: 'Poppins', sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.leyenda-page::before {
    content: "";
    position: fixed;
    inset: -20%;
    pointer-events: none;
    z-index: 5;
    background:
        radial-gradient(circle at var(--mx) var(--my), rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.26) 34%, rgba(0, 0, 0, 0.82) 72%, rgba(0, 0, 0, 0.94) 100%),
        radial-gradient(circle at var(--mx) var(--my), rgba(224, 192, 74, 0.22), transparent 52%),
        radial-gradient(circle at 50% 60%, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 58%, rgba(0, 0, 0, 0.92) 100%);
    opacity: 0.95;
    mix-blend-mode: multiply;
}

.leyenda-page::after {
    content: "";
    position: fixed;
    inset: -25%;
    pointer-events: none;
    z-index: 7;
    background:
        radial-gradient(circle at var(--mx) var(--my), rgba(255, 236, 180, 0.42), rgba(255, 236, 180, 0.2) 18%, rgba(0, 0, 0, 0) 55%),
        radial-gradient(circle at calc(var(--mx) + 10%) calc(var(--my) + 12%), rgba(255, 255, 255, 0.18), transparent 62%);
    mix-blend-mode: screen;
    filter: blur(8px) saturate(1.2);
    opacity: 0.85;
}

.postfx-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 6;
    opacity: 0.12;
    mix-blend-mode: overlay;
}

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1200;
    background: rgba(212, 175, 55, 0.08);
    backdrop-filter: blur(8px);
}

.reading-progress__bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.3), rgba(212, 175, 55, 1), rgba(224, 192, 74, 0.8));
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.65);
    transform-origin: 0 50%;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1400;
    background: rgba(0, 0, 0, 0.85);
    color: var(--gold-500);
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
    transform: translateY(0);
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
}

.leyenda-page .nav-wrapper {
    padding: 14px 0;
}

.leyenda-page .logo {
    width: clamp(135px, 18vw, 250px);
}

/* Chapter navigation */
.chapter-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: calc(env(safe-area-inset-top, 0px) + var(--nav-h, 72px));
    z-index: 950;
    padding: 6px 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(0, 0, 0, 0.62);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px);
}

.chapter-nav__toggle {
    display: none;
}

.chapter-nav__list {
    list-style: none;
    margin: 0 auto;
    padding: 0 clamp(12px, 3vw, 24px);
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.chapter-nav__list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    color: #0a0a0a;
    font-weight: 700;
    letter-spacing: 0.25px;
    font-size: 0.86rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(224, 192, 74, 0.98), rgba(212, 175, 55, 0.92));
    box-shadow:
        0 10px 26px rgba(212, 175, 55, 0.14),
        0 16px 40px rgba(0, 0, 0, 0.55);
    transition:
        transform 180ms var(--ease-out),
        filter 180ms var(--ease-out),
        box-shadow 180ms var(--ease-out);
}

.chapter-nav__list a:hover {
    transform: translateY(-1px);
    filter: brightness(1.06) saturate(1.05);
    box-shadow:
        0 12px 34px rgba(212, 175, 55, 0.2),
        0 18px 44px rgba(0, 0, 0, 0.58);
}

.chapter-nav__list a:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(212, 175, 55, 0.22),
        0 12px 34px rgba(212, 175, 55, 0.2),
        0 18px 44px rgba(0, 0, 0, 0.58);
}

.chapter-nav__list a.is-active {
    transform: translateY(-1px);
    filter: brightness(1.1) saturate(1.1);
    box-shadow:
        0 0 0 4px rgba(212, 175, 55, 0.22),
        0 16px 48px rgba(212, 175, 55, 0.22),
        0 18px 44px rgba(0, 0, 0, 0.58);
}

/* Dark Navigation */
.dark-nav {
    background: rgba(10, 10, 10, 0.72);
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    backdrop-filter: blur(14px);
}

.dark-nav .nav-links a {
    color: rgba(224, 224, 224, 0.92);
}

.dark-nav .nav-links a:hover,
.dark-nav .nav-links a.active {
    color: var(--gold-500);
}

/* Hero Section */
.leyenda-hero {
    --mx: 50%;
    --my: 45%;
    --hero-parallax: 0px;
    --hero-media-x: 44%;
    --hero-media-y: 50%;

    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(92px, 10vh, 132px) 20px 60px;
    background: #000;
    overflow: hidden;
    isolation: isolate;
}

.leyenda-hero::before {
    content: "";
    position: absolute;
    inset: -14%;
    background-image: url('https://fundomoragastorage.blob.core.windows.net/assets/images/066D82F6-A14A-4BBC-818F-FB3411BB8D6D.JPEG');
    background-size: cover;
    background-position: var(--hero-media-x) var(--hero-media-y);
    transform: translate3d(0, var(--hero-parallax), 0) scale(1.08);
    filter: saturate(1.18) contrast(1.08) brightness(0.72);
    will-change: transform;
    z-index: 0;
    opacity: 1;
    transition: opacity 900ms var(--ease-soft);
}

.leyenda-hero-video {
    position: absolute;
    inset: -14%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-media-x) var(--hero-media-y);
    transform: translate3d(0, var(--hero-parallax), 0) scale(1.08);
    filter: saturate(1.18) contrast(1.08) brightness(0.7);
    will-change: transform, opacity;
    z-index: 1;
    opacity: 1;
    pointer-events: none;
    transition: opacity 900ms var(--ease-soft);
}

.leyenda-hero.has-video::before {
    opacity: 0;
}

.leyenda-hero.has-video .leyenda-hero-video {
    opacity: 1;
}

.leyenda-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.94) 100%),
        radial-gradient(circle at 50% 22%, rgba(212, 175, 55, 0.12), transparent 55%),
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.06), transparent 55%);
    z-index: 2;
}

.hero-overlay-dark {
    position: absolute;
    inset: -20%;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at var(--mx) var(--my), rgba(212, 175, 55, 0.32), transparent 42%),
        radial-gradient(circle at calc(var(--mx) + 12%) calc(var(--my) + 18%), rgba(255, 255, 255, 0.06), transparent 52%),
        radial-gradient(circle at 35% 80%, rgba(255, 255, 255, 0.04), transparent 58%);
    opacity: 0.75;
    filter: blur(18px);
    mix-blend-mode: screen;
    animation: heroLights 10s ease-in-out infinite;
}

.hero-overlay-dark::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05), transparent 60%),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.04), transparent 62%);
    filter: blur(34px);
    opacity: 0.55;
    animation: fogDrift 18s ease-in-out infinite;
}

@keyframes heroLights {
    0%, 100% { opacity: 0.62; transform: translate3d(0, 0, 0); }
    50% { opacity: 0.92; transform: translate3d(0, -10px, 0); }
}

@keyframes fogDrift {
    0%, 100% { transform: translate3d(-12px, 0, 0) scale(1.02); }
    50% { transform: translate3d(18px, -12px, 0) scale(1.08); }
}

.hero-content-center {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    max-width: 980px;
}

.leyenda-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    font-weight: 700;
    margin: 0 0 16px 0;
    line-height: 1.06;
    letter-spacing: -0.5px;
    text-wrap: balance;
}

.title-line-1 {
    display: block;
    font-size: clamp(1.35rem, 3vw, 2.4rem);
    font-weight: 400;
    color: rgba(224, 224, 224, 0.92);
    margin-bottom: 10px;
    letter-spacing: 0.2px;
}

.title-line-2 {
    display: block;
    color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(212, 175, 55, 1) 55%, rgba(184, 148, 31, 0.95) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow:
        0 0 34px rgba(212, 175, 55, 0.36),
        1px 0 rgba(255, 0, 80, 0.10),
        -1px 0 rgba(0, 160, 255, 0.08),
        0 30px 120px rgba(0, 0, 0, 0.9);
}

.leyenda-subtitle {
    font-size: clamp(1.05rem, 2.2vw, 1.35rem);
    color: rgba(176, 176, 176, 0.92);
    margin: 0 0 38px 0;
    letter-spacing: 0.2px;
}

.scroll-down {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.22);
    backdrop-filter: blur(10px);
    transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), background 180ms var(--ease-out);
}

.scroll-down:hover {
    transform: translateY(-2px);
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.35);
}

.scroll-down span {
    font-size: 0.82rem;
    color: var(--gold-500);
    text-transform: uppercase;
    letter-spacing: 2.2px;
}

.scroll-arrow {
    font-size: 1.6rem;
    color: var(--gold-500);
    animation: bounce 1.9s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Audio relato */
.leyenda-audio {
    padding: clamp(48px, 6vw, 90px) 20px 0;
    background:
        radial-gradient(circle at 25% 30%, rgba(212, 175, 55, 0.06), transparent 50%),
        radial-gradient(circle at 75% 60%, rgba(212, 175, 55, 0.04), transparent 50%);
}

.audio-shell {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(24px, 3vw, 42px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(212, 175, 55, 0.2);
    background:
        radial-gradient(circle at 20% 20%, rgba(212, 175, 55, 0.08), transparent 50%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.9));
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(16px);
}

.audio-head .section-tag {
    margin-bottom: 12px;
}

.audio-head h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin: 0 0 10px;
    color: rgba(224, 224, 224, 0.98);
}

.audio-description {
    margin: 0 0 22px;
    color: rgba(176, 176, 176, 0.92);
    max-width: 70ch;
}

.audio-player {
    --audio-progress: 0%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(0, 0, 0, 0.45);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.audio-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: linear-gradient(180deg, rgba(224, 192, 74, 0.98), rgba(212, 175, 55, 0.92));
    color: #0a0a0a;
    font-weight: 700;
    cursor: pointer;
    transition: transform 180ms var(--ease-out), filter 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 12px 26px rgba(212, 175, 55, 0.18);
}

.audio-toggle:hover {
    transform: translateY(-1px);
    filter: brightness(1.05) saturate(1.05);
}

.audio-toggle__icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
}

.audio-toggle__icon svg {
    width: 20px;
    height: 20px;
    fill: #0a0a0a;
}

.audio-toggle__icon--pause {
    display: none;
}

.audio-player.is-playing .audio-toggle__icon--play {
    display: none;
}

.audio-player.is-playing .audio-toggle__icon--pause {
    display: inline-flex;
}

.audio-toggle__text {
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.audio-track {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    cursor: pointer;
}

.audio-track:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.25);
}

.audio-track__fill {
    height: 100%;
    width: var(--audio-progress);
    background: linear-gradient(90deg, rgba(224, 192, 74, 0.9), rgba(212, 175, 55, 1), rgba(255, 236, 180, 0.9));
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.55);
}

.audio-track__thumb {
    position: absolute;
    top: 50%;
    left: var(--audio-progress);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 30% 30%, #ffffff, rgba(224, 192, 74, 0.9));
    border: 1px solid rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 14px rgba(212, 175, 55, 0.55);
}

.audio-time {
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
    color: rgba(224, 224, 224, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.audio-mute {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out);
}

.audio-mute:hover {
    transform: translateY(-1px);
    border-color: rgba(212, 175, 55, 0.45);
}

.audio-mute__icon svg {
    width: 20px;
    height: 20px;
    fill: rgba(224, 224, 224, 0.9);
}

.audio-mute__icon--off {
    display: none;
}

.audio-player.is-muted .audio-mute__icon--on {
    display: none;
}

.audio-player.is-muted .audio-mute__icon--off {
    display: inline-flex;
}

@media (max-width: 720px) {
    .audio-player {
        grid-template-columns: 1fr;
        justify-items: stretch;
        gap: 12px;
    }

    .audio-toggle {
        justify-content: center;
    }

    .audio-time {
        justify-self: center;
    }

    .audio-mute {
        justify-self: center;
    }
}

/* Content Section */
.leyenda-content {
    position: relative;
    padding: clamp(64px, 7vw, 100px) 20px;
    background:
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.04), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.04), transparent 45%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.92)),
        var(--bg-900);
}

.container-narrow {
    max-width: 1100px;
    margin: 0 auto;
}

/* Reveal system (JS-enhanced) */
.no-js .reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
}

.js .reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.995);
    filter: blur(10px);
    transition:
        opacity 900ms var(--ease-soft),
        transform 900ms var(--ease-soft),
        filter 900ms var(--ease-soft);
    will-change: transform, opacity, filter;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: blur(0);
}

/* Story blocks */
.story-section {
    position: relative;
    margin: clamp(34px, 5vw, 76px) auto;
    padding: clamp(22px, 3.2vw, 44px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(212, 175, 55, 0.16);
    background:
        radial-gradient(circle at 20% 10%, rgba(212, 175, 55, 0.10), transparent 45%),
        linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.35) 100%);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.story-section > :where(h2, p, .section-tag, .legend-quote) {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
}

.story-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.05), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.06), transparent 55%);
    opacity: 0.7;
    mix-blend-mode: screen;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--gold-500);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 18px;
    padding: 9px 18px;
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 999px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(10px);
}

.story-section h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.7rem, 3.2vw, 2.55rem);
    color: rgba(224, 224, 224, 0.98);
    margin: 0 0 18px 0;
    line-height: 1.2;
    text-wrap: balance;
}

.story-section h2::after {
    content: "";
    display: block;
    height: 1px;
    width: 140px;
    margin: 18px 0 0 0;
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.8), rgba(212, 175, 55, 0.08));
    opacity: 0.85;
}

.lead-text {
    font-size: clamp(1.08rem, 2.05vw, 1.26rem);
    line-height: 1.85;
    color: rgba(176, 176, 176, 0.95);
    margin: 0 0 18px 0;
}

.lead-text::first-letter {
    float: left;
    font-family: 'Cinzel', serif;
    font-size: 4.2rem;
    line-height: 0.9;
    margin: 0.15rem 0.75rem 0 0;
    color: var(--gold-500);
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.28);
}

.story-section p {
    font-size: 1.08rem;
    line-height: 1.95;
    color: rgba(192, 192, 192, 0.95);
    margin: 0 0 18px 0;
}

/* Story Image */
.story-image-container {
    position: relative;
    margin: 10px auto 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    max-width: 1100px;
}

.story-image {
    width: 100%;
    height: clamp(320px, 46vw, 560px);
    object-fit: cover;
    transform: scale(1.02);
    filter: contrast(1.05) saturate(1.08);
    transition: transform 900ms var(--ease-soft), filter 900ms var(--ease-soft);
    will-change: transform;
}

@media (hover: hover) {
    .story-image-container:hover .story-image {
        transform: scale(1.06);
        filter: contrast(1.08) saturate(1.14);
    }
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px 18px 16px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92), transparent);
    color: var(--gold-500);
    font-size: 0.92rem;
    text-align: center;
    letter-spacing: 0.25px;
}

/* Quote */
.legend-quote {
    position: relative;
    padding: 34px 34px 32px 78px;
    margin: 36px auto;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(0, 0, 0, 0.35));
    border-left: 4px solid var(--gold-500);
    border-radius: 18px;
    font-style: italic;
    font-size: 1.1rem;
    color: rgba(224, 224, 224, 0.98);
    line-height: 1.85;
    box-shadow: var(--shadow-gold);
    overflow: hidden;
}

.legend-quote::before {
    content: '"';
    position: absolute;
    left: 18px;
    top: 14px;
    font-size: 4.6rem;
    color: var(--gold-500);
    opacity: 0.28;
    font-family: Georgia, serif;
    line-height: 1;
}

.legend-quote::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.06), transparent 55%);
    filter: blur(26px);
    opacity: 0.7;
    mix-blend-mode: screen;
    pointer-events: none;
}

.legend-quote cite {
    display: block;
    margin-top: 16px;
    font-size: 0.92rem;
    color: rgba(176, 176, 176, 0.9);
    font-style: normal;
}

/* Experience Section */
.experience-section {
    margin: clamp(70px, 8vw, 120px) 0;
}

.experience-box {
    position: relative;
    text-align: center;
    border-radius: 22px;
    padding: clamp(28px, 4vw, 52px);
    border: 1px solid rgba(212, 175, 55, 0.34);
    background:
        radial-gradient(circle at 20% 10%, rgba(212, 175, 55, 0.14), transparent 55%),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.05), transparent 60%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25));
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65), 0 22px 80px rgba(212, 175, 55, 0.14);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.experience-box::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: linear-gradient(120deg, transparent 30%, rgba(212, 175, 55, 0.18), transparent 70%);
    transform: translateX(-35%);
    filter: blur(18px);
    opacity: 0.45;
    animation: lightLeak 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lightLeak {
    0%, 100% { transform: translateX(-35%) rotate(2deg); opacity: 0.25; }
    50% { transform: translateX(35%) rotate(-1deg); opacity: 0.6; }
}

.experience-box h3 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 3.3vw, 2.1rem);
    color: var(--gold-500);
    margin: 0 0 18px 0;
    text-shadow: 0 0 28px rgba(212, 175, 55, 0.25);
}

.experience-box p {
    font-size: 1.08rem;
    color: rgba(192, 192, 192, 0.95);
    margin: 0 auto 22px auto;
    max-width: 72ch;
    line-height: 1.85;
}

.experience-features {
    list-style: none;
    padding: 0;
    margin: 24px auto 8px auto;
    max-width: 62ch;
    text-align: left;
    display: grid;
    gap: 10px;
}

.experience-features li {
    padding: 12px 14px;
    color: rgba(224, 224, 224, 0.96);
    font-size: 1.02rem;
    border: 1px solid rgba(212, 175, 55, 0.14);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
}

.btn-leyenda {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(120deg, var(--gold-500), var(--gold-600), var(--gold-300));
    background-size: 200% 200%;
    color: #050505;
    font-weight: 800;
    font-size: 1.05rem;
    text-decoration: none;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), background-position 700ms var(--ease-soft);
    margin-top: 12px;
    box-shadow: 0 16px 46px rgba(212, 175, 55, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-leyenda::before {
    content: "";
    position: absolute;
    inset: -120% 60% -120% -60%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    transform: translateX(-120%);
    transition: transform 700ms var(--ease-soft);
}

.btn-leyenda:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 68px rgba(212, 175, 55, 0.55);
    background-position: 100% 0%;
}

.btn-leyenda:hover::before {
    transform: translateX(120%);
}

.btn-leyenda:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.22), 0 22px 68px rgba(212, 175, 55, 0.55);
}

/* Visit Section */
.visit-section {
    text-align: center;
    margin: clamp(54px, 7vw, 92px) 0;
    padding: clamp(26px, 4vw, 60px);
    border-radius: 22px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(212, 175, 55, 0.04);
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
}

.visit-section h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    color: var(--gold-500);
    margin: 0 0 14px 0;
}

.visit-section p {
    font-size: 1.12rem;
    color: rgba(192, 192, 192, 0.95);
    margin: 0 auto 26px auto;
    max-width: 72ch;
    line-height: 1.85;
}

.visit-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.info-item {
    padding: 22px 20px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: 18px;
    text-align: left;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
    transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), background 220ms var(--ease-out);
}

@media (hover: hover) {
    .info-item:hover {
        transform: translateY(-2px);
        border-color: rgba(212, 175, 55, 0.35);
        background: rgba(0, 0, 0, 0.52);
    }
}

.info-item strong {
    color: var(--gold-500);
    display: block;
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.info-item a {
    color: var(--gold-500);
    text-decoration: none;
    transition: color 180ms var(--ease-out);
}

.info-item a:hover {
    color: var(--gold-300);
}

/* Share Section */
.share-section {
    text-align: center;
    margin: 56px 0 38px 0;
    padding: 18px 0;
}

.share-section p {
    color: rgba(176, 176, 176, 0.92);
    margin: 0 0 16px 0;
}

.social-share {
    display: flex;
    justify-content: center;
    gap: 14px;
}

.share-btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.28);
    color: var(--gold-500);
    transition: transform 220ms var(--ease-out), background 220ms var(--ease-out), color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.share-btn:hover {
    background: var(--gold-500);
    color: #050505;
    transform: translateY(-2px);
    box-shadow: 0 16px 38px rgba(212, 175, 55, 0.28);
}

.share-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18), 0 16px 38px rgba(212, 175, 55, 0.28);
}

/* Back Home */
.back-home {
    text-align: center;
    margin: 54px 0 0 0;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    color: var(--gold-500);
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 999px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.18), rgba(0, 0, 0, 0.35));
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
    transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), background 220ms var(--ease-out), box-shadow 220ms var(--ease-out), filter 220ms var(--ease-out);
}

.btn-back::before {
    content: "";
    position: absolute;
    inset: -120% 60% -120% -60%;
    background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: translateX(-120%);
    transition: transform 700ms var(--ease-soft);
}

.btn-back:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.28), rgba(0, 0, 0, 0.25));
    border-color: rgba(212, 175, 55, 0.55);
    transform: translateX(-2px);
    filter: brightness(1.05) saturate(1.05);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.6);
}

.btn-back:hover::before {
    transform: translateX(120%);
}

.btn-back:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.22), 0 18px 46px rgba(0, 0, 0, 0.6);
}

/* Footer Dark */
.footer-dark {
    background: #000000;
    color: rgba(192, 192, 192, 0.95);
    padding: 64px 20px 34px;
    border-top: 1px solid rgba(212, 175, 55, 0.18);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 34px;
    margin-bottom: 34px;
}

.footer-section h4 {
    color: var(--gold-500);
    margin-bottom: 12px;
    font-family: 'Cinzel', serif;
}

.footer-logo {
    width: 200px;
    margin-bottom: 14px;
    filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.6));
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-links a {
    color: var(--gold-500);
    text-decoration: none;
    transition: color 180ms var(--ease-out);
}

.social-links a:hover {
    color: var(--gold-300);
}

.footer-bottom {
    text-align: center;
    padding-top: 26px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    color: rgba(128, 128, 128, 0.95);
    font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .chapter-nav__list {
        gap: 8px;
    }
    .visit-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .chapter-nav__list {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 0 16px;
    }

    .chapter-nav__list::-webkit-scrollbar {
        display: none;
    }

    .chapter-nav__list a {
        padding: 8px 10px;
        font-size: 0.84rem;
    }

    .story-section {
        padding: 22px 18px;
    }

    .legend-quote {
        padding: 26px 18px 26px 54px;
    }

    .legend-quote::before {
        font-size: 3.2rem;
        left: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.js {
        scroll-behavior: auto;
    }

    .postfx-canvas {
        display: none;
    }

    .leyenda-hero-video {
        display: none;
    }

    .leyenda-hero::before {
        opacity: 1 !important;
        transition: none;
    }

    .hero-overlay-dark,
    .hero-overlay-dark::after,
    .scroll-arrow,
    .experience-box::before {
        animation: none !important;
    }

    .js .reveal {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

.leyenda-page.force-motion .postfx-canvas {
    display: block !important;
}

.leyenda-page.force-motion .leyenda-hero-video {
    display: block !important;
}

.leyenda-page.force-motion .hero-overlay-dark {
    animation: heroLights 10s ease-in-out infinite !important;
}

.leyenda-page.force-motion .hero-overlay-dark::after {
    animation: fogDrift 18s ease-in-out infinite !important;
}

.leyenda-page.force-motion .scroll-arrow {
    animation: bounce 1.9s ease-in-out infinite !important;
}

.leyenda-page.force-motion .experience-box::before {
    animation: lightLeak 10s ease-in-out infinite !important;
}

