/**
 * ============================================================================
 * RELATANDO.COM - CINEMATIC HERO & SYNCHRONIZED FLOATING PHOTO NAV
 * (AWWWARDS SITE OF THE DAY EDITION - v8.2.6)
 * ============================================================================
 * 1. Design Tokens: 'Fuegos Fatuos & Oro Antiguo' Palette
 * 2. Canvas Dark Aurora: Fuegos Fatuos Engine (Spectral Emerald Mist & Orbs)
 * 3. Scroll Media Expansion Hero Component
 * 4. Clive Barker Staging, Ivory Typography & Anti-Overflow Guard
 * 5. Synchronized Floating Photo Menu (Synchronized.studio Style)
 *    - 260px x 170px Floating Frame, Antique Gold Border, Abyssal Shadow
 *    - Lerp Inertia Cursor Tracking & 3D Tilt
 * 6. Responsive, Mobile & Reduced-Motion Adaptations
 * ============================================================================
 */

:root {
    /* ------------------------------------------------------------------------
       1. COLOR PALETTE: FUEGOS FATUOS & ORO ANTIGUO
       ------------------------------------------------------------------------ */
    /* Fondo Obsidiana Cripta */
    --rel-obsidian-deep: #030705;
    --rel-obsidian-crypt: #050907;
    --rel-obsidian-card: #070e0a;
    --rel-obsidian-elevated: #0c1611;
    --rel-obsidian-border: rgba(212, 175, 55, 0.16);

    /* Resplandor Fuegos Fatuos (Verde Espectral) */
    --rel-fuegos-glow: #00ff88;
    --rel-fuegos-bright: #00e58b;
    --rel-fuegos-aura: #042a17;
    --rel-fuegos-dark: #021a0e;
    --rel-fuegos-glow-subtle: rgba(0, 255, 136, 0.22);
    --rel-fuegos-glow-medium: rgba(0, 255, 136, 0.45);
    --rel-fuegos-glow-strong: rgba(0, 255, 136, 0.70);

    /* Filigranas y Bordes: Oro Antiguo */
    --rel-gold-antique: #d4af37;
    --rel-gold-burnished: #c8a355;
    --rel-gold-subtle: rgba(212, 175, 55, 0.35);
    --rel-gold-glow: rgba(212, 175, 55, 0.50);

    /* Textos: Blanco Marfil y Plata Envejecida */
    --rel-text-ivory: #f0f5f2;       /* Blanco Marfil */
    --rel-text-silver: #a3b8ad;      /* Plata Envejecida */
    --rel-text-muted: #5e7468;       /* Sage Espectral */
    --rel-text-gold: #d4af37;

    /* Synchronized Navigation Bar Tokens */
    --rel-nav-bg: rgba(5, 9, 7, 0.85);
    --rel-nav-border: rgba(212, 175, 55, 0.30);
    --rel-nav-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(4, 42, 23, 0.75), 0 0 1px rgba(0, 255, 136, 0.4);
    --rel-nav-blur: 24px;

    /* Motion Easings */
    --rel-ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --rel-ease-out-cubic: cubic-bezier(0.215, 0.61, 0.355, 1);
    --rel-ease-in-out-smooth: cubic-bezier(0.65, 0, 0.35, 1);
}

/* Base Body Safe Settings */
body.relatando-awwwards-noir {
    background-color: var(--rel-obsidian-deep);
    color: var(--rel-text-ivory);
    overflow-x: clip;
    margin: 0;
    padding: 0;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

/* ==========================================================================
   2. CANVAS DARK AURORA: FUEGOS FATUOS ENGINE
   ========================================================================== */
.dark-aurora-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    background-color: var(--rel-obsidian-deep);
}

.dark-aurora-canvas,
#relatando-aurora-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    will-change: transform, opacity;
}

/* Crypt Vignette Overlay */
.dark-aurora-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        ellipse at 50% 45%,
        transparent 30%,
        rgba(3, 7, 5, 0.55) 65%,
        var(--rel-obsidian-deep) 100%
    );
    z-index: 2;
}

/* Filmic Organic Grain */
.dark-aurora-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 0);
    background-size: 26px 26px;
    opacity: 0.35;
    mix-blend-mode: overlay;
    z-index: 3;
}

/* ==========================================================================
   3. SCROLL MEDIA EXPANSION HERO COMPONENT
   ========================================================================== */
.scroll-hero-section {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: 240vh;
    background-color: var(--rel-obsidian-deep);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: clip;
}

/* Sticky frame that locks to viewport during scroll progression (Strict Centering) */
.scroll-hero-sticky-frame {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    display: grid;
    place-items: center;
    z-index: 10;
    box-sizing: border-box;
}

/* Central Expandable Media Box (Starts 75% / 70vh -> Expands to 100% / 100vh centered) */
.scroll-hero-media-wrapper {
    grid-area: 1 / 1;
    position: relative;
    width: clamp(320px, 75%, 1300px);
    height: clamp(360px, 70vh, 820px);
    max-width: 100%;
    margin: auto;
    border-radius: 28px;
    overflow: hidden;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.98),
        0 0 60px rgba(4, 42, 23, 0.85),
        0 0 35px var(--rel-fuegos-glow-subtle),
        inset 0 1px 1px rgba(212, 175, 55, 0.40);
    border: 1px solid rgba(212, 175, 55, 0.30);
    transform-origin: center center;
    will-change: width, height, border-radius;
    background-color: var(--rel-obsidian-card);
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
    box-sizing: border-box;
}

.scroll-hero-media-wrapper.is-expanded {
    box-shadow: 0 0 0 0 transparent;
    border-color: transparent;
    border-radius: 0 !important;
}

/* Hero Visual Media (Image or Video) */
.scroll-hero-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform-origin: center center;
    filter: brightness(0.82) contrast(1.18) saturate(1.12);
    transform: scale(1.12);
    will-change: transform;
    transition: filter 0.6s ease;
    z-index: 1;
}

/* Deep Obsidian Crypt Gradient Overlays */
.scroll-hero-media-overlay,
.scroll-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(3, 7, 5, 0.40) 0%,
        rgba(3, 7, 5, 0.20) 35%,
        rgba(3, 7, 5, 0.72) 75%,
        rgba(3, 7, 5, 0.96) 100%
    );
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Spectral Emerald & Antique Gold Ambient Glow */
.scroll-hero-media-glow {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: radial-gradient(
        circle at 50% 85%,
        rgba(0, 255, 136, 0.22) 0%,
        rgba(4, 42, 23, 0.45) 45%,
        transparent 75%
    );
    mix-blend-mode: screen;
    pointer-events: none;
}

/* ==========================================================================
   4. HERO CONTENT, CLIVE BARKER QUOTE & ACTIONS
   ========================================================================== */
.scroll-hero-content,
.scroll-hero-content-box {
    position: relative;
    z-index: 5;
    max-width: 960px;
    width: 90%;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 20px;
    box-sizing: border-box;
    pointer-events: auto;
    will-change: transform, opacity;
}

/* Kicker Badge: Oro Antiguo & Fuegos Fatuos Pulse */
.scroll-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 20px;
    border-radius: 999px;
    background: rgba(5, 9, 7, 0.78);
    border: 1px solid rgba(212, 175, 55, 0.40);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 18px rgba(4, 42, 23, 0.6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 22px;
    transform: translateY(0);
    transition: all 0.4s var(--rel-ease-out-expo);
}

.scroll-hero-badge:hover {
    border-color: var(--rel-fuegos-glow);
    box-shadow: 0 4px 25px rgba(0, 255, 136, 0.45), 0 0 15px rgba(212, 175, 55, 0.3);
}

.scroll-hero-badge-pulse,
.scroll-hero-pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--rel-fuegos-glow);
    box-shadow: 0 0 10px var(--rel-fuegos-glow), 0 0 20px var(--rel-fuegos-bright);
    animation: relFuegosPulse 2.4s infinite ease-in-out;
}

.scroll-hero-badge-text,
.scroll-hero-badge span:not(.scroll-hero-pulse-dot) {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--rel-text-silver);
}

/* Brand Title: Gothic Elegance */
.scroll-hero-title,
.scroll-hero-title-main {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(38px, 6.5vw, 84px);
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 1.1;
    margin: 0 0 16px 0;
    text-shadow: 
        0 6px 30px rgba(0, 0, 0, 0.95),
        0 0 45px rgba(0, 255, 136, 0.28),
        0 0 20px rgba(212, 175, 55, 0.35);
    background: linear-gradient(180deg, var(--rel-text-ivory) 40%, var(--rel-gold-antique) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 100%;
}

.scroll-hero-subtitle-tag {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--rel-gold-burnished);
    margin: 0 0 24px 0;
    opacity: 0.9;
}

/* Clive Barker Emblematic Quote Staging */
.scroll-hero-quote-box,
.scroll-hero-quote-wrapper {
    position: relative;
    max-width: 760px;
    margin: 0 auto 34px auto;
    padding: 0 12px;
    box-sizing: border-box;
}

.scroll-hero-quote-mark {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 64px;
    line-height: 1;
    color: var(--rel-gold-antique);
    opacity: 0.45;
    position: absolute;
    top: -28px;
    left: -20px;
    pointer-events: none;
    user-select: none;
}

.scroll-hero-quote,
.scroll-hero-quote-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(20px, 2.7vw, 30px);
    line-height: 1.48;
    color: var(--rel-text-ivory);
    margin: 0 0 14px 0;
    font-weight: 400;
    letter-spacing: 0.4px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.scroll-hero-author,
.scroll-hero-quote-author {
    display: inline-block;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 600;
    font-style: normal;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--rel-gold-antique);
    position: relative;
    padding-left: 28px;
}

.scroll-hero-author::before,
.scroll-hero-quote-author::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, var(--rel-fuegos-glow), var(--rel-gold-antique));
    transform: translateY(-50%);
}

/* Call to Action Buttons */
.scroll-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* Primary CTA Button: Fuegos Fatuos & Oro Antiguo */
.scroll-hero-btn,
.scroll-hero-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 36px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rel-text-ivory);
    text-decoration: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #0a3d24 0%, #042a17 100%);
    border: 1px solid rgba(212, 175, 55, 0.55);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.75),
        0 0 25px var(--rel-fuegos-glow-subtle),
        inset 0 1px 0 rgba(212, 175, 55, 0.40);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s var(--rel-ease-out-expo);
}

