/* ==========================================================================
   MYTHOS — CRÓNICAS DEL OLIMPO // SISTEMA DE DISEÑO CLÁSICO DE LUJO
   Inspirado en: British Museum, Louvre Interactive, Awwwards Site of the Year
   ========================================================================== */

:root {
    /* Fondos & Atmósfera Olímpica */
    --bg-dark: #060913;
    --bg-deep: #090e1c;
    --bg-surface: #0e1529;
    --bg-glass: rgba(14, 21, 40, 0.82);
    --bg-glass-hover: rgba(22, 32, 60, 0.94);
    --bg-glass-card: rgba(12, 18, 35, 0.88);
    --bg-modal: rgba(6, 9, 20, 0.98);

    /* Paleta Áurea y Divina */
    --gold-primary: #d4af37;
    --gold-bright: #f9ecc2;
    --gold-light: #fef3c7;
    --gold-deep: #9d7712;
    --gold-glow: rgba(212, 175, 55, 0.42);
    --gold-gradient: linear-gradient(135deg, #fffbeb 0%, #d4af37 45%, #855f0b 100%);
    --gold-shimmer: linear-gradient(90deg, #d4af37 0%, #fff 50%, #d4af37 100%);

    /* Dominios Celestiales */
    --accent-zeus: #60a5fa;
    --accent-zeus-glow: rgba(96, 165, 250, 0.5);
    --accent-poseidon: #06b6d4;
    --accent-poseidon-glow: rgba(6, 182, 212, 0.5);
    --accent-hades: #a855f7;
    --accent-hades-glow: rgba(168, 85, 247, 0.5);
    --accent-apollo: #f59e0b;

    /* Textos & Legibilidad */
    --text-pure: #ffffff;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    /* Tipografía */
    --font-display: 'Cinzel Decorative', 'Cinzel', serif;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Bordes Clásicos & Sombras */
    --hairline: 1px solid rgba(212, 175, 55, 0.3);
    --hairline-subtle: 1px solid rgba(255, 255, 255, 0.14);
    --hairline-glow: 1px solid rgba(212, 175, 55, 0.7);
    --shadow-epic: 0 25px 60px rgba(0, 0, 0, 0.85);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background: rgba(212, 175, 55, 0.45);
    color: #ffffff;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

body {
    background: radial-gradient(circle at 50% 0%, #111a33 0%, #080c19 35%, #050711 70%, #03040a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Scrollbar Griego Minimalista */
::-webkit-scrollbar {
    width: 7px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Canvas de Fondo: Constelaciones y Polvo Áureo */
#constellation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

/* Utilidades */
.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
    z-index: 10;
}

.text-gold-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.5));
}

.text-center { text-align: center; }

/* Botones Principales */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.85rem 1.8rem;
    border-radius: 40px;
    background: linear-gradient(135deg, #f9ecc2 0%, #d4af37 50%, #9d7712 100%);
    color: #04060a;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(212, 175, 55, 0.45);
    transition: all 0.35s var(--ease-out-expo);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f9ecc2 40%, #d4af37 100%);
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.75);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.85rem 1.8rem;
    border-radius: 40px;
    background: rgba(14, 21, 40, 0.65);
    color: var(--gold-bright);
    text-decoration: none;
    border: 1px solid rgba(212, 175, 55, 0.5);
    backdrop-filter: blur(15px);
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
}
.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.2rem;
    font-size: 0.9rem;
}

