/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FFA500;
    --primary-dark: #ff8c00;
    --bg-dark: #0a0a0a;
    --bg-card: rgba(20, 20, 20, 0.85);
    --bg-card-hover: rgba(30, 30, 30, 0.9);
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;
    --border-color: rgba(255, 165, 0, 0.2);
    --glow-color: rgba(255, 165, 0, 0.4);
    --cyan: #20c0c0;
    --green: #20c040;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Three.js Background Container */
#three-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
    overflow: hidden;
}

#three-background canvas {
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

main {
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 20px var(--glow-color);
}

.navbar-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    vertical-align: middle;
}

.navbar-menu {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.navbar-toggle {
    display: none;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.navbar-toggle:hover {
    border-color: var(--primary-color);
    background: rgba(255, 165, 0, 0.08);
}

.navbar-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-toggle[aria-expanded="true"] .navbar-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.navbar-toggle[aria-expanded="true"] .navbar-toggle-bar:nth-child(2) {
    opacity: 0;
}
.navbar-toggle[aria-expanded="true"] .navbar-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.navbar-menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.navbar-menu a:hover {
    background: rgba(255, 165, 0, 0.15);
    color: var(--primary-color);
}

.navbar-menu a.is-active {
    background: rgba(255, 165, 0, 0.18);
    color: var(--primary-color);
    box-shadow: inset 0 -2px 0 var(--primary-color);
}

/* Language switcher */
.lang-switcher {
    position: relative;
    margin-left: 0.5rem;
}

.lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.lang-trigger:hover {
    border-color: var(--primary-color);
    background: rgba(255, 165, 0, 0.1);
}

.lang-code {
    letter-spacing: 0.05em;
}

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    padding: 0.4rem;
    margin: 0;
    list-style: none;
    display: none;
    z-index: 1000;
}

.lang-switcher.is-open .lang-menu,
.lang-switcher:hover .lang-menu,
.lang-switcher:focus-within .lang-menu {
    display: block;
}

.lang-form {
    margin: 0;
}

.lang-option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(255, 165, 0, 0.15);
    color: var(--primary-color);
}