.scroll-hero-btn:hover,
.scroll-hero-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: linear-gradient(135deg, #0e5230 0%, #063c21 100%);
    border-color: var(--rel-fuegos-glow);
    box-shadow: 
        0 14px 40px rgba(0, 0, 0, 0.85),
        0 0 35px var(--rel-fuegos-glow-strong),
        inset 0 1px 0 rgba(212, 175, 55, 0.70);
    color: #ffffff;
}

.scroll-hero-btn:active,
.scroll-hero-cta-btn:active {
    transform: translateY(1px) scale(0.98);
}

/* Button Light Sweep */
.scroll-hero-btn::after,
.scroll-hero-cta-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 60%;
    height: 200%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 136, 0.25),
        rgba(212, 175, 55, 0.25),
        transparent
    );
    transform: rotate(25deg);
    transition: left 0.75s ease;
    pointer-events: none;
}

.scroll-hero-btn:hover::after,
.scroll-hero-cta-btn:hover::after {
    left: 140%;
}

.scroll-hero-btn-icon,
.scroll-hero-cta-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    fill: none;
    stroke: var(--rel-gold-antique);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.scroll-hero-btn:hover .scroll-hero-btn-icon,
.scroll-hero-cta-btn:hover .scroll-hero-cta-icon {
    transform: translateX(4px);
    stroke: var(--rel-fuegos-glow);
}

/* Secondary Button (Ghost Glass) */
.scroll-hero-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--rel-text-silver);
    text-decoration: none;
    border-radius: 999px;
    background: rgba(5, 9, 7, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.scroll-hero-btn-ghost:hover {
    color: var(--rel-text-ivory);
    background: rgba(12, 22, 17, 0.85);
    border-color: var(--rel-gold-antique);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 15px rgba(212, 175, 55, 0.25);
}

/* Scroll Hint / Indicator Prompt */
.scroll-hero-scroll-prompt,
.scroll-hero-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    z-index: 6;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-prompt-line {
    width: 1.5px;
    height: 38px;
    background: linear-gradient(180deg, var(--rel-fuegos-glow), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-prompt-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--rel-gold-antique);
    animation: relScrollDrop 2.2s infinite ease-in-out;
}

.scroll-prompt-text,
.scroll-hero-indicator-label {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--rel-text-silver);
}


/* ==========================================================================
   5. SYNCHRONIZED FLOATING PHOTO MENU (AWWWARDS SYNCHRONIZED.STUDIO STYLE)
   Replaces rigid oversized dock with sleek minimal bar + floating cursor frame
   ========================================================================== */

/* Main Fixed Container */
.synchronized-nav-container,
.macos-dock-container {
    position: fixed;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9990;
    padding: 0;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.95));
    max-width: 95vw;
    box-sizing: border-box;
}

/* Minimalist Glass Navigation Bar */
.synchronized-nav-bar,
.macos-dock,
.macos-dock-panel {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: var(--rel-nav-bg);
    border: 1px solid var(--rel-nav-border);
    border-radius: 999px;
    backdrop-filter: blur(var(--rel-nav-blur)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--rel-nav-blur)) saturate(180%);
    box-shadow: 
        var(--rel-nav-shadow),
        inset 0 1px 1px rgba(212, 175, 55, 0.25),
        inset 0 -1px 1px rgba(0, 0, 0, 0.8);
    position: relative;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
}

/* Ambient Emerald Glow Beneath Bar */
.synchronized-nav-bar::before,
.macos-dock::before,
.macos-dock-panel::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    background: radial-gradient(
        ellipse at 50% 100%,
        rgba(0, 255, 136, 0.28) 0%,
        rgba(4, 42, 23, 0.5) 50%,
        transparent 75%
    );
    z-index: -1;
    pointer-events: none;
}

/* Nav Brand Flame (Discreet) */
.synchronized-nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 12px;
    border-right: 1px solid rgba(212, 175, 55, 0.20);
    margin-right: 2px;
}

.synced-brand-flame {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rel-fuegos-glow);
    box-shadow: 0 0 10px var(--rel-fuegos-glow);
    animation: relFuegosPulse 2s infinite ease-in-out;
}

.synced-brand-label {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--rel-gold-antique);
    text-transform: uppercase;
}

/* Nav Items List */
.synchronized-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Individual Category Link (Eliminating oversized boxes!) */
.synchronized-nav-link,
.dock-item,
.macos-dock-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    color: var(--rel-text-silver);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.25s var(--rel-ease-out-cubic);
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    height: auto;
    width: auto;
}

/* Number Tag (01, 02, etc.) */
.synced-link-num {
    font-size: 10px;
    font-weight: 700;
    color: var(--rel-gold-antique);
    opacity: 0.75;
    letter-spacing: 0.5px;
    font-variant-numeric: tabular-nums;
}

/* Category Title */
.synced-link-title {
    color: var(--rel-text-silver);
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

/* Hover & Active States */
.synchronized-nav-link:hover,
.dock-item:hover,
.macos-dock-item:hover,
.synchronized-nav-link.is-active,
.dock-item.is-active,
.macos-dock-item.is-active {
    background: rgba(12, 22, 17, 0.75);
    border-color: rgba(212, 175, 55, 0.35);
    color: var(--rel-text-ivory);
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(0, 255, 136, 0.22);
}

.synchronized-nav-link:hover .synced-link-title,
.dock-item:hover .dock-tooltip-title,
.macos-dock-item:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}

.synchronized-nav-link:hover .synced-link-num {
    opacity: 1;
    color: var(--rel-fuegos-glow);
}

/* Active Dot Under Item */
.synced-link-dot,
.dock-active-dot {
    display: inline-block;
    width: 4.5px;
    height: 4.5px;
    border-radius: 50%;
    background-color: var(--rel-fuegos-glow);
    box-shadow: 0 0 8px var(--rel-fuegos-glow);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    margin-left: 2px;
}

.synchronized-nav-link.is-active .synced-link-dot,
.dock-item.is-active .dock-active-dot,
.macos-dock-item.is-active .dock-active-dot {
    opacity: 1;
    transform: scale(1);
}

/* Hide or refine old dock iconography to stay sleek and modern */
.dock-icon-wrapper,
.dock-icon-box {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: transparent;
    border: none;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.dock-icon-wrapper::after,
.dock-icon-box::after {
    display: none;
}

.dock-svg,
.dock-icon-svg {
    width: 15px;
    height: 15px;
    fill: var(--rel-gold-antique);
    stroke: var(--rel-gold-antique);
    stroke-width: 1.5;
    opacity: 0.85;
    transition: all 0.25s ease;
}

.dock-item:hover .dock-svg,
.macos-dock-item:hover .dock-icon-svg {
    fill: var(--rel-fuegos-glow);
    stroke: var(--rel-fuegos-glow);
    opacity: 1;
    filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.8));
}

/* Hide old giant static tooltips in favor of the floating photo frame */
.macos-dock-tooltip,
.dock-tooltip {
    display: none !important;
}

/* ------------------------------------------------------------------------
   SYNCHRONIZED FLOATING PHOTO PREVIEW CARD
   - Exact Dimensions: 260px x 170px
   - Fine 1px border in Oro Antiguo (#d4af37)
   - Fuegos Fatuos Aura (#00ff88)
   - Abyssal Shadow
   - Lerp inertia physics & 3D Tilt follower
   ------------------------------------------------------------------------ */
.synchronized-floating-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 170px;
    border-radius: 14px;
    border: 1px solid var(--rel-gold-antique);
    box-shadow: 
        0 28px 70px rgba(0, 0, 0, 0.96),
        0 0 40px rgba(4, 42, 23, 0.90),
        0 0 20px var(--rel-fuegos-glow-medium),
        inset 0 1px 1px rgba(212, 175, 55, 0.60);
    overflow: hidden;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transform: translate3d(-9999px, -9999px, 0) scale(0.88);
    will-change: transform, opacity;
    transition: opacity 0.22s ease-out, border-color 0.25s ease;
    background-color: var(--rel-obsidian-card);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.synchronized-floating-preview.is-visible {
    opacity: 1;
}

.synced-preview-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Photo Image */
.synced-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.88) contrast(1.18) saturate(1.15);
    transform: scale(1.04);
    will-change: transform;
    transition: transform 0.4s var(--rel-ease-out-cubic);
}

.synchronized-floating-preview.is-visible .synced-preview-img {
    transform: scale(1.0);
}

/* Dark Abyssal Vignette Inside Card */
.synced-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(3, 7, 5, 0.15) 0%,
        rgba(3, 7, 5, 0.45) 50%,
        rgba(3, 7, 5, 0.92) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Category Title Badge */
.synced-preview-badge {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 3;
    pointer-events: none;
}

.synced-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(3, 7, 5, 0.88);
    border: 1px solid rgba(212, 175, 55, 0.50);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.synced-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--rel-fuegos-glow);
    box-shadow: 0 0 8px var(--rel-fuegos-glow);
}

.synced-badge-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--rel-text-ivory);
    text-transform: uppercase;
}

.synced-badge-sub {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--rel-gold-antique);
    text-transform: uppercase;
    background: rgba(3, 7, 5, 0.75);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(212, 175, 55, 0.25);
}


/* ==========================================================================
   6. KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes relFuegosPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.85;
    }
    50% {
        transform: scale(1.35);
        opacity: 1;
    }
}

@keyframes relScrollDrop {
    0% {
        transform: translateY(-100%);
    }
    50% {
        transform: translateY(100%);
    }
    100% {
        transform: translateY(100%);
    }
}


/* ==========================================================================
   7. SYNCHRONIZED STUDIO SCATTERED FLOATING ARCHIVE (DESPERDIGADAS FLOTANDO)
   Organically scattered, floating with ambient physics, expanding on hover
   ========================================================================== */
.synchronized-scattered-canvas {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 32px 28px;
    padding: 30px 0 60px 0;
    list-style: none;
    margin: 0;
    perspective: 1200px;
}

/* Staggered asymmetric layout on desktop */
.synced-scattered-item {
    position: relative;
    list-style: none;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.3s ease;
    will-change: transform;
}