/* ==========================================================================
   1. BARRA DE NAVEGACIÓN
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(6, 9, 20, 0.88);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: var(--hairline-subtle);
    transition: all 0.3s ease;
}
.navbar.scrolled {
    background: rgba(6, 9, 20, 0.97);
    border-bottom: var(--hairline);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
}

.nav-container {
    max-width: 1540px;
    margin: 0 auto;
    padding: 1.1rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}
.logo-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.6));
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--text-pure);
    display: flex;
    flex-direction: column;
    line-height: 1;
}
.logo-text small {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--gold-primary);
    margin-top: 4px;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2rem;
}
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
    position: relative;
}
.nav-link:hover, .nav-link.active {
    color: var(--gold-bright);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 1px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}
.sound-toggle-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-bright);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}
.sound-toggle-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 0 15px var(--gold-glow);
}
.sound-toggle-btn.playing {
    border-color: var(--gold-primary);
    color: #ffffff;
    background: rgba(212, 175, 55, 0.25);
}

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.6rem;
    cursor: pointer;
}

/* ==========================================================================
   2. HERO SECTION: SANTUARIO DEL MONTE OLIMPO (FONDO VISUAL ÉPICO)
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 10rem 0 6rem 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-image: url('./images/olympus_hero_bg.jpg');
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, rgba(4, 6, 12, 0.4) 0%, rgba(6, 9, 20, 0.85) 65%, var(--bg-dark) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-god-rays {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.25) 0%, rgba(96, 165, 250, 0.1) 45%, transparent 75%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
    max-width: 1100px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold-bright);
    background: rgba(6, 9, 20, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.5);
    padding: 0.45rem 1.4rem;
    border-radius: 30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}
.badge-dot {
    width: 7px;
    height: 7px;
    background: var(--gold-primary);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--gold-primary);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 5.5vw, 4.8rem);
    font-weight: 900;
    line-height: 1.12;
    color: var(--text-pure);
    letter-spacing: 1.5px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, 0.95);
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: #f1f5f9;
    line-height: 1.8;
    max-width: 850px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.2rem;
}

/* Carrusel de Sagas Cumbre en el Hero */
.hero-featured-showcase {
    width: 100%;
    margin-top: 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    border: var(--hairline);
    border-radius: 24px;
    padding: 1.6rem 2rem;
    box-shadow: var(--shadow-epic);
}
.featured-showcase-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    letter-spacing: 2px;
    color: var(--gold-bright);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.featured-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.featured-mini-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 170px;
    border: var(--hairline-subtle);
    cursor: pointer;
    transition: all 0.35s var(--ease-out-expo);
    text-align: left;
}
.featured-mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.featured-mini-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}
.featured-mini-card:hover img {
    transform: scale(1.08);
}
.featured-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 9, 20, 0.95) 60%);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.feat-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--gold-primary);
    letter-spacing: 1px;
}
.featured-card-info h4 {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    color: #ffffff;
    font-weight: 700;
}
.feat-action {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Métricas Olímpicas en Altar */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 1.2rem 2.8rem;
    background: rgba(8, 12, 26, 0.85);
    backdrop-filter: blur(20px);
    border: var(--hairline);
    border-radius: 20px;
    margin-top: 1rem;
}
.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.stat-number {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--gold-bright);
}
.stat-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}
.stat-divider {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.14);
}

.hero-scroll-indicator {
    position: relative;
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--gold-bright);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 10;
}

/* ==========================================================================
   3. SECCIÓN PANTEÓN: ALTARES ARQUITECTÓNICOS DE CRISTAL Y ORO
   ========================================================================== */
.section-panteon {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
    background: radial-gradient(circle at 50% 30%, rgba(18, 28, 56, 0.5) 0%, rgba(8, 12, 24, 0.8) 70%, transparent 100%);
}
.section-header {
    max-width: 800px;
    margin: 0 auto 4.5rem auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.section-tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold-primary);
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 3.8vw, 3.2rem);
    font-weight: 800;
    color: var(--text-pure);
}
.section-desc {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-secondary);
}

.gods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.2rem;
}

/* Tarjetas de Deidades: Altares con Cuadros Clásicos Reales */
.god-card {
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-out-expo);
    display: flex;
    flex-direction: column;
    min-height: 520px;
    box-shadow: var(--shadow-epic);
    border: var(--hairline-subtle);
}
.god-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    transition: transform 0.6s ease;
    z-index: 1;
}
.god-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(6, 9, 20, 0.25) 0%, rgba(6, 9, 20, 0.75) 50%, rgba(4, 6, 14, 0.98) 100%);
    z-index: 2;
    transition: background 0.3s ease;
}
.god-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
}
.god-card:hover .god-card-bg {
    transform: scale(1.06);
}

/* Temas por Deidad */
.card-zeus {
    border-color: rgba(96, 165, 250, 0.3);
}
.card-zeus:hover {
    border-color: rgba(96, 165, 250, 0.8);
    box-shadow: 0 20px 50px rgba(96, 165, 250, 0.3);
}
.card-poseidon {
    border-color: rgba(6, 182, 212, 0.3);
}
.card-poseidon:hover {
    border-color: rgba(6, 182, 212, 0.8);
    box-shadow: 0 20px 50px rgba(6, 182, 212, 0.3);
}
.card-hades {
    border-color: rgba(168, 85, 247, 0.3);
}
.card-hades:hover {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 20px 50px rgba(168, 85, 247, 0.3);
}