.lang-option.is-active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Flag icons (CSS-only) */
.flag {
    display: inline-block;
    width: 22px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

/* Spain: red-yellow-red horizontal stripes */
.flag-es {
    background: linear-gradient(
        to bottom,
        #c60b1e 0 25%,
        #ffc400 25% 75%,
        #c60b1e 75% 100%
    );
}

/* UK: approximate Union Jack via layered gradients */
.flag-en {
    background:
        linear-gradient(45deg, transparent 45%, #ffffff 45% 55%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, #ffffff 45% 55%, transparent 55%),
        linear-gradient(to bottom, transparent 44%, #ffffff 44% 56%, transparent 56%),
        linear-gradient(to right, transparent 44%, #ffffff 44% 56%, transparent 56%),
        linear-gradient(45deg, transparent 47%, #cf142b 47% 53%, transparent 53%),
        linear-gradient(-45deg, transparent 47%, #cf142b 47% 53%, transparent 53%),
        linear-gradient(to bottom, transparent 47%, #cf142b 47% 53%, transparent 53%),
        linear-gradient(to right, transparent 47%, #cf142b 47% 53%, transparent 53%),
        #00247d;
}

/* France: blue-white-red vertical stripes */
.flag-fr {
    background: linear-gradient(
        to right,
        #0055a4 0 33.3%,
        #ffffff 33.3% 66.6%,
        #ef4135 66.6% 100%
    );
}

/* Portugal: green (40%) + red (60%) vertical */
.flag-pt {
    background:
        radial-gradient(circle at 40% 50%, #ffcc00 2px, transparent 2.5px),
        linear-gradient(
            to right,
            #046a38 0 40%,
            #da291c 40% 100%
        );
}

/* Germany: black-red-gold horizontal stripes */
.flag-de {
    background: linear-gradient(
        to bottom,
        #000000 0 33.3%,
        #dd0000 33.3% 66.6%,
        #ffcc00 66.6% 100%
    );
}

/* Finland: blue Nordic cross on white */
.flag-fi {
    background:
        linear-gradient(to bottom, transparent 40%, #003580 40% 60%, transparent 60%),
        linear-gradient(to right, transparent 30%, #003580 30% 45%, transparent 45%),
        #ffffff;
}

@media (max-width: 768px) {
    .lang-menu {
        right: auto;
        left: 0;
    }
}

/* Hero Section (first viewport: poster + title + countdown + CTAs) */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

/* Production screenshots mosaic — decorative backdrop for information
   sections. Positioned absolute inside its parent section. */
.slide-bg-mosaic {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    transform-origin: center center;
    contain: strict;
    will-change: transform, filter, opacity;
    transform: translateZ(0);
}

.slide-bg-mosaic-inner {
    position: absolute;
    inset: -5%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 1fr;
    grid-auto-flow: row;
    gap: 2px;
    opacity: 0.65;
    filter: blur(1px) saturate(0.85);
    transform-origin: center center;
    animation: mosaic-zoom 18s ease-in-out infinite alternate;
    will-change: transform;
    transform: translateZ(0);
}

.slide-bg-mosaic::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 5%, rgba(10, 15, 25, 0.55) 60%, rgba(10, 15, 25, 0.88) 100%),
        linear-gradient(to bottom, rgba(10, 15, 25, 0.15), rgba(10, 15, 25, 0.45));
    pointer-events: none;
    z-index: 2;
}

@keyframes mosaic-zoom {
    0%   { transform: scale(1);    }
    100% { transform: scale(1.18); }
}

/* Entrance "explosion" on slide activation: start zoomed-out with heavy
   motion blur and settle into place. Justifies the brief fullscreen flash
   that happens when the slide container resizes from absolute to relative. */
@keyframes mosaic-boom {
    0% {
        transform: scale(1.5);
        filter: blur(20px) brightness(1.4) saturate(1.25);
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    55% {
        transform: scale(1.18);
        filter: blur(8px) brightness(1.15) saturate(1.1);
    }
    85% {
        filter: blur(2px) brightness(1.03) saturate(1.02);
    }
    100% {
        transform: scale(1);
        filter: blur(0) brightness(1) saturate(1);
        opacity: 1;
    }
}

/* Slight horizontal "camera push" on the inner grid — runs in parallel with
   mosaic-boom and then yields to the long-running mosaic-zoom ken-burns. */
@keyframes mosaic-push {
    0%   { transform: translate3d(-6%, 0, 0) scale(1.08); }
    60%  { transform: translate3d(-1.5%, 0, 0) scale(1.02); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

.slide-bg-tile {
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 165, 0, 0.03);
    transition: opacity 1.2s ease, transform 1.2s ease;
    opacity: 1;
    will-change: opacity;
}

.slide-bg-tile.is-swapping {
    opacity: 0;
}

.compos-section .container--centered,
.info-section--retrospective .container--centered {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .slide-bg-mosaic-inner {
        grid-template-columns: repeat(4, 1fr);
        opacity: 0.55;
    }
}

.hero-wrapper--centered {
    flex-direction: column;
    text-align: center;
}

.hero-content--centered {
    max-width: 900px;
    text-align: center;
}

.hero-content--centered .cta-buttons {
    justify-content: center;
}

.hero-title--medium {
    font-size: clamp(2rem, 4vw, 3rem);
}

.hero-subtitle--large {
    font-size: 1.25rem;
    line-height: 1.7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0.05em;
    margin: 1.5rem 0 2rem;
    text-transform: uppercase;
}

/* Hero navigation */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    transition: all 0.25s ease;
}

.hero-nav:hover {
    background: rgba(255, 165, 0, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hero-nav svg {
    width: 24px;
    height: 24px;
}

.hero-nav--prev { left: 20px; }
.hero-nav--next { right: 20px; }

.hero-dots {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.6rem;
    z-index: 3;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    padding: 0;
    transition: width 0.35s ease, background 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
}

.hero-dots button:hover {
    border-color: var(--primary-color);
}

.hero-dots button.is-active {
    width: 34px;
    background: rgba(255, 165, 0, 0.18);
    border-color: rgba(255, 165, 0, 0.4);
    box-shadow: 0 0 12px var(--glow-color);
}

.hero-dots button.is-active::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    transform-origin: left center;
    animation: dot-progress var(--slider-duration, 7s) linear forwards;
}

.hero-dots.is-paused button.is-active::after {
    animation-play-state: paused;
}

@keyframes dot-progress {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* Perks grid. Flex-wrap with centered orphans so removing a card doesn't
   leave a hole — each card is ~280–340px; three fit comfortably side by
   side, fewer get centered on the row. */
.perks-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 1000px;
    width: 100%;
}

.perks-grid .perk {
    flex: 1 1 280px;
    max-width: 340px;
}

@media (max-width: 600px) {
    .perks-grid .perk { flex-basis: 100%; max-width: 100%; }
}

.perk {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem 1.25rem;
    text-align: left;
    transition: all 0.25s ease;
}

.perk:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-color);
}

.perk-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 165, 0, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.perk-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-color);
}

.perk h3 {
    font-size: 1.05rem;
    margin: 0 0 0.4rem;
}

.perk p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Stats grid (slide 4) */
.stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    text-shadow: 0 0 30px var(--glow-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.4rem;
}

.poster-strip {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}

.poster-thumb {
    width: 80px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    opacity: 0.7;
    transition: all 0.25s ease;
}

.poster-thumb:hover {
    opacity: 1;
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.countdown-container--large .countdown-value {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.open-compos-badge--hero {
    margin: 1.5rem auto;
    font-size: 1rem;
}

/* Slide 2: big number layout */
.hero-title--large-number {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.hero-big-number {
    font-size: clamp(5rem, 14vw, 10rem);
    font-weight: 800;
    line-height: 1;
    color: var(--primary-color);
    text-shadow: 0 0 40px var(--glow-color);
}

.hero-big-label {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.compos-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1rem auto 1.5rem;
    max-width: 720px;
}

.compo-chip {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 165, 0, 0.05);
    transition: all 0.2s ease;
}

.compo-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 90px 15px 40px;
    }

    .stats-grid { gap: 1.5rem; }
    .poster-thumb { width: 60px; height: 82px; }
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 1400px;
    width: 100%;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.hero-poster {
    flex-shrink: 0;
    max-width: 500px;
    animation: posterFloat 6s ease-in-out infinite;
}

.poster-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--glow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poster-image:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6), 0 0 60px var(--glow-color);
}

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

.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.hero-content.with-poster {
    text-align: left;
    max-width: 600px;
}

.edition-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-dark);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    box-shadow: 0 0 30px var(--glow-color);
}

.hero-title {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 0%, var(--primary-color) 50%, #fff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hero-date {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-signin-hint {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hero-signin-hint a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.3rem;
}

.hero-signin-hint a:hover {
    text-decoration: underline;
}

/* Countdown Timer */
.countdown-container {
    margin: 1.5rem 0;
}

.attendance-counter {
    display: inline-flex;
    align-items: baseline;
    gap: 0.6rem;
    margin: 0.25rem 0 1.25rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.attendance-counter-number {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--accent-cyan, #00e0ff);
}

.attendance-counter-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    min-width: 65px;
}

.countdown-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    font-family: 'Courier New', monospace;
}

.countdown-unit {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-top: 0.3rem;
}

.countdown-separator {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 300;
    opacity: 0.5;
}

.countdown-ended {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Open Compos Badge */
.open-compos-badge {
    display: inline-block;
    background: rgba(32, 192, 192, 0.15);
    border: 1px solid rgba(32, 192, 192, 0.3);
    color: var(--cyan);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.compos-count {
    font-weight: 700;
    font-size: 1rem;
    margin-right: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--glow-color);
}

.btn-glow {
    box-shadow: 0 0 20px var(--glow-color);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(255, 165, 0, 0.1);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    animation: bounce 2s infinite;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 0.8;
}

.scroll-indicator svg {
    width: 28px;
    height: 28px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(8px);
    }
    60% {
        transform: translateX(-50%) translateY(4px);
    }
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Section Styles */
section, .info-section, .compos-section, .editions-section, .cta-final {
    padding: 5rem 0;
    position: relative;
}

.info-section {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(5px);
}

/* Tighter padding for "secondary" info sections like "Why register?" */
.info-section--compact {
    padding: 4rem 0;
}

/* Retrospective section uses a darker backdrop and hosts the mosaic */
.info-section--retrospective {
    background: rgba(10, 12, 18, 0.75);
    overflow: hidden;
}

.info-section--retrospective .container--centered,
.info-section--compact .container--centered {
    text-align: center;
}

.container--centered {
    text-align: center;
}

.container--centered .edition-badge {
    margin-bottom: 1rem;
}

.container--centered h2 {
    margin-bottom: 1rem;
}

.info-section h2,
.compos-section h2,
.editions-section h2,
.cta-final h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-description {
    text-align: center;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.section-description--small {
    font-size: 1rem;
    max-width: 760px;
    margin-top: -1.5rem;
    color: var(--text-secondary);
    opacity: 0.85;
}

/* Posadas Party story block */
.story-block {
    margin: 5rem auto 3rem;
    max-width: 900px;
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.04), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(10px);
}

.story-title {
    text-align: center;
    color: var(--primary-color);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 1.5rem;
}

.story-lead {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 1rem;
}

.story-lead:last-of-type {
    margin-bottom: 2rem;
}

.story-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.story-highlight {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    transition: all 0.25s ease;
}

.story-highlight:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.story-highlight-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}

.story-highlight-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Features Grid */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--glow-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.2), rgba(255, 165, 0, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary-color);
}

.feature h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Feature Slideshow */
.feature--slideshow {
    position: relative;
    overflow: hidden;
}

.feature-slideshow {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: cover;
    background-position: center;
}

.feature-slideshow::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.feature--slideshow:hover .feature-slideshow {
    opacity: 1;
}

.feature-content {
    position: relative;
    z-index: 1;
}

/* Compos Section */
.compos-section {
    background: transparent;
}

.compos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.compo-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.compo-card:hover {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(32, 192, 192, 0.2);
}

.compo-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compo-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--cyan);
}