.synced-scattered-item.synced-pos-1 {
    grid-column: 1 / 7;
    margin-top: 0;
    animation: relFloatOrganicA 7.2s ease-in-out infinite alternate;
}
.synced-scattered-item.synced-pos-2 {
    grid-column: 7 / 13;
    margin-top: 65px;
    animation: relFloatOrganicB 8.4s ease-in-out infinite alternate -2s;
}
.synced-scattered-item.synced-pos-3 {
    grid-column: 2 / 8;
    margin-top: 25px;
    animation: relFloatOrganicA 7.8s ease-in-out infinite alternate -3.5s;
}
.synced-scattered-item.synced-pos-4 {
    grid-column: 8 / 13;
    margin-top: 75px;
    animation: relFloatOrganicB 8.8s ease-in-out infinite alternate -1.2s;
}
.synced-scattered-item.synced-pos-5 {
    grid-column: 1 / 7;
    margin-top: 15px;
    animation: relFloatOrganicA 6.9s ease-in-out infinite alternate -4.5s;
}
.synced-scattered-item.synced-pos-6 {
    grid-column: 7 / 12;
    margin-top: 60px;
    animation: relFloatOrganicB 8.1s ease-in-out infinite alternate -2.8s;
}

/* Continuous ambient levitation keyframes */
@keyframes relFloatOrganicA {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-11px) rotate(0.45deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}
@keyframes relFloatOrganicB {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-13px) rotate(-0.55deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.synced-scattered-item:hover {
    animation-play-state: paused;
    z-index: 40;
}

/* The Interactive Floating Card */
.synced-scattered-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(145deg, rgba(6, 15, 10, 0.88) 0%, rgba(3, 7, 5, 0.98) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none !important;
    color: #f0f5f2;
    box-shadow: 
        0 15px 45px rgba(0, 0, 0, 0.85),
        0 0 25px rgba(4, 42, 23, 0.5),
        inset 0 1px 0 rgba(212, 175, 55, 0.2);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease;
    position: relative;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    will-change: transform, box-shadow;
}

/* Expansion with motion effect on hover */
.synced-scattered-card:hover {
    transform: scale(1.07) translateY(-8px);
    border-color: rgba(212, 175, 55, 0.85);
    box-shadow: 
        0 35px 85px rgba(0, 0, 0, 0.98),
        0 0 50px rgba(0, 255, 136, 0.4),
        0 0 25px rgba(212, 175, 55, 0.3),
        inset 0 0 20px rgba(0, 255, 136, 0.12);
}

/* Card Visual Media Header */
.synced-card-media-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9.5;
    overflow: hidden;
    background: #020503;
}

.synced-card-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.88) contrast(1.1);
}

.synced-scattered-card:hover .synced-card-bg-img {
    transform: scale(1.12);
    filter: brightness(1.02) contrast(1.15);
}

.synced-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 7, 5, 0.2) 0%, rgba(3, 7, 5, 0.5) 50%, rgba(3, 7, 5, 0.95) 100%);
    pointer-events: none;
}

.synced-card-fatuo-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 100%, rgba(0, 255, 136, 0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    mix-blend-mode: screen;
}

.synced-scattered-card:hover .synced-card-fatuo-glow {
    opacity: 1;
}

/* Badge row inside media box */
.synced-card-badge-row {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

.synced-card-idx {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--rel-gold-antique);
    background: rgba(3, 7, 5, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 3px 10px;
    border-radius: 6px;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.synced-card-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #00ff88;
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.35);
    padding: 3px 12px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

/* Card Body Content */
.synced-card-content {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
    background: rgba(3, 8, 5, 0.7);
}

.synced-card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.32rem;
    font-weight: 700;
    color: #f0f5f2;
    margin: 0 0 10px 0;
    line-height: 1.35;
    letter-spacing: 0.3px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.synced-scattered-card:hover .synced-card-title {
    color: #00ff88;
    text-shadow: 0 0 18px rgba(0, 255, 136, 0.5);
}

.synced-card-excerpt {
    font-size: 0.88rem;
    color: #a3b8ad;
    line-height: 1.6;
    margin: 0 0 18px 0;
}

/* Card Footer CTA */
.synced-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    color: var(--rel-gold-antique);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.synced-scattered-card:hover .synced-card-footer {
    color: #00ff88;
    border-top-color: rgba(0, 255, 136, 0.3);
}

.synced-card-cta {
    display: inline-block;
    color: inherit;
}

.synced-card-arrow {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.synced-scattered-card:hover .synced-card-arrow {
    transform: translate(4px, -4px);
}

/* Responsive Scattered Canvas */
@media (max-width: 900px) {
    .synchronized-scattered-canvas {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 20px 0;
    }
    .synced-scattered-item,
    .synced-scattered-item.synced-pos-1,
    .synced-scattered-item.synced-pos-2,
    .synced-scattered-item.synced-pos-3,
    .synced-scattered-item.synced-pos-4,
    .synced-scattered-item.synced-pos-5,
    .synced-scattered-item.synced-pos-6 {
        grid-column: 1 / -1 !important;
        margin-top: 0 !important;
        animation: none !important;
    }
    .synced-scattered-card {
        border-radius: 14px;
    }
    .synced-card-content {
        padding: 16px 18px;
    }
    .synced-card-title {
        font-size: 1.18rem;
    }
}

/* ==========================================================================
   7.2 SYNCHRONIZED STUDIO EDITORIAL STORIES LIST (LEGACY FALLBACK)
   ========================================================================== */
.synchronized-stories-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(212, 175, 55, 0.22);
}

.synced-story-item {
    border-bottom: 1px solid rgba(212, 175, 55, 0.14);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.synced-story-row {
    display: grid;
    grid-template-columns: 44px 130px 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 22px 20px;
    text-decoration: none !important;
    color: #f0f5f2;
    transition: padding-left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
}

.synced-story-row:hover {
    background: rgba(0, 255, 136, 0.05);
    padding-left: 28px;
}

.synced-story-idx-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.synced-story-idx {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 1px;
}

.synced-story-thumb-col {
    width: 130px;
    height: 84px;
    flex-shrink: 0;
}

.synced-story-thumb-img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.synced-story-row:hover .synced-story-thumb-img {
    transform: scale(1.06);
    border-color: #00ff88;
    box-shadow: 0 8px 24px rgba(0, 255, 136, 0.25);
}

.synced-story-main-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.synced-story-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #00ff88;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.25);
    white-space: nowrap;
}

.synced-story-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #f0f5f2;
    margin: 0;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    white-space: normal;
    word-break: break-word;
}

.synced-story-row:hover .synced-story-heading {
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}

.synced-story-brief {
    font-size: 0.88rem;
    color: #94a39b;
    line-height: 1.5;
    max-width: 650px;
}

.synced-story-action-col {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    color: #d4af37;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    white-space: nowrap;
    padding-right: 8px;
}

.synced-story-row:hover .synced-story-action-col {
    color: #00ff88;
}

.synced-story-arrow {
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    color: currentColor;
}

.synced-story-row:hover .synced-story-arrow {
    transform: translate(5px, -5px);
}


/* Floating Photo Preview Card (Synchronized Studio Cursor Tracking) */
.synced-floating-story-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 200px;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translate3d(-50%, -50%, 0) scale(0.85);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s ease;
    will-change: transform, opacity;
}

.synced-floating-story-preview.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate3d(-50%, -50%, 0) scale(1);
}

.synced-story-preview-card {
    width: 100%;
    height: 100%;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid #d4af37;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 35px rgba(0, 255, 136, 0.25);
    background: #030705;
}

.synced-story-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.synced-story-preview-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(3, 7, 5, 0.9) 100%);
}

.synced-story-preview-info {
    position: absolute;
    bottom: 14px;
    left: 16px;
    right: 16px;
}

.synced-story-preview-badge {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #00ff88;
    font-weight: 700;
}

.synced-story-preview-title {
    font-family: 'Playfair Display', serif;
    font-size: 15px;
    font-weight: 700;
    color: #f0f5f2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 4px;
}

/* ==========================================================================
   8. RESPONSIVE, TOUCH & ACCESSIBILITY ADAPTATIONS
   ========================================================================== */