.god-card-inner {
    position: relative;
    z-index: 5;
    padding: 2.8rem 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    height: 100%;
    justify-content: flex-end;
}

.god-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.realm-badge {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 1px;
    color: var(--gold-bright);
    background: rgba(6, 9, 20, 0.85);
    border: var(--hairline);
    padding: 4px 12px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.god-icon {
    font-size: 1.6rem;
}

.god-name {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-pure);
}
.god-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--gold-bright);
    font-style: italic;
    margin-top: -0.4rem;
}
.god-bio {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.7;
}

.god-card-footer {
    border-top: var(--hairline-subtle);
    padding-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.btn-text-gold {
    background: transparent;
    border: none;
    color: var(--gold-bright);
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}
.btn-text-gold:hover {
    color: #ffffff;
    text-shadow: 0 0 10px var(--gold-primary);
}

/* ==========================================================================
   4. CRONOLOGÍA DE LAS 5 GRANDES ERAS GRIEGAS (LINEA DE TIEMPO)
   ========================================================================== */
.section-cuentos {
    padding: 8rem 0;
    position: relative;
    z-index: 10;
    background: radial-gradient(circle at 50% 20%, rgba(22, 34, 68, 0.4) 0%, rgba(8, 12, 24, 0.8) 60%, transparent 100%);
}

.eras-timeline-wrapper {
    margin: 3.5rem 0 3rem 0;
    padding: 2rem 2.5rem;
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    border: var(--hairline);
    border-radius: 24px;
    box-shadow: var(--shadow-epic);
}
.timeline-header-bar {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--gold-bright);
    margin-bottom: 1.4rem;
    text-align: center;
}

.timeline-track {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.timeline-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.1rem 0.8rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}
.timeline-node:hover {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.5);
}
.timeline-node.active {
    background: rgba(212, 175, 55, 0.22);
    border-color: var(--gold-primary);
    box-shadow: 0 0 25px var(--gold-glow);
}

.node-dot {
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}
.node-label {
    font-family: var(--font-heading);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-pure);
    line-height: 1.3;
}
.node-sub {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Buscador & Filtros */
.cuentos-search-bar {
    max-width: 780px;
    margin: 0 auto 2rem auto;
}
.search-input-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-glass);
    border: var(--hairline);
    border-radius: 40px;
    padding: 0.9rem 1.8rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-epic);
}
.search-input-box i {
    color: var(--gold-primary);
    font-size: 1.3rem;
}
.search-input-box input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    width: 100%;
    outline: none;
}
.search-input-box input::placeholder {
    color: var(--text-muted);
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3.5rem;
}
.filter-btn {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: var(--hairline-subtle);
    padding: 0.55rem 1.3rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.filter-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
    color: #ffffff;
}
.filter-btn.active {
    background: var(--gold-gradient);
    color: #04060a;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   5. GALERÍA DE SAGAS & CANTOS (DISEÑO EDITORIAL CLÁSICO SIN RECUADROS)
   ========================================================================== */
.cuentos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.story-card {
    background: var(--bg-glass-card);
    backdrop-filter: blur(25px);
    border: var(--hairline);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s var(--ease-out-expo);
    box-shadow: var(--shadow-epic);
    position: relative;
}
.story-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.6);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.95);
}

.story-card-media {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #020306;
}
.story-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}
.story-card:hover .story-card-img {
    transform: scale(1.06);
}

.story-card-media-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}
.museum-tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold-bright);
    background: rgba(6, 9, 20, 0.88);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 3px 9px;
    border-radius: 6px;
}
.source-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-secondary);
    background: rgba(6, 9, 20, 0.88);
    backdrop-filter: blur(10px);
    padding: 3px 8px;
    border-radius: 6px;
    border: var(--hairline-subtle);
}

.story-card-content {
    padding: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.story-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
}
.story-category {
    color: var(--gold-primary);
}

.story-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-pure);
    line-height: 1.35;
}