.compo-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.compo-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.compos-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Editions Section */
.editions-section {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(5px);
    text-align: center;
}

/* CTA Final */
.cta-final {
    text-align: center;
    background: transparent;
}

.cta-final p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Detail Feature Cards (event info) */
.features--stacked {
    grid-template-columns: 1fr;
}

.feature.feature--detail {
    text-align: left;
    padding: 2rem;
}

.feature.feature--detail .feature-icon {
    margin: 0 0 1.5rem 0;
}

.feature.feature--detail h3 {
    text-align: left;
}

.feature--detail .detail-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9rem;
}

.markdown-content h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: 1.2rem;
    margin-bottom: 0.4rem;
}

.markdown-content h2:first-child {
    margin-top: 0;
}

.markdown-content p {
    margin: 0.3rem 0;
}

.markdown-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content ul {
    padding-left: 1rem;
    margin: 0.4rem 0;
    list-style-type: none;
}

.markdown-content li {
    margin-bottom: 0.25rem;
    position: relative;
    padding-left: 0.8rem;
}

.markdown-content li::before {
    content: "›";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.markdown-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Sponsors Section */
.sponsors-section {
    padding: 5rem 0;
    background: transparent;
}

.sponsors-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 400;
}

.sponsors-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.sponsor-item {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsor-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-color);
    transform: translateY(-5px);
}