@media (max-width: 900px) {
    .scroll-hero-section {
        height: 200vh;
    }
    .scroll-hero-media-wrapper {
        width: clamp(290px, 88vw, 760px);
        height: clamp(320px, 64vh, 600px);
        border-radius: 20px;
    }
    .scroll-hero-content,
    .scroll-hero-content-box {
        padding: 24px 16px;
    }
    .scroll-hero-quote,
    .scroll-hero-quote-text {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    /* Desactivar previsualización flotante en pantallas táctiles / móviles */
    .synchronized-floating-preview,
    .synced-floating-story-preview {
        display: none !important;
    }

    /* Hero Centrado y Adaptado en Móviles */
    .scroll-hero-section {
        min-height: 100vh;
        height: auto;
    }

    .scroll-hero-sticky-frame {
        position: relative;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 80px 16px 100px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .scroll-hero-media-wrapper {
        width: 100%;
        max-width: 100%;
        min-height: 520px;
        height: auto;
        border-radius: 18px;
        padding: 36px 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .scroll-hero-content,
    .scroll-hero-content-box {
        width: 100%;
        padding: 10px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .scroll-hero-title,
    .scroll-hero-title-main {
        font-size: clamp(2rem, 9vw, 2.8rem) !important;
        letter-spacing: 2px !important;
    }

    .scroll-hero-quote,
    .scroll-hero-quote-text {
        font-size: clamp(0.95rem, 4vw, 1.15rem) !important;
        line-height: 1.5 !important;
    }

    .scroll-hero-btn,
    .scroll-hero-cta-btn {
        padding: 13px 26px;
        font-size: 11px;
        letter-spacing: 1.5px;
    }

        /* Historias en Móvil: Formato Limpio con Foto Proporcional y Cero Desbordamiento */
    .synced-story-row {
        grid-template-columns: 90px 1fr;
        padding: 16px 12px;
        gap: 14px;
        align-items: center;
    }

    .synced-story-row:hover {
        padding-left: 12px;
    }

    .synced-story-idx-col {
        display: none;
    }

    .synced-story-thumb-col {
        width: 90px;
        height: 70px;
    }

    .synced-story-thumb-img {
        width: 100%;
        height: 100%;
        border-radius: 6px;
    }

    .synced-story-heading {
        font-size: 1.15rem;
        line-height: 1.3;
    }

    .synced-story-brief {
        display: none;
    }

    .synced-story-action-col {
        display: none;
    }


    /* Touch & Mobile Navigation Adaptation */
    .synchronized-nav-container,
    .macos-dock-container {
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
        max-width: 96vw;
    }

    .synchronized-nav-bar,
    .macos-dock,
    .macos-dock-panel {
        gap: 4px;
        padding: 6px 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: 100%;
        justify-content: flex-start;
    }

    .synchronized-nav-bar::-webkit-scrollbar,
    .macos-dock::-webkit-scrollbar,
    .macos-dock-panel::-webkit-scrollbar {
        display: none;
    }

    .synchronized-nav-brand {
        display: none;
    }

    .synchronized-nav-link,
    .dock-item,
    .macos-dock-item {
        padding: 7px 12px;
        font-size: 11px;
        letter-spacing: 0.8px;
        flex-shrink: 0;
    }

    .synced-link-num {
        font-size: 9px;
    }
}

/* Reduced Motion Safety */
@media (prefers-reduced-motion: reduce) {
    .dark-aurora-canvas,
    #relatando-aurora-canvas {
        animation: none !important;
    }
    .scroll-hero-media-wrapper,
    .scroll-hero-media {
        transition: none !important;
    }
    .synchronized-floating-preview {
        transition: opacity 0.15s ease !important;
    }
    .scroll-hero-badge-pulse,
    .scroll-hero-pulse-dot,
    .scroll-prompt-line::after,
    .synced-brand-flame {
        animation: none !important;
    }
}

/* ==========================================================================
   9. SCROLL REVEAL ANIMATIONS (DESKTOP & MOBILE)
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   10. FRONT-PAGE EDITORIAL, SECTIONS, CARDS & FOOTER NOIR (V8.2.6)
   ========================================================================== */
:root {
    --bg-obsidian: #030705;
    --fatuo-green: #00ff88;
    --fatuo-glow: #00e58b;
    --fatuo-deep: #059669;
    --fatuo-dark: #042a17;
    --gold-antique: #d4af37;
    --gold-subtle: #c8a355;
    --text-pure: #f0f5f2;
    --text-dim: #a3b8ad;
    --font-cinematic: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-gothic: 'Cinzel', serif;
}

html {
    background-color: var(--bg-obsidian);
    color: var(--text-pure);
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    overflow-x: clip;
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-obsidian);
    color: var(--text-pure);
    margin: 0;
    padding: 0;
    overflow-x: clip;
    position: relative;
}

/* ==========================================================================
   GLOBAL GLASSMORPHISM HEADER (Awwwards Noir & Gold Edition)
   ========================================================================== */
.global-glass-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: linear-gradient(180deg, rgba(3, 7, 5, 0.94) 0%, rgba(3, 7, 5, 0.82) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.9), 0 1px 0 0 rgba(0, 255, 136, 0.22);
    z-index: 9999;
    box-sizing: border-box;
}
.global-glass-header .logo {
    font-family: var(--font-gothic);
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    letter-spacing: 3.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 60%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: opacity 0.3s ease;
}
.global-glass-header .logo:hover {
    opacity: 0.9;
}
.global-glass-header .logo::after {
    content: '✦';
    font-size: 13px;
    color: var(--gold-antique);
    -webkit-text-fill-color: var(--gold-antique);
    opacity: 0.95;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}
.global-glass-header .nav-links {
    display: flex;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}
.global-glass-header .nav-links > li {
    position: relative;
    padding: 6px 0;
}
.global-glass-header .nav-links a {
    color: #a3b8ad;
    text-decoration: none;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-block;
}
.global-glass-header .nav-links a:hover {
    color: #ffffff;
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.35);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.35), inset 0 0 12px rgba(0, 255, 136, 0.15);
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.7);
}
.global-glass-header .nav-links li.current-menu-item > a,
.global-glass-header .nav-links li.current_page_item > a {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.45);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.32);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}
.global-glass-header .nav-links .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(3, 8, 5, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    list-style: none;
    min-width: 240px;
    padding: 10px 8px;
    margin: 8px 0 0 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.97);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 255, 136, 0.12);
    z-index: 10000;
}
.global-glass-header .nav-links li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.global-glass-header .nav-links .sub-menu li {
    padding: 0;
    margin: 2px 0;
}
.global-glass-header .nav-links .sub-menu a {
    display: block;
    padding: 10px 18px;
    font-size: 12px;
    color: #c4d4cc;
    letter-spacing: 1.2px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background 0.25s, color 0.25s, padding-left 0.25s, box-shadow 0.25s;
}
.global-glass-header .nav-links .sub-menu a:hover {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.15) 0%, rgba(212, 175, 55, 0.08) 100%);
    color: #00ff88;
    padding-left: 22px;
    border-color: rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.25);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}
.global-glass-header .mobile-menu-btn {
    display: none;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: background 0.3s, border-color 0.3s;
}
.global-glass-header .mobile-menu-btn:hover {
    background: rgba(0, 255, 136, 0.15);
    border-color: var(--fatuo-green);
}

/* Desktop helpers for injected mobile navigation elements */
.submenu-accordion-caret,
.mobile-menu-header-bar {
    display: none !important;
}
.menu-item-link-row {
    display: contents;
}

/* Responsive Header Mobile - Cajón Fullscreen Elegante, Scrolleable & Acordeones */
@media (max-width: 900px) {
    body.mobile-nav-locked {
        overflow: hidden !important;
        touch-action: none;
    }

    .global-glass-header {
        padding: 14px 20px;
    }
    .global-glass-header .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(212, 175, 55, 0.12);
        border: 1px solid rgba(212, 175, 55, 0.4);
        border-radius: 8px;
        color: #f0f5f2;
        padding: 8px 10px;
        cursor: pointer;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .global-glass-header .mobile-menu-btn:hover,
    .global-glass-header .mobile-menu-btn.active {
        background: rgba(0, 255, 136, 0.2);
        border-color: #00ff88;
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
        transform: scale(1.04);
    }

    /* Cajón de Pantalla Completa 100dvh con Scroll Suave */
    .global-glass-header .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        background: rgba(3, 7, 5, 0.98);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        padding: 20px 20px 80px 20px;
        border-bottom: 2px solid rgba(212, 175, 55, 0.35);
        box-shadow: 0 24px 60px rgba(0,0,0,0.98);
        gap: 8px;
        box-sizing: border-box;
        z-index: 999999;
    }
    .global-glass-header .nav-links.active {
        display: flex;
        animation: fadeInDrawer 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes fadeInDrawer {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }
    .global-glass-header .nav-links::-webkit-scrollbar {
        width: 6px;
    }
    .global-glass-header .nav-links::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.4);
    }
    .global-glass-header .nav-links::-webkit-scrollbar-thumb {
        background: rgba(212, 175, 55, 0.5);
        border-radius: 4px;
    }

    /* Barra superior del menú móvil */
    .global-glass-header .mobile-menu-header-bar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 6px 4px 16px 4px;
        margin-bottom: 12px;
        border-bottom: 1px solid rgba(212, 175, 55, 0.25);
        width: 100%;
        list-style: none;
    }
    .global-glass-header .mobile-menu-brand-wrap {
        display: flex;
        flex-direction: column;
    }
    .global-glass-header .mobile-menu-brand {
        font-family: 'Cinzel', serif;
        font-size: 18px;
        font-weight: 700;
        letter-spacing: 3px;
        color: #d4af37;
        text-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
    }
    .global-glass-header .mobile-menu-sub {
        font-size: 11px;
        color: #a3b8ad;
        letter-spacing: 1px;
    }
    .global-glass-header .mobile-menu-close-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: rgba(212, 175, 55, 0.12);
        border: 1px solid rgba(212, 175, 55, 0.35);
        border-radius: 8px;
        color: #f0f5f2;
        padding: 7px 14px;
        cursor: pointer;
        font-size: 12px;
        letter-spacing: 1px;
        text-transform: uppercase;
        font-weight: 600;
        transition: all 0.2s ease;
    }
    .global-glass-header .mobile-menu-close-btn:hover {
        background: rgba(255, 68, 68, 0.2);
        border-color: #ff4444;
        color: #ff8888;
    }

    /* Fila del elemento y botón caret */
    .global-glass-header .menu-item-link-row {
        display: flex !important;
        align-items: center;
        width: 100%;
        gap: 6px;
    }
    .global-glass-header .nav-links > li {
        width: 100%;
        padding: 0;
        margin: 0;
        list-style: none;
    }
    .global-glass-header .nav-links a {
        display: block;
        flex: 1;
        box-sizing: border-box;
        padding: 13px 16px;
        font-size: 14px;
        letter-spacing: 1.5px;
        font-weight: 600;
        color: #f0f5f2;
        background: rgba(6, 15, 9, 0.65);
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 10px;
        text-decoration: none;
        transition: all 0.2s ease;
    }
    .global-glass-header .nav-links a:hover,
    .global-glass-header .nav-links li.current-menu-item > a,
    .global-glass-header .nav-links li.current-menu-item > .menu-item-link-row > a {
        background: rgba(0, 255, 136, 0.12);
        border-color: #00ff88;
        color: #00ff88;
        box-shadow: 0 0 15px rgba(0, 255, 136, 0.25);
    }
    .global-glass-header .submenu-accordion-caret {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        background: rgba(212, 175, 55, 0.1);
        border: 1px solid rgba(212, 175, 55, 0.3);
        border-radius: 10px;
        color: #d4af37;
        cursor: pointer;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .global-glass-header .submenu-accordion-caret.is-open {
        background: rgba(0, 255, 136, 0.2);
        border-color: #00ff88;
        color: #00ff88;
        transform: rotate(180deg);
    }

    /* Submenú acordeón: Oculto y colapsado por defecto */
    .global-glass-header .nav-links .sub-menu {
        display: none;
        position: static;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transform: none;
        background: rgba(2, 6, 4, 0.95);
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-left: 3px solid #00ff88;
        border-radius: 0 10px 10px 10px;
        box-shadow: none;
        padding: 6px 8px;
        margin: 6px 0 10px 12px;
        list-style: none;
        transition: opacity 0.3s ease, max-height 0.35s ease;
    }
    .global-glass-header .nav-links .menu-item-has-children.sub-menu-open > .sub-menu {
        display: block;
        opacity: 1;
        max-height: 1200px;
    }
    .global-glass-header .nav-links .sub-menu li {
        padding: 0;
        margin: 3px 0;
        list-style: none;
    }
    .global-glass-header .nav-links .sub-menu a {
        padding: 11px 16px;
        font-size: 13px;
        letter-spacing: 1px;
        color: #c4d4cc;
        background: rgba(255, 255, 255, 0.02);
        border: 1px solid transparent;
        border-radius: 8px;
    }
    .global-glass-header .nav-links .sub-menu a:hover {
        background: rgba(0, 255, 136, 0.15);
        color: #00ff88;
        border-color: rgba(0, 255, 136, 0.3);
        padding-left: 20px;
    }
}