.story-excerpt {
    font-family: var(--font-serif);
    font-size: 1.02rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

.story-moral {
    font-family: var(--font-serif);
    font-size: 0.88rem;
    font-style: italic;
    color: var(--gold-bright);
    border-left: 2px solid var(--gold-primary);
    padding-left: 0.85rem;
    line-height: 1.5;
}

.story-card-bottom {
    margin-top: 0.5rem;
    border-top: var(--hairline-subtle);
    padding-top: 1.2rem;
}
.btn-read-story {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.05);
    border: var(--hairline);
    color: var(--gold-bright);
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 0.75rem 1.4rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-read-story:hover {
    background: var(--gold-gradient);
    color: #04060a;
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

/* ==========================================================================
   6. EL ORÁCULO DE DELFOS (INTERACTIVO - FONDO DE SANTUARIO EN LLAMAS)
   ========================================================================== */
.section-oraculo {
    padding: 9rem 0;
    position: relative;
    z-index: 10;
    background-image: url('./images/delphi_sanctuary_bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.section-oraculo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(6, 9, 20, 0.6) 0%, rgba(6, 9, 20, 0.9) 70%, var(--bg-dark) 100%);
    z-index: 1;
}

.oraculo-wrapper {
    background: rgba(8, 12, 28, 0.88);
    backdrop-filter: blur(25px);
    border: var(--hairline-glow);
    border-radius: 32px;
    padding: 5rem 4rem;
    text-align: center;
    position: relative;
    z-index: 5;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95);
}
.oraculo-content {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.8rem;
}
.oraculo-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3.8vw, 3.4rem);
    font-weight: 800;
    color: var(--text-pure);
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}
.oraculo-desc {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: #e2e8f0;
    line-height: 1.8;
}

.virtues-selector {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.85rem;
    margin: 1.5rem 0;
}
.virtue-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: var(--hairline-subtle);
    padding: 0.75rem 1.4rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.virtue-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold-primary);
    color: #ffffff;
    box-shadow: 0 0 15px var(--gold-glow);
    transform: translateY(-2px);
}
.virtue-btn.active {
    background: var(--gold-gradient);
    color: #04060a;
    border-color: transparent;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6);
}

.oraculo-response-box {
    background: rgba(6, 9, 22, 0.92);
    border: var(--hairline);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}
.oraculo-icon {
    font-size: 2.2rem;
    color: var(--gold-primary);
    filter: drop-shadow(0 0 10px var(--gold-primary));
}
.oraculo-text {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.85;
}
.oraculo-recommendation {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: var(--hairline-subtle);
    padding-top: 1.2rem;
    margin-top: 0.5rem;
    color: var(--gold-bright);
}
.btn-read-rec {
    background: var(--gold-primary);
    color: #04060a;
    border: none;
    padding: 0.5rem 1.4rem;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-read-rec:hover {
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   7. SECCIÓN APRENDE
   ========================================================================== */
.section-coleccion {
    padding: 7rem 0;
    position: relative;
    z-index: 10;
}
.deluxe-banner {
    background: linear-gradient(135deg, rgba(20, 30, 60, 0.92) 0%, rgba(8, 12, 26, 0.96) 100%);
    backdrop-filter: blur(25px);
    border: var(--hairline-glow);
    border-radius: 28px;
    padding: 4.5rem;
    box-shadow: var(--shadow-epic);
}
.deluxe-content {
    max-width: 820px;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}
.deluxe-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    font-weight: 800;
    color: var(--text-pure);
}
.deluxe-desc {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: #cbd5e1;
    line-height: 1.8;
}
.deluxe-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 1.8rem;
    margin-top: 1rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--gold-bright);
}
.perk-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ==========================================================================
   8. FOOTER
   ========================================================================== */
.footer {
    position: relative;
    z-index: 10;
    background: #03050c;
    border-top: var(--hairline);
    padding: 6rem 0 3rem 0;
}
.footer-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}
.footer-tagline {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 1rem;
    max-width: 380px;
}
.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    color: var(--gold-bright);
    margin-bottom: 1.4rem;
}
.footer-links-group ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.footer-links-group a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
}
.footer-links-group a:hover {
    color: #ffffff;
}

.footer-bottom-inner {
    border-top: var(--hairline-subtle);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}
.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
}
.footer-legal-links a:hover { color: #fff; }

/* Ads */
.ad-slot {
    max-width: 980px;
    margin: 2rem auto;
    padding: 1.2rem;
    background: rgba(14, 21, 40, 0.5);
    border: 1px dashed rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    text-align: center;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
}

/* El antiguo distintivo del héroe se reutiliza como banner horizontal.
   Tiene el tamaño de un bloque estándar sin ocupar toda la pantalla. */
.ad-slot--hero {
    width: calc(100% - 2rem);
    max-width: 980px;
    min-height: 90px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.8rem auto 1.8rem;
}

/* ==========================================================================
   9. MODAL LECTOR INMERSIVO («EL SANTUARIO»)
   ========================================================================== */
.story-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 3, 8, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.story-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.story-modal-container {
    width: 100%;
    max-width: 940px;
    max-height: 90vh;
    background: var(--bg-modal);
    border: var(--hairline-glow);
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.98);
    overflow: hidden;
}