.sponsor-link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.sponsor-logo {
    max-height: 60px;
    max-width: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%) brightness(0.9);
    transition: filter 0.3s ease;
}

.sponsor-item:hover .sponsor-logo {
    filter: grayscale(0%) brightness(1);
}

.sponsor-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

/* Footer */
footer {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* Effect Selector Bar - Horizontal React-style */
.effect-selector-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 8px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.effect-selector-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.effect-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

/* Toggle Switch */
.effect-switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.effect-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.effect-switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    border-radius: 24px;
}

.effect-switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: 0.3s;
    border-radius: 50%;
}

.effect-switch input:checked + .effect-switch-slider {
    background-color: var(--primary-color);
}

.effect-switch input:checked + .effect-switch-slider:before {
    transform: translateX(18px);
    background-color: var(--bg-dark);
}

.effect-switch input:focus + .effect-switch-slider {
    box-shadow: 0 0 1px var(--primary-color);
}

/* Effect Dropdown */
.effect-dropdown {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: var(--text-primary);
    padding: 6px 28px 6px 10px;
    font-size: 0.875rem;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b0b0b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    min-width: 110px;
}

.effect-dropdown:hover:not(:disabled) {
    border-color: var(--primary-color);
}

.effect-dropdown:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.2);
}