/* Section Wrappers & Editorial Hierarchy */
.archive-section {
    padding: 100px 24px;
    max-width: 1320px;
    margin: 0 auto;
    position: relative;
    z-index: 20;
}
.section-header-block {
    text-align: center;
    margin-bottom: 60px;
}
.section-subtitle-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--fatuo-green);
    margin-bottom: 12px;
    background: rgba(0, 255, 136, 0.08);
    border: 1px solid rgba(0, 255, 136, 0.25);
    padding: 4px 14px;
    border-radius: 999px;
}
.section-main-heading {
    font-family: var(--font-cinematic);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0 0 16px 0;
    color: #fff;
}
.section-lead-desc {
    max-width: 680px;
    margin: 0 auto;
    font-size: 16px;
    color: var(--text-dim);
    line-height: 1.7;
}

/* ==========================================================================
   SECCIÓN INMERSIVA DESTACADA: LA PISADEIRA (SIN ERROR 404 & TARJETA RICA)
   ========================================================================== */
.scrolly-featured-container {
    background: linear-gradient(135deg, rgba(4, 42, 23, 0.5) 0%, rgba(3, 7, 5, 0.95) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 20px;
    padding: 50px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 255, 136, 0.08);
    position: relative;
    overflow: hidden;
}
.scrolly-featured-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--fatuo-green), var(--gold-antique), transparent);
}
.scrolly-featured-tag {
    color: var(--gold-antique);
    font-size: 11px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 14px;
}
.scrolly-featured-title {
    font-family: var(--font-cinematic);
    font-size: clamp(28px, 3.5vw, 42px);
    color: #fff;
    margin: 0 0 18px 0;
    line-height: 1.2;
}
.scrolly-featured-excerpt {
    color: #a3b8ad;
    line-height: 1.75;
    font-size: 15px;
    margin-bottom: 24px;
}
.scrolly-features-pills {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}
.scrolly-pill {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--fatuo-green);
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
}
.scrolly-cta-btn {
    background: linear-gradient(135deg, var(--gold-antique) 0%, #a67c1e 100%);
    color: #030705;
    padding: 16px 36px;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
    display: inline-block;
}
.scrolly-cta-btn:hover {
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.5);
    transform: translateY(-3px);
    color: #000;
    background: linear-gradient(135deg, #e8c858 0%, #d4af37 100%);
}
.scrolly-featured-visual {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8);
}
.scrolly-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.scrolly-featured-container:hover .scrolly-featured-img {
    transform: scale(1.05);
}

/* ==========================================================================
   SECCIÓN 4: VIDEOTECA PROHIBIDA (YOUTUBE OFFICIAL)
   ========================================================================== */
.videoteca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 40px;
}
.video-card {
    background: rgba(5, 12, 9, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: #f0f5f2;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
}
.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 255, 136, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 255, 136, 0.15);
}
.video-card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.video-card-thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(3, 7, 5, 0.9) 100%);
}
.video-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    background: rgba(3, 7, 5, 0.75);
    border: 2px solid var(--gold-antique);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.video-card:hover .video-play-badge {
    transform: translate(-50%, -50%) scale(1.15);
    border-color: var(--fatuo-green);
    background: rgba(0, 255, 136, 0.2);
}
.video-card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.video-card-title {
    font-family: var(--font-cinematic);
    font-size: 1.15rem;
    margin: 0 0 10px 0;
    color: #fff;
    line-height: 1.35;
}
.video-card-meta {
    font-size: 12px;
    color: var(--gold-antique);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ==========================================================================
   SECCIÓN 5: EL ORÁCULO DE LAS SOMBRAS (TARJETA MÍSTICA INTERACTIVA)
   ========================================================================== */
.oraculo-card-feature {
    background: radial-gradient(circle at 50% 30%, rgba(4, 42, 23, 0.7) 0%, rgba(3, 7, 5, 0.98) 80%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 25px 70px rgba(0,0,0,0.9), inset 0 0 40px rgba(0, 255, 136, 0.05);
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}
.oraculo-sigil-icon {
    font-size: 48px;
    color: var(--gold-antique);
    margin-bottom: 20px;
    display: inline-block;
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.6);
    animation: pulseFatuo 4s infinite ease-in-out;
    will-change: transform, opacity;
}
@keyframes pulseFatuo {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.08); opacity: 1; }
}

/* ==========================================================================
   SECCIÓN 6: CARLOS NIETO & ARCHIVO EDITORIAL
   ========================================================================== */
.editorial-creator-block {
    background: rgba(5, 12, 8, 0.45);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 50px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}
.editorial-creator-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.editorial-btn-outline {
    display: inline-block;
    padding: 12px 28px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: var(--gold-antique);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
}
.editorial-btn-outline:hover {
    background: rgba(212, 175, 55, 0.12);
    color: #fff;
    border-color: var(--fatuo-green);
}

/* Site Footer Noir */
.awwwards-noir-footer {
    background: #020403;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding: 80px 24px 140px 24px;
    position: relative;
    z-index: 30;
    text-align: center;
}
.awwwards-noir-footer .footer-quote {
    font-family: var(--font-cinematic);
    font-style: italic;
    font-size: 18px;
    color: #a3b8ad;
    max-width: 620px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}
.awwwards-noir-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}
.awwwards-noir-footer .footer-links a {
    color: #71877d;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s;
}
.awwwards-noir-footer .footer-links a:hover {
    color: var(--fatuo-green);
}
.awwwards-noir-footer .copy-text {
    color: #4a5c53;
    font-size: 12px;
}

@media (max-width: 900px) {
    .scrolly-featured-container {
        grid-template-columns: 1fr;
        padding: 36px 24px;
    }
    .editorial-creator-block {
        grid-template-columns: 1fr;
        padding: 36px 24px;
    }
    .archive-section {
        padding: 70px 16px;
    }
}

/* ==========================================================================
   11. EL UMBRAL DE LAS SOMBRAS - FAST PORTAL LANDING & CURTAIN (V8.3.0)
   ========================================================================== */
.portal-desktop-aurora {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.portal-landing-hero {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px 24px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 2; /* Sits beneath rising curtain sheet (z-index: 10) */
    will-change: transform, opacity;
}

/* Hero Photorealistic Backdrop */
.portal-hero-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    will-change: transform;
}

.portal-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 36%;
    opacity: 0.92;
    filter: brightness(1.05) contrast(1.08) saturate(1.18);
    transform: scale(1.02);
    animation: portalHeroPulse 22s infinite alternate ease-in-out;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes portalHeroPulse {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.08); }
}

.portal-hero-overlay {
    position: absolute;
    inset: 0;
    /* Soft atmospheric cinematic blend - clear center to let the portal and lanterns shine */
    background: 
        radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(3, 7, 5, 0.22) 70%, rgba(3, 7, 5, 0.72) 100%),
        linear-gradient(to bottom, rgba(3, 7, 5, 0.35) 0%, transparent 15%, transparent 75%, #030705 100%);
}

/* Lienzo de Niebla Espectral Interactiva (Fog Eraser & Revealer) */
.portal-fog-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Sobre el fondo y overlay, bajo la tipografía y buscador (z-index: 5) */
    pointer-events: none; /* No bloquea clics, cursor ni interacción */
    transition: opacity 0.6s ease;
    will-change: transform;
}

/* Bruma atmosférica móvil (solo activa en pantallas móviles) */
.portal-mobile-mist {
    display: none;
}

.portal-hero-content {
    position: relative;
    z-index: 5;
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform, opacity;
}

.portal-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-antique);
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 8px 22px;
    border-radius: 999px;
    background: rgba(3, 7, 5, 0.82);
    backdrop-filter: blur(14px);
    margin-bottom: 24px;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.2), 0 4px 15px rgba(0, 0, 0, 0.8);
}

.portal-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--fatuo-green);
    box-shadow: 0 0 10px var(--fatuo-green);
    animation: portalPulse 2s infinite ease-in-out;
}

@keyframes portalPulse {
    0%, 100% { opacity: 0.4; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.3); }
}

.portal-hero-title {
    font-family: var(--font-gothic);
    font-size: clamp(3.2rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 8px;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #ffffff 0%, #d4af37 55%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.05;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


.portal-hero-sub {
    font-family: var(--font-gothic);
    font-size: clamp(0.85rem, 1.8vw, 1.2rem);
    color: var(--gold-antique);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin: 0 0 24px 0;
    opacity: 0.95;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.portal-hero-quote {
    font-family: var(--font-cinematic);
    font-style: italic;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto 34px auto;
    line-height: 1.6;
    border-left: 2px solid var(--gold-antique);
    padding: 14px 22px;
    background: rgba(3, 7, 5, 0.65);
    backdrop-filter: blur(14px);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    text-align: left;
}

.portal-quote-author {
    display: block;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-subtle);
    margin-top: 6px;
}

/* Buscador Arcano Rápido */
.portal-search-form {
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
    position: relative;
}

.portal-search-input {
    width: 100%;
    padding: 16px 58px 16px 24px;
    background: rgba(4, 10, 7, 0.92);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 999px;
    color: var(--text-pure);
    font-size: 14px;
    box-sizing: border-box;
    backdrop-filter: blur(20px);
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);
}

.portal-search-input:focus {
    border-color: var(--fatuo-green);
    box-shadow: 0 0 28px rgba(0, 255, 136, 0.45), inset 0 0 12px rgba(0, 255, 136, 0.15);
    outline: none;
}

.portal-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3) 0%, rgba(0, 255, 136, 0.3) 100%);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.portal-search-btn:hover {
    background: var(--fatuo-green);
    color: #000;
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 0 18px var(--fatuo-green);
}