.reader-toolbar {
    padding: 1.4rem 2.5rem;
    background: rgba(12, 18, 36, 0.95);
    border-bottom: var(--hairline-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.reader-brand {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gold-primary);
    letter-spacing: 1.5px;
}
.reader-controls {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.reader-btn {
    background: rgba(255, 255, 255, 0.06);
    border: var(--hairline-subtle);
    color: var(--text-primary);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.reader-btn:hover {
    border-color: var(--gold-primary);
}
.reader-btn.speaking {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--gold-primary);
    color: #ffffff;
}
.reader-btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
}
.reader-btn-close:hover { color: #fff; }

.reading-progress-bar {
    height: 3px;
    width: 0%;
    background: var(--gold-gradient);
}

.story-modal-body {
    padding: 3rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-primary);
}

/* Modal Headers */
.modal-artwork-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: var(--hairline);
    max-height: 380px;
}
.modal-artwork-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.modal-artwork-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 9, 20, 0.95) 60%);
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.caption-title { color: var(--gold-bright); font-weight: 700; }

.modal-meta-top {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}
.story-modal-era-badge {
    color: var(--gold-primary);
    font-weight: 700;
}

.story-toc-box {
    background: rgba(212, 175, 55, 0.08);
    border: var(--hairline);
    border-radius: 16px;
    padding: 1.4rem 1.8rem;
}
.story-toc-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    color: var(--gold-bright);
    margin-bottom: 0.8rem;
}
.story-toc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.toc-pill-btn {
    background: rgba(255, 255, 255, 0.05);
    border: var(--hairline-subtle);
    color: var(--text-secondary);
    padding: 0.4rem 0.95rem;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}
.toc-pill-btn:hover {
    border-color: var(--gold-primary);
    color: #ffffff;
    background: rgba(212, 175, 55, 0.15);
}
.toc-pill-num {
    background: var(--gold-primary);
    color: #04060a;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
}

.story-chapter-block {
    margin-bottom: 3rem;
    border-bottom: var(--hairline-subtle);
    padding-bottom: 3rem;
}
.canto-badge-header {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}
.canto-era-tag { color: var(--gold-primary); font-weight: 700; }
.chapter-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--gold-bright);
    margin-bottom: 1.4rem;
}
.chapter-illustration-frame {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: var(--hairline);
    margin-bottom: 1.8rem;
    max-height: 420px;
}
.chapter-scene-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.chapter-scene-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(6, 9, 20, 0.92) 50%);
    padding: 0.8rem 1.4rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.chapter-text-body p {
    margin-bottom: 1.4rem;
    line-height: 1.85;
}
.drop-cap-p::first-letter {
    font-family: var(--font-display);
    font-size: 3.4rem;
    float: left;
    line-height: 0.8;
    margin-right: 0.6rem;
    color: var(--gold-bright);
    text-shadow: 0 0 15px var(--gold-glow);
}

.story-quote {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gold-bright);
    border-left: 3px solid var(--gold-primary);
    padding: 1.2rem 1.6rem;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 0 16px 16px 0;
    line-height: 1.8;
}

.story-epilogue-box {
    background: rgba(6, 9, 22, 0.9);
    border: var(--hairline);
    border-radius: 20px;
    padding: 2.2rem;
}
.story-epilogue-box h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    color: var(--gold-primary);
    margin-bottom: 0.8rem;
}

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
    .gods-grid { grid-template-columns: 1fr; }
    .featured-cards-row { grid-template-columns: 1fr 1fr; }
    .cuentos-grid { grid-template-columns: 1fr 1fr; }
    .timeline-track { grid-template-columns: repeat(3, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .mobile-toggle { display: block; }
    .featured-cards-row { grid-template-columns: 1fr; }
    .cuentos-grid { grid-template-columns: 1fr; }
    .timeline-track { grid-template-columns: 1fr 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: column; gap: 1rem; padding: 1.5rem; }
    .stat-divider { display: none; }
    .deluxe-banner { padding: 2.5rem; }
    .oraculo-wrapper { padding: 3rem 1.8rem; }
}