.effect-dropdown:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.effect-dropdown option {
    background: var(--bg-dark);
    color: var(--text-primary);
    padding: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-section {
        padding: 100px 20px 40px;
    }

    .hero-wrapper {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-poster {
        max-width: 400px;
    }

    .poster-image {
        max-height: 55vh;
    }

    .hero-content.with-poster {
        text-align: center;
    }

    .hero-content.with-poster .cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.6rem 0;
    }

    .navbar .container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding-left: 15px;
        padding-right: 15px;
    }

    .navbar-logo {
        height: 40px;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.75rem;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
        transform-origin: top;
        transform: scaleY(0);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s 0.2s;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .navbar-menu.is-open {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
        transition: transform 0.2s ease, opacity 0.2s ease, visibility 0s;
    }

    .navbar-menu a {
        padding: 0.75rem 1rem;
        border-radius: 6px;
    }

    .lang-switcher {
        margin-left: 0;
        margin-top: 0.5rem;
        border-top: 1px solid var(--border-color);
        padding-top: 0.75rem;
    }

    .lang-menu {
        position: static;
        display: block;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0.25rem 0 0;
        min-width: 0;
    }

    .lang-trigger {
        width: 100%;
        justify-content: center;
    }

    .hero-section {
        padding: 80px 15px 30px;
    }

    .hero-poster {
        max-width: 320px;
    }

    .poster-image {
        max-height: 45vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-date {
        font-size: 1.1rem;
    }

    .countdown-item {
        padding: 0.75rem 1rem;
        min-width: 65px;
    }

    .countdown-value {
        font-size: 1.8rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .info-section h2,
    .compos-section h2,
    .editions-section h2,
    .sponsors-section h2,
    .cta-final h2 {
        font-size: 2rem;
    }

    .sponsors-grid {
        gap: 1rem;
    }

    .sponsor-item {
        padding: 1rem 1.5rem;
    }

    .sponsor-logo {
        max-height: 45px;
        max-width: 140px;
    }
}

@media (max-width: 480px) {
    .countdown-timer {
        gap: 0.25rem;
    }

    .countdown-item {
        padding: 0.5rem 0.75rem;
        min-width: 55px;
    }

    .countdown-value {
        font-size: 1.5rem;
    }

    .countdown-unit {
        font-size: 0.65rem;
    }

    .effect-selector-bar {
        bottom: 15px;
        right: 15px;
        padding: 6px 12px;
    }

    .effect-selector-content {
        gap: 8px;
    }

    .effect-label {
        font-size: 0.75rem;
    }

    .effect-switch {
        width: 36px;
        height: 20px;
    }

    .effect-switch-slider:before {
        height: 14px;
        width: 14px;
    }

    .effect-switch input:checked + .effect-switch-slider:before {
        transform: translateX(16px);
    }

    .effect-dropdown {
        font-size: 0.75rem;
        min-width: 90px;
        padding: 4px 24px 4px 8px;
    }
}