/* Indicador de Telón / Deslizamiento hacia abajo */
.portal-hero-scroll-cue {
    margin-top: 22px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--gold-burnished);
    opacity: 0.85;
    animation: portalCueBounce 2.4s infinite ease-in-out;
    pointer-events: none;
}

.portal-scroll-cue-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-family: var(--font-body);
}

.portal-scroll-cue-arrow {
    stroke: var(--fatuo-green);
    filter: drop-shadow(0 0 6px var(--fatuo-green));
}

@keyframes portalCueBounce {
    0%, 100% { transform: translateY(0); opacity: 0.65; }
    50% { transform: translateY(7px); opacity: 1; }
}

/* ==========================================================================
   12. EL TELÓN DE CONTENIDO (CURTAIN REVEAL SHEET QUE SUBE POR ENCIMA DEL HERO)
   ========================================================================== */
.portal-curtain-sheet {
    position: relative;
    z-index: 10;
    background-color: var(--bg-obsidian);
    /* Fondo restaurado: obsidiana profunda con aura verde-esmeralda */
    background:
        radial-gradient(ellipse 70% 40% at 20% 30%, rgba(0, 255, 136, 0.07) 0%, transparent 65%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(0, 200, 90, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse 90% 60% at 50% 10%, rgba(0, 255, 136, 0.04) 0%, transparent 70%),
        linear-gradient(180deg, #040c07 0%, #030705 55%, #040a06 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 36px 36px 0 0;
    box-shadow:
        0 -35px 80px rgba(0, 0, 0, 0.98),
        0 -4px 30px rgba(0, 255, 136, 0.15),
        0 -1px 0 rgba(212, 175, 55, 0.5);
    margin-top: 0;
    padding-top: 20px;
    box-sizing: border-box;
    overflow: hidden; /* contiene los espectros dentro del telón */
}

.portal-curtain-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 16px 0;
}

.portal-curtain-pill {
    width: 54px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7), rgba(0, 255, 136, 0.7), transparent);
    box-shadow: 0 0 12px rgba(0, 255, 136, 0.35);
}

/* ==========================================================================
   ESPECTROS FANTASMALES — Niebla CSS bajo las tarjetas (cero JS, cero canvas)
   Tres manchas de niebla animadas que se desplazan de forma aleatoria e
   independiente por debajo de las tarjetas. Solo usa GPU (transform + opacity).
   ========================================================================== */

/* Contenedor de espectros — puesto justo antes del grid de tarjetas */
.portal-specter-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0; /* debajo de las tarjetas (z-index 10+) */
    overflow: hidden;
}

/* ── Espectro genérico base (optimizado para Chrome: gradiente puro sin filtro de desenfoque costoso) ── */
.portal-specter {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}

/* ── Espectro 1: Verde esmeralda, deriva lenta NE→SO ── */
.portal-specter-1 {
    width: 520px;
    height: 280px;
    background: radial-gradient(ellipse at center,
        rgba(0, 255, 136, 0.14) 0%,
        rgba(0, 180, 90, 0.07) 50%,
        transparent 75%);
    top: 15%;
    left: -10%;
    animation: specterDriftA 22s ease-in-out infinite alternate;
}

/* ── Espectro 2: Verde-azulado, deriva rápida SO→NE ── */
.portal-specter-2 {
    width: 380px;
    height: 220px;
    background: radial-gradient(ellipse at center,
        rgba(0, 255, 160, 0.11) 0%,
        rgba(0, 220, 120, 0.05) 55%,
        transparent 78%);
    top: 50%;
    left: 35%;
    animation: specterDriftB 17s ease-in-out infinite alternate 3s;
}

/* ── Espectro 3: Verde tenue, cruza de derecha a izquierda ── */
.portal-specter-3 {
    width: 460px;
    height: 200px;
    background: radial-gradient(ellipse at center,
        rgba(0, 255, 100, 0.09) 0%,
        rgba(0, 160, 70, 0.04) 50%,
        transparent 72%);
    top: 70%;
    right: -8%;
    animation: specterDriftC 26s ease-in-out infinite alternate 7s;
}

/* ── Espectro 4: Dorado muy sutil, central, pausa larga ── */
.portal-specter-4 {
    width: 300px;
    height: 160px;
    background: radial-gradient(ellipse at center,
        rgba(212, 175, 55, 0.07) 0%,
        rgba(180, 140, 30, 0.03) 55%,
        transparent 78%);
    top: 30%;
    left: 55%;
    animation: specterDriftD 31s ease-in-out infinite alternate 12s;
}

/* ── Espectro 5: Fino, horizontal, parte superior ── */
.portal-specter-5 {
    width: 600px;
    height: 130px;
    background: radial-gradient(ellipse at center,
        rgba(0, 255, 136, 0.06) 0%,
        transparent 70%);
    top: 5%;
    left: 20%;
    animation: specterDriftE 19s ease-in-out infinite alternate 5s;
}

/* ── Keyframes — trayectorias completamente distintas e independientes ── */
@keyframes specterDriftA {
    0%   { transform: translate(0px, 0px)   scale(1.0);   opacity: 0.55; }
    25%  { transform: translate(80px, 40px) scale(1.15);  opacity: 0.80; }
    50%  { transform: translate(160px, -20px) scale(0.92); opacity: 0.45; }
    75%  { transform: translate(60px, 70px) scale(1.10);  opacity: 0.72; }
    100% { transform: translate(220px, 30px) scale(1.05); opacity: 0.35; }
}

@keyframes specterDriftB {
    0%   { transform: translate(0px, 0px)    scale(1.0);  opacity: 0.40; }
    30%  { transform: translate(-90px, -50px) scale(1.20); opacity: 0.70; }
    60%  { transform: translate(50px, 80px)  scale(0.88); opacity: 0.55; }
    100% { transform: translate(-130px, 20px) scale(1.12); opacity: 0.30; }
}

@keyframes specterDriftC {
    0%   { transform: translate(0px, 0px)     scale(1.0);  opacity: 0.50; }
    20%  { transform: translate(-100px, 30px) scale(1.10); opacity: 0.75; }
    50%  { transform: translate(-50px, -60px) scale(0.90); opacity: 0.38; }
    80%  { transform: translate(-180px, 20px) scale(1.08); opacity: 0.65; }
    100% { transform: translate(-240px, -30px) scale(0.95); opacity: 0.28; }
}

@keyframes specterDriftD {
    0%   { transform: translate(0px, 0px)   scale(1.0);  opacity: 0.35; }
    35%  { transform: translate(-60px, -70px) scale(1.25); opacity: 0.60; }
    70%  { transform: translate(40px, 50px)  scale(0.85); opacity: 0.42; }
    100% { transform: translate(80px, -40px) scale(1.15); opacity: 0.25; }
}

@keyframes specterDriftE {
    0%   { transform: translate(0px, 0px)    scale(1.0);  opacity: 0.45; }
    40%  { transform: translate(-70px, 20px) scale(1.18); opacity: 0.68; }
    100% { transform: translate(100px, -10px) scale(0.92); opacity: 0.28; }
}

/* ==========================================================================
   12. SECCIÓN DE LOS 6 PORTALES FLOTANTES DISPERSOS (CONSTELLACIÓN ORGÁNICA)
   ========================================================================== */
.portal-scattered-section,
.portal-grid-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 24px 90px 24px;
    position: relative;
    z-index: 10;
}

.portal-section-header {
    text-align: center;
    margin-bottom: 50px;
}

.portal-section-tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--fatuo-green);
    display: block;
    margin-bottom: 8px;
}

.portal-section-title {
    font-family: var(--font-gothic);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #fff;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
}

.portal-section-lead {
    color: var(--text-dim);
    font-size: 14px;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Constelación Dispersa de Tarjetas - Sin Cuadrícula Rígida */
.portal-scattered-canvas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 55px 36px;
    position: relative;
    padding: 50px 10px 90px 10px;
}

/* Elementos Contenedores Dispersos con Desplazamientos Marcados y Ángulos Orgánicos */
.portal-scattered-item {
    position: relative;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    -webkit-transition: -webkit-transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Fila 1 Desplazada: Diferencia vertical de más de 120px entre tarjetas y ángulos asimétricos */
.portal-item-pos-1 {
    margin-top: 55px;
    margin-left: -18px;
    -webkit-transform: translateY(0px) rotate(-1.6deg);
    transform: translateY(0px) rotate(-1.6deg);
    -webkit-animation: portalFloatDeepA 7.5s ease-in-out infinite alternate;
    animation: portalFloatDeepA 7.5s ease-in-out infinite alternate;
}

.portal-item-pos-2 {
    margin-top: -55px;
    margin-left: 20px;
    -webkit-transform: translateY(0px) rotate(2.0deg);
    transform: translateY(0px) rotate(2.0deg);
    -webkit-animation: portalFloatDeepB 8.8s ease-in-out infinite alternate 0.6s;
    animation: portalFloatDeepB 8.8s ease-in-out infinite alternate 0.6s;
}

.portal-item-pos-3 {
    margin-top: 65px;
    margin-right: -20px;
    -webkit-transform: translateY(0px) rotate(-1.8deg);
    transform: translateY(0px) rotate(-1.8deg);
    -webkit-animation: portalFloatDeepC 7.2s ease-in-out infinite alternate 1.4s;
    animation: portalFloatDeepC 7.2s ease-in-out infinite alternate 1.4s;
}

/* Fila 2 Desplazada: Desfases asimétricos y contra-rotaciones */
.portal-item-pos-4 {
    margin-top: -35px;
    margin-left: 30px;
    -webkit-transform: translateY(0px) rotate(2.2deg);
    transform: translateY(0px) rotate(2.2deg);
    -webkit-animation: portalFloatDeepB 8.2s ease-in-out infinite alternate 2.0s;
    animation: portalFloatDeepB 8.2s ease-in-out infinite alternate 2.0s;
}

.portal-item-pos-5 {
    margin-top: 80px;
    margin-left: -25px;
    -webkit-transform: translateY(0px) rotate(-1.5deg);
    transform: translateY(0px) rotate(-1.5deg);
    -webkit-animation: portalFloatDeepA 9.2s ease-in-out infinite alternate 0.4s;
    animation: portalFloatDeepA 9.2s ease-in-out infinite alternate 0.4s;
}

.portal-item-pos-6 {
    margin-top: -25px;
    margin-right: 25px;
    -webkit-transform: translateY(0px) rotate(1.8deg);
    transform: translateY(0px) rotate(1.8deg);
    -webkit-animation: portalFloatDeepC 7.8s ease-in-out infinite alternate 1.6s;
    animation: portalFloatDeepC 7.8s ease-in-out infinite alternate 1.6s;
}

.portal-item-pos-7 {
    grid-column: 1 / -1;
    margin-top: 35px;
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    -webkit-transform: none;
    transform: none;
    -webkit-animation: none;
    animation: none;
}

/* Animaciones de Levitación Profunda e Hipnótica (WebKit + Estándar) */
@-webkit-keyframes portalFloatDeepA {
    0% {
        -webkit-transform: translateY(0px) rotate(-1.6deg);
    }
    50% {
        -webkit-transform: translateY(-26px) rotate(0.8deg);
    }
    100% {
        -webkit-transform: translateY(14px) rotate(-2.2deg);
    }
}
@keyframes portalFloatDeepA {
    0% {
        transform: translateY(0px) rotate(-1.6deg);
    }
    50% {
        transform: translateY(-26px) rotate(0.8deg);
    }
    100% {
        transform: translateY(14px) rotate(-2.2deg);
    }
}

@-webkit-keyframes portalFloatDeepB {
    0% {
        -webkit-transform: translateY(0px) rotate(2.0deg);
    }
    50% {
        -webkit-transform: translateY(26px) rotate(-0.9deg);
    }
    100% {
        -webkit-transform: translateY(-22px) rotate(2.5deg);
    }
}
@keyframes portalFloatDeepB {
    0% {
        transform: translateY(0px) rotate(2.0deg);
    }
    50% {
        transform: translateY(26px) rotate(-0.9deg);
    }
    100% {
        transform: translateY(-22px) rotate(2.5deg);
    }
}

@-webkit-keyframes portalFloatDeepC {
    0% {
        -webkit-transform: translateY(0px) rotate(-1.8deg);
    }
    50% {
        -webkit-transform: translateY(-30px) rotate(1.1deg);
    }
    100% {
        -webkit-transform: translateY(16px) rotate(-1.4deg);
    }
}
@keyframes portalFloatDeepC {
    0% {
        transform: translateY(0px) rotate(-1.8deg);
    }
    50% {
        transform: translateY(-30px) rotate(1.1deg);
    }
    100% {
        transform: translateY(16px) rotate(-1.4deg);
    }
}

.portal-scattered-item:hover {
    -webkit-animation-play-state: paused;
    animation-play-state: paused;
    z-index: 50;
}

/* ============================================================
   TARJETAS PORTAL — Nueva estructura media + mist + contenido
   ============================================================ */

/* Base card — image-first layout, no inner padding on wrapper */
.portal-compact-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #060f09;
    border: 2px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 14px 40px rgba(0,0,0,0.80), 0 0 0 1px rgba(212,175,55,0.08);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
    transform: translateZ(0);
}


/* Per-position border colours + asymmetric radii (organic disorder) */
.portal-item-pos-1 .portal-compact-card {
    border-color: rgba(0, 255, 136, 0.28);
    box-shadow: 0 12px 36px rgba(0,0,0,0.75), 0 0 18px rgba(0,255,136,0.10);
    border-radius: 28px 18px 26px 20px;
}
.portal-item-pos-2 .portal-compact-card {
    border-color: rgba(212, 175, 55, 0.32);
    box-shadow: 0 18px 44px rgba(0,0,0,0.80), 0 0 16px rgba(212,175,55,0.10);
    border-radius: 20px 28px 18px 26px;
}
.portal-item-pos-3 .portal-compact-card {
    border-color: rgba(0, 255, 136, 0.26);
    box-shadow: 0 10px 32px rgba(0,0,0,0.72), 0 0 14px rgba(0,255,136,0.08);
    border-radius: 24px 20px 28px 18px;
}
.portal-item-pos-4 .portal-compact-card {
    border-color: rgba(212, 175, 55, 0.30);
    box-shadow: 0 16px 42px rgba(0,0,0,0.78), 0 0 20px rgba(212,175,55,0.11);
    border-radius: 18px 26px 22px 28px;
}
.portal-item-pos-5 .portal-compact-card {
    border-color: rgba(0, 255, 136, 0.30);
    box-shadow: 0 14px 38px rgba(0,0,0,0.76), 0 0 16px rgba(0,255,136,0.09);
    border-radius: 26px 22px 20px 24px;
}
.portal-item-pos-6 .portal-compact-card {
    border-color: rgba(212, 175, 55, 0.28);
    box-shadow: 0 20px 48px rgba(0,0,0,0.82), 0 0 18px rgba(212,175,55,0.12);
    border-radius: 22px 24px 26px 20px;
}

/* Hover — green glow lift (default) — 60fps GPU locked */
.portal-compact-card:hover {
    border-color: rgba(0, 255, 136, 0.70);
    box-shadow: 0 18px 42px rgba(0,0,0,0.90),
                0 0 22px rgba(0,255,136,0.26);
    transform: translateY(-10px) scale(1.025);
}
/* Gold positions flip to gold glow on hover */
.portal-item-pos-2 .portal-compact-card:hover,
.portal-item-pos-4 .portal-compact-card:hover,
.portal-item-pos-6 .portal-compact-card:hover {
    border-color: rgba(212, 175, 55, 0.85);
    box-shadow: 0 18px 42px rgba(0,0,0,0.90),
                0 0 22px rgba(212,175,55,0.28);
    transform: translateY(-10px) scale(1.025);
}

/* ── Media wrapper ── */
.portal-card-media {
    position: relative;
    overflow: hidden;
    width: 100%;
    flex-shrink: 0;
    transform: translateZ(0);
}

/* Variable aspect ratios for organic height variety */
.portal-item-pos-1 .portal-card-media,
.portal-item-pos-4 .portal-card-media { aspect-ratio: 4 / 3; }

.portal-item-pos-2 .portal-card-media,
.portal-item-pos-5 .portal-card-media { aspect-ratio: 16 / 10; }

.portal-item-pos-3 .portal-card-media,
.portal-item-pos-6 .portal-card-media { aspect-ratio: 3 / 2; }

/* ── Card image — Acelerado por GPU pura, orden de capas blindado ── */
.portal-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.portal-compact-card:hover .portal-card-img {
    transform: scale3d(1.05, 1.05, 1);
}

/* ── Mist veil (Bruma translúcida segura: imagen SIEMPRE visible, nunca negra) ── */
.portal-card-mist-veil {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        165deg,
        rgba(0, 255, 136, 0.08) 0%,
        rgba(3, 14, 8, 0.22) 40%,
        rgba(2, 8, 4, 0.38) 100%
    );
    pointer-events: none;
    opacity: 0.60;
    transition: opacity 0.4s ease;
}
.portal-compact-card:hover .portal-card-mist-veil {
    opacity: 0;
}


/* ── Floating badge inside media ── */
.portal-card-badge-floating {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    z-index: 3;
    pointer-events: none;
}

.portal-card-symbol {
    font-size: 22px;
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.55));
    transition: transform 0.35s ease;
}
.portal-compact-card:hover .portal-card-symbol {
    transform: scale(1.18) rotate(6deg);
}

.portal-card-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--gold-antique);
    border: 1px solid rgba(212, 175, 55, 0.42);
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(3, 7, 5, 0.65);
    backdrop-filter: blur(6px);
}

/* ── Content area below image ── */
.portal-card-content {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    flex: 1;
}

.portal-card-heading {
    font-family: var(--font-gothic);
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: 0.7px;
    line-height: 1.3;
}
.portal-compact-card:hover .portal-card-heading {
    color: #00ff88;
    text-shadow: 0 0 14px rgba(0, 255, 136, 0.65);
}

.portal-card-description {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.portal-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--fatuo-green);
    margin-top: 4px;
    transition: transform 0.25s ease;
}
.portal-compact-card:hover .portal-card-action {
    transform: translateX(4px);
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.9);
}

/* ============================================================
   PORTAL 7 — GRAN BANNER / EXPERIENCIA ESPECIAL (FULL-WIDTH)
   ============================================================ */
.portal-featured-experience-box {
    grid-column: 1 / -1 !important;
    margin-top: 45px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    animation: none !important;
}

.portal-experience-banner-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    background: linear-gradient(135deg, #050e09 0%, #030705 50%, #06130b 100%) !important;
    border: 2px solid rgba(0, 255, 136, 0.45) !important;
    border-radius: 26px !important;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.90), 0 0 35px rgba(0, 255, 136, 0.16), inset 0 1px 0 rgba(212, 175, 55, 0.4) !important;
    overflow: hidden !important;
    position: relative !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.portal-experience-banner-card:hover {
    border-color: rgba(0, 255, 136, 0.85) !important;
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.96), 0 0 50px rgba(0, 255, 136, 0.32), inset 0 1px 0 rgba(212, 175, 55, 0.7) !important;
    transform: translateY(-8px) scale(1.01) !important;
}

.portal-experience-media {
    flex: 0 0 40% !important;
    min-height: 290px !important;
    position: relative !important;
    overflow: hidden !important;
}

.portal-experience-media .portal-card-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.portal-experience-banner-card:hover .portal-experience-media .portal-card-img {
    transform: scale(1.06) !important;
}

.portal-experience-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 36px 42px !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.portal-experience-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: #d4af37;
    margin-bottom: 12px;
}

.portal-experience-eyebrow .portal-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: portalPulseDot 2s infinite ease-in-out;
}

@keyframes portalPulseDot {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

.portal-experience-heading {
    font-family: var(--font-gothic, 'Cinzel', serif) !important;
    font-size: clamp(20px, 2.2vw, 27px) !important;
    font-weight: 800 !important;
    color: #f0f5f2 !important;
    margin: 0 0 14px 0 !important;
    line-height: 1.25 !important;
    letter-spacing: 0.8px !important;
}

.portal-experience-description {
    font-size: 14.5px !important;
    line-height: 1.68 !important;
    color: #a3b8ad !important;
    margin: 0 0 24px 0 !important;
    max-width: 680px !important;
}

.portal-experience-action-row {
    display: flex;
    align-items: center;
}

.portal-experience-action-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.16) 0%, rgba(212, 175, 55, 0.16) 100%) !important;
    border: 1px solid rgba(0, 255, 136, 0.5) !important;
    color: #f0f5f2 !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 13px 26px !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.18) !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.portal-experience-banner-card:hover .portal-experience-action-btn {
    background: linear-gradient(135deg, #00ff88 0%, #00e58b 100%) !important;
    color: #030705 !important;
    border-color: #00ff88 !important;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6) !important;
    transform: translateX(4px) !important;
}

@media (max-width: 900px) {
    .portal-experience-banner-card {
        flex-direction: column !important;
    }
    .portal-experience-media {
        flex: none !important;
        width: 100% !important;
        min-height: 220px !important;
        height: 220px !important;
    }
    .portal-experience-content {
        padding: 24px 20px !important;
    }
    .portal-experience-heading {
        font-size: 20px !important;
    }
    .portal-experience-description {
        font-size: 13.5px !important;
    }
    .portal-experience-action-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Legacy .portal-entry-card (kept for safety, no new HTML uses it) */
.portal-entry-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: linear-gradient(150deg, rgba(8,18,13,0.88) 0%, rgba(3,7,5,0.96) 100%);
    border: 1px solid rgba(212,175,55,0.25);
    min-height: 220px;
    padding: 24px 22px;
    backdrop-filter: blur(20px);
    box-shadow: 0 14px 35px rgba(0,0,0,0.75), 0 0 1px rgba(212,175,55,0.2);
    transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
}
.portal-entry-card:hover {
    border-color: rgba(0,255,136,0.65);
    box-shadow: 0 30px 70px rgba(0,0,0,0.95), 0 0 45px rgba(0,255,136,0.35), 0 0 2px rgba(212,175,55,0.85);
    transform: translateY(-16px) scale(1.05) !important;
}

/* Tarjeta de la Última Crónica Destacada (Banner Superior de Bienvenida) */
.portal-featured-chronicle {
    margin: 30px auto 45px auto;
    max-width: 100%;
    background: linear-gradient(145deg, rgba(6, 14, 10, 0.94) 0%, rgba(3, 7, 5, 0.98) 100%);
    border: 2px solid rgba(212, 175, 55, 0.35);
    border-radius: 24px;
    padding: 28px 34px;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 34px;
    align-items: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.88), 0 0 28px rgba(212, 175, 55, 0.12), inset 0 1px 0 rgba(212, 175, 55, 0.35);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.portal-featured-chronicle:hover {
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.95), 0 0 45px rgba(212, 175, 55, 0.25), inset 0 1px 0 rgba(212, 175, 55, 0.6);
    transform: translateY(-6px);
}

.portal-featured-media {
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

.portal-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portal-featured-chronicle:hover .portal-featured-img {
    transform: scale(1.05);
}

.portal-featured-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--fatuo-green);
    display: block;
    margin-bottom: 8px;
}

.portal-featured-title {
    font-family: var(--font-gothic);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.portal-featured-excerpt {
    color: var(--text-dim);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 22px 0;
}

.portal-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.18) 0%, rgba(212, 175, 55, 0.15) 100%);
    border: 1px solid rgba(0, 255, 136, 0.4);
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.portal-featured-cta:hover {
    background: var(--fatuo-green);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
}

@media (max-width: 1024px) {
    .portal-scattered-canvas {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
        padding: 30px 10px;
    }
    .portal-item-pos-1 { margin-top: 35px; margin-left: -10px; }
    .portal-item-pos-2 { margin-top: -30px; margin-left: 15px; }
    .portal-item-pos-3 { margin-top: 40px; margin-left: -5px; }
    .portal-item-pos-4 { margin-top: -25px; margin-left: 15px; }
    .portal-item-pos-5 { margin-top: 30px; margin-left: -10px; }
    .portal-item-pos-6 { margin-top: -20px; margin-left: 10px; }
}

@media (max-width: 800px) {
    /* 1. AISLAMIENTO MÓVIL: DESACTIVAR CUALQUIER CANVAS 2D PARA 0% CONSUMO Y EVITAR PARPADEOS */
    .portal-fog-canvas,
    .portal-desktop-aurora,
    #relatando-aurora-canvas,
    .dark-aurora-canvas {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* 2. BRUMA ATMOSFÉRICA FLUIDA EN MÓVILES (ACELERADA POR GPU COMPOSITOR, 0% JS) */
    .portal-mobile-mist {
        display: block !important;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        pointer-events: none;
        z-index: 2;
    }

    .portal-mist-puff {
        position: absolute;
        border-radius: 50%;
        filter: blur(35px);
        -webkit-filter: blur(35px);
        will-change: transform, opacity;
        pointer-events: none;
    }

    .p-puff-1 {
        width: 130vw;
        height: 55vh;
        top: 15%;
        left: -20%;
        background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.14) 0%, rgba(3, 15, 8, 0.55) 50%, transparent 75%);
        animation: portalMistDrift1 14s ease-in-out infinite alternate;
    }

    .p-puff-2 {
        width: 120vw;
        height: 50vh;
        bottom: 5%;
        right: -15%;
        background: radial-gradient(ellipse at center, rgba(4, 28, 16, 0.70) 0%, rgba(3, 7, 5, 0.85) 60%, transparent 80%);
        animation: portalMistDrift2 18s ease-in-out infinite alternate;
    }

    .p-puff-3 {
        width: 90vw;
        height: 40vh;
        top: 35%;
        left: 5%;
        background: radial-gradient(circle, rgba(0, 255, 136, 0.09) 0%, rgba(212, 175, 55, 0.06) 45%, transparent 70%);
        animation: portalMistDrift3 22s ease-in-out infinite alternate;
    }

    @keyframes portalMistDrift1 {
        0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.75; }
        50% { transform: translate3d(25px, -15px, 0) scale(1.12); opacity: 0.95; }
        100% { transform: translate3d(-18px, 12px, 0) scale(0.96); opacity: 0.70; }
    }

    @keyframes portalMistDrift2 {
        0% { transform: translate3d(0, 0, 0) scale(1.05); opacity: 0.80; }
        50% { transform: translate3d(-30px, 20px, 0) scale(0.92); opacity: 0.65; }
        100% { transform: translate3d(15px, -10px, 0) scale(1.10); opacity: 0.85; }
    }

    @keyframes portalMistDrift3 {
        0% { transform: translate3d(0, 0, 0) scale(0.95); opacity: 0.60; }
        50% { transform: translate3d(18px, 15px, 0) scale(1.15); opacity: 0.88; }
        100% { transform: translate3d(-12px, -8px, 0) scale(1.02); opacity: 0.65; }
    }

    /* 3. HERO STICKY EN MÓVIL: FIJO Y SIEMPRE VISIBLE */
    .portal-landing-hero {
        position: sticky !important;
        top: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        height: 100dvh !important;
        min-height: 100vh !important;
        min-height: 100dvh !important;
        z-index: 2 !important;
        padding: 85px 16px 30px 16px !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
    }

    .portal-hero-backdrop {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .portal-hero-bg-img {
        display: block !important;
        opacity: 0.95 !important;
        visibility: visible !important;
        object-position: center 30% !important;
        transform: scale(1.04) !important;
    }

    .portal-hero-content {
        position: relative !important;
        z-index: 5 !important;
        opacity: 1 !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .portal-brand-badge {
        font-size: 10px;
        letter-spacing: 2px;
        padding: 6px 16px;
        margin-bottom: 16px;
        background: rgba(3, 7, 5, 0.88) !important;
        border: 1px solid rgba(212, 175, 55, 0.45) !important;
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.25) !important;
    }

    .portal-hero-title {
        font-size: clamp(2.4rem, 10vw, 3.6rem);
        letter-spacing: 4px;
        margin-bottom: 6px;
        filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 25px rgba(0, 255, 136, 0.35)) !important;
    }

    .portal-hero-sub {
        font-size: 10px;
        letter-spacing: 2px;
        margin-bottom: 16px;
    }

    .portal-hero-quote {
        font-size: 12.5px;
        padding: 12px 16px;
        margin: 0 auto 20px auto;
        line-height: 1.55;
        max-width: 100%;
        background: rgba(3, 7, 5, 0.88) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(212, 175, 55, 0.35) !important;
        border-left: 3px solid var(--fatuo-green) !important;
        border-radius: 12px !important;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 255, 136, 0.12) !important;
    }

    .portal-search-form {
        max-width: 100%;
    }

    .portal-search-input {
        padding: 14px 50px 14px 20px;
        font-size: 13px;
        background: rgba(4, 10, 7, 0.94) !important;
        border: 1px solid rgba(212, 175, 55, 0.45) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85) !important;
    }

    .portal-hero-scroll-cue {
        margin-top: 14px;
    }

    /* 4. EL TELÓN DE CONTENIDO QUE SUBE EN MÓVIL (CURTAIN REVEAL SHEET) */
    .portal-curtain-sheet {
        position: relative !important;
        z-index: 10 !important;
        border-radius: 24px 24px 0 0 !important;
        box-shadow: 0 -25px 60px rgba(0, 0, 0, 0.98), 0 -2px 18px rgba(0, 255, 136, 0.12) !important;
        padding-top: 14px !important;
        background: linear-gradient(180deg, #030705 0%, #050b07 60%, #030705 100%) !important;
    }

    .portal-curtain-pill {
        width: 44px;
        height: 4px;
    }

    .portal-scattered-section {
        padding: 24px 16px 60px 16px;
    }

    .portal-scattered-canvas,
    .portal-cards-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 15px 0;
    }

    .portal-item-pos-1, .portal-item-pos-2, .portal-item-pos-3,
    .portal-item-pos-4, .portal-item-pos-5, .portal-item-pos-6, .portal-item-pos-7 {
        margin: 0;
        animation: portalFloatMobile 6s ease-in-out infinite alternate;
    }

    @keyframes portalFloatMobile {
        0% { transform: translateY(0px); }
        100% { transform: translateY(-6px); }
    }

    .portal-compact-card {
        min-height: auto;
        padding: 20px 18px;
        background: rgba(4, 11, 8, 0.88) !important;
        border: 1px solid rgba(212, 175, 55, 0.30) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75) !important;
    }

    .portal-featured-chronicle {
        grid-template-columns: 1fr;
        padding: 18px;
    }
}

