/* ============================================
   PAU DELOS — VOLLEYBALL CHAMPION
   Playful & Sporty Design — Blue, White & Black
   ============================================ */

/* --- CSS Variables --- */
:root {
    --blue-900: #0b1437;
    --blue-800: #0f1d4a;
    --blue-700: #162460;
    --blue-600: #1e3a8a;
    --blue-500: #2563eb;
    --blue-400: #3b82f6;
    --blue-300: #60a5fa;
    --blue-200: #93c5fd;
    --blue-100: #bfdbfe;
    --blue-50: #eff6ff;
    --white: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --black: #0a0a0a;
    --black-light: #1a1a1a;
    --accent-yellow: #facc15;
    --accent-orange: #fb923c;
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-bg-light: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-border-blue: rgba(59, 130, 246, 0.3);
    --shadow-blue: 0 0 40px rgba(37, 99, 235, 0.2);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.4);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --radius-full: 9999px;
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Playfair Display', serif;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--blue-900);
    color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Accent Text --- */
.gold-text {
    background: linear-gradient(135deg, var(--blue-200), var(--blue-400), var(--blue-200));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Glass Card --- */
.card-glass {
    background: var(--glass-bg-light);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: var(--bounce);
}

.card-glass:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: var(--glass-border-blue);
    box-shadow: var(--shadow-blue);
    transform: translateY(-6px) rotate(-0.5deg);
}

/* ============================================
   ANIMATED VOLLEYBALL BACKGROUND
   ============================================ */
body::before {
    content: '🏐';
    position: fixed;
    top: -60px;
    right: 10%;
    font-size: 10rem;
    opacity: 0.03;
    z-index: 0;
    animation: floatBall 20s ease-in-out infinite;
    pointer-events: none;
}

body::after {
    content: '🏐';
    position: fixed;
    bottom: -60px;
    left: 5%;
    font-size: 8rem;
    opacity: 0.03;
    z-index: 0;
    animation: floatBall2 25s ease-in-out infinite;
    pointer-events: none;
}

@keyframes floatBall {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-30px, 40px) rotate(90deg); }
    50% { transform: translate(20px, 80px) rotate(180deg); }
    75% { transform: translate(-10px, 30px) rotate(270deg); }
}

@keyframes floatBall2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(40px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, -60px) rotate(240deg); }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(11, 20, 55, 0.92);
    backdrop-filter: blur(20px);
    padding: 14px 40px;
    border-bottom: 2px solid var(--glass-border-blue);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 1.8rem;
    animation: spin-slow 4s linear infinite;
}

@keyframes spin-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--white);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--blue-200);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    position: relative;
    transition: var(--bounce);
}

.nav-links a:hover {
    color: var(--white);
    background: var(--blue-500);
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 28px;
    height: 3px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 4px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(96, 165, 250, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 90%, rgba(30, 58, 138, 0.3) 0%, transparent 50%),
        linear-gradient(180deg, var(--blue-900) 0%, var(--blue-800) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 80px,
            rgba(59, 130, 246, 0.03) 80px,
            rgba(59, 130, 246, 0.03) 82px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(59, 130, 246, 0.03) 80px,
            rgba(59, 130, 246, 0.03) 82px
        );
    z-index: 0;
}

/* Volleyball net decoration */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--blue-400) 0px,
        var(--blue-400) 20px,
        transparent 20px,
        transparent 30px
    );
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 20, 55, 0.4) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.hero-tag {
    display: inline-block;
    padding: 10px 28px;
    background: var(--blue-500);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 32px;
    box-shadow: 0 6px 30px rgba(37, 99, 235, 0.5);
    animation: tag-bounce 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2px;
    margin-bottom: 32px;
    color: var(--white);
    text-shadow: 0 0 60px rgba(59, 130, 246, 0.4),
                 0 4px 0 var(--blue-700);
    position: relative;
}

.hero-title .gold-text {
    background: linear-gradient(135deg, var(--blue-100), var(--blue-300), var(--accent-yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 0 rgba(30, 58, 138, 0.5));
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--blue-200);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--accent-yellow);
    font-weight: 700;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(37, 99, 235, 0.15);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    transition: var(--bounce);
}

.stat:hover {
    transform: scale(1.08) rotate(2deg);
    background: rgba(37, 99, 235, 0.25);
    border-color: var(--blue-400);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    font-family: var(--font-main);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--blue-300);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.stat-divider {
    width: 0;
    height: 0;
    display: none;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-400));
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    transition: var(--bounce);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.5);
    position: relative;
    overflow: hidden;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--blue-300), var(--blue-500), var(--accent-yellow), var(--blue-500));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.hero-cta:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 14px 40px rgba(37, 99, 235, 0.6);
}

.hero-cta:hover::before {
    opacity: 1;
}

.hero-cta .arrow {
    animation: bounce-down 1.2s infinite;
    font-size: 1.2rem;
}

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

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-line {
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, var(--blue-400), transparent);
    border-radius: 4px;
    animation: scroll-anim 2s infinite;
}

@keyframes scroll-anim {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
    padding: 120px 0;
    position: relative;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--blue-300);
    margin-bottom: 16px;
    background: rgba(59, 130, 246, 0.15);
    padding: 6px 20px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.section-tag::before,
.section-tag::after {
    content: '';
    margin: 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

/* ============================================
   HISTORIA SECTION
   ============================================ */
.historia-section {
    background:
        radial-gradient(ellipse at 80% 30%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, var(--blue-800) 0%, var(--blue-900) 100%);
}

/* Decorative volleyball court line */
.historia-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 60px;
    background: linear-gradient(180deg, var(--blue-400), transparent);
    border-radius: 4px;
}

.historia-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.historia-card {
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.historia-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: icon-wiggle 3s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.3s);
}

.historia-card:nth-child(1) .historia-icon { --i: 0; }
.historia-card:nth-child(2) .historia-icon { --i: 1; }
.historia-card:nth-child(3) .historia-icon { --i: 2; }
.historia-card:nth-child(4) .historia-icon { --i: 3; }

@keyframes icon-wiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(8deg) scale(1.1); }
    75% { transform: rotate(-8deg) scale(1.05); }
}

.historia-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--blue-200);
}

.historia-card p {
    color: var(--blue-100);
    font-size: 0.93rem;
    line-height: 1.8;
    opacity: 0.8;
}

.card-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-500), var(--blue-300), var(--accent-yellow));
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    opacity: 0;
    transition: var(--transition);
}

.historia-card:hover .card-accent {
    opacity: 1;
}

.historia-card:hover .historia-icon {
    animation: bounce-icon 0.5s ease;
}

@keyframes bounce-icon {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-16px); }
    60% { transform: translateY(-6px); }
}

/* ============================================
   PARALLAX QUOTE SECTION
   ============================================ */
.parallax-section {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    overflow: hidden;
}

.parallax-section::before {
    content: '🏐';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20rem;
    opacity: 0.04;
    animation: spin-slow 30s linear infinite;
    pointer-events: none;
}

.parallax-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.7), transparent 30%, transparent 70%, rgba(0, 0, 0, 0.7)),
        linear-gradient(180deg, var(--blue-900), transparent, var(--blue-900));
}

.parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 24px;
    max-width: 800px;
}

.big-quote {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 700;
    font-style: italic;
    line-height: 1.6;
    color: var(--white);
    margin-bottom: 24px;
    text-shadow: 0 0 40px rgba(59, 130, 246, 0.3);
}

.quote-author {
    font-size: 0.9rem;
    color: var(--blue-300);
    letter-spacing: 1px;
    font-weight: 600;
}

/* ============================================
   LOGROS / TIMELINE
   ============================================ */
.logros-section {
    background:
        radial-gradient(ellipse at 20% 70%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        var(--blue-900);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, transparent, var(--blue-500), var(--blue-400), var(--blue-500), transparent);
    border-radius: 4px;
    opacity: 0.4;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 48px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    text-align: right;
}

.timeline-year {
    flex-shrink: 0;
    width: 80px;
    font-family: var(--font-main);
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--blue-300);
    padding-top: 20px;
    position: relative;
}

.timeline-year::after {
    content: '🏐';
    position: absolute;
    font-size: 1.2rem;
    animation: spin-slow 6s linear infinite;
}

.timeline-item:nth-child(odd) .timeline-year::after {
    left: -38px;
    top: 22px;
}

.timeline-item:nth-child(even) .timeline-year::after {
    right: -38px;
    top: 22px;
}

.timeline-content {
    flex: 1;
    padding: 28px 32px;
}

.timeline-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--blue-200);
}

.timeline-content p {
    color: var(--blue-100);
    font-size: 0.9rem;
    line-height: 1.8;
    opacity: 0.8;
}

.highlight-card {
    border-color: var(--blue-400) !important;
    box-shadow: 0 0 50px rgba(37, 99, 235, 0.2);
    background: rgba(37, 99, 235, 0.12) !important;
}

.highlight-card h3 {
    font-size: 1.4rem !important;
    color: var(--accent-yellow) !important;
    text-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
}

/* ============================================
   MUNDIAL SECTION
   ============================================ */
.mundial-section {
    background:
        radial-gradient(ellipse at 60% 20%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
        linear-gradient(180deg, var(--blue-800), var(--blue-900));
}

.mundial-story {
    max-width: 900px;
    margin: 0 auto;
}

.mundial-chapter {
    display: flex;
    gap: 32px;
    margin-bottom: 48px;
    align-items: flex-start;
}

.chapter-number {
    flex-shrink: 0;
    font-family: var(--font-main);
    font-size: 4rem;
    font-weight: 900;
    color: var(--blue-500);
    opacity: 0.25;
    line-height: 1;
    padding-top: 20px;
    text-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
}

.chapter-content {
    padding: 36px;
}

.chapter-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--blue-200);
}

.chapter-content p {
    color: var(--blue-100);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 12px;
    opacity: 0.85;
}

.highlight-text {
    color: var(--white) !important;
    opacity: 1 !important;
    font-size: 1.05rem !important;
    background: rgba(37, 99, 235, 0.12);
    padding: 14px 18px;
    border-left: 4px solid var(--blue-400);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 16px 0 !important;
}

.chapter-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid var(--glass-border);
}

.chapter-stat .big-number {
    font-family: var(--font-main);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--blue-300);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.chapter-stat span:last-child {
    font-size: 0.85rem;
    color: var(--blue-200);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

.chapter-stat.golden {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.12), rgba(37, 99, 235, 0.1));
    padding: 20px 24px;
    border-radius: var(--radius-md);
    border-top: none;
    border: 2px solid rgba(250, 204, 21, 0.3);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(250, 204, 21, 0.1); }
    50% { box-shadow: 0 0 40px rgba(250, 204, 21, 0.25); }
}

.chapter-stat.golden span:last-child {
    color: var(--accent-yellow);
    font-weight: 800;
    font-size: 1rem;
}

.final-chapter {
    border-color: var(--blue-400) !important;
    background: rgba(37, 99, 235, 0.08) !important;
    position: relative;
    overflow: hidden;
}

.final-chapter::before {
    content: '🏆';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 3rem;
    opacity: 0.1;
}

.mundial-image-break {
    margin: 60px 0;
    text-align: center;
}

.mundial-img {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(37, 99, 235, 0.15);
    border: 3px solid var(--glass-border-blue);
    transition: var(--bounce);
}

.mundial-img:hover {
    transform: scale(1.02) rotate(-1deg);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5), 0 0 60px rgba(37, 99, 235, 0.25);
}

.img-caption {
    margin-top: 16px;
    font-size: 0.85rem;
    color: var(--blue-300);
    font-style: italic;
    font-weight: 500;
}

/* ============================================
   EMOTION SECTION
   ============================================ */
.emotion-section {
    padding: 120px 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        var(--black);
    text-align: center;
    position: relative;
}

.emotion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--blue-500) 0px,
        var(--blue-500) 20px,
        transparent 20px,
        transparent 30px
    );
}

.emotion-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        var(--blue-500) 0px,
        var(--blue-500) 20px,
        transparent 20px,
        transparent 30px
    );
}

.emotion-content {
    max-width: 750px;
    margin: 0 auto;
}

.emotion-icon {
    font-size: 5rem;
    margin-bottom: 32px;
    display: inline-block;
    animation: bounce-float 2s ease-in-out infinite;
}

@keyframes bounce-float {
    0%, 100% { transform: translateY(0) scale(1); }
    30% { transform: translateY(-20px) scale(1.1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

.emotion-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--white);
}

.emotion-content > p {
    color: var(--blue-200);
    font-size: 1.05rem;
    line-height: 1.9;
    margin-bottom: 20px;
    opacity: 0.85;
}

.emotion-quote {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    font-style: italic;
    color: var(--white);
    padding: 36px;
    margin: 32px 0;
    border: 2px solid var(--glass-border-blue);
    border-radius: var(--radius-lg);
    background: rgba(37, 99, 235, 0.08);
    position: relative;
    box-shadow: var(--shadow-blue);
}

.emotion-quote::before {
    content: '"';
    position: absolute;
    top: -24px;
    left: 20px;
    font-size: 6rem;
    color: var(--blue-500);
    opacity: 0.3;
    font-family: var(--font-display);
    line-height: 1;
}

/* ============================================
   LEGADO SECTION
   ============================================ */
.legado-section {
    background:
        radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        linear-gradient(180deg, var(--blue-800), var(--blue-900));
}

.legado-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.legado-card {
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legado-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(59, 130, 246, 0.05) 25%,
        transparent 50%
    );
    animation: rotate-bg 10s linear infinite;
    opacity: 0;
    transition: var(--transition);
}

.legado-card:hover::before {
    opacity: 1;
}

@keyframes rotate-bg {
    to { transform: rotate(360deg); }
}

.legado-emoji {
    font-size: 3.2rem;
    margin-bottom: 20px;
    display: inline-block;
    transition: var(--bounce);
    position: relative;
    z-index: 1;
}

.legado-card:hover .legado-emoji {
    transform: scale(1.3) rotate(-10deg) translateY(-8px);
}

.legado-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--blue-200);
    position: relative;
    z-index: 1;
}

.legado-card p {
    color: var(--blue-100);
    font-size: 0.92rem;
    line-height: 1.8;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 0 40px;
    background: var(--black);
    border-top: 4px solid var(--blue-600);
    text-align: center;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--blue-600), var(--blue-400), var(--accent-yellow), var(--blue-400), var(--blue-600));
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo .logo-icon {
    font-size: 2.5rem;
    animation: spin-slow 5s linear infinite;
}

.footer-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--white);
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
}

.footer-quote {
    font-style: italic;
    color: var(--blue-300);
    font-size: 0.95rem;
    max-width: 500px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    transition: var(--bounce);
}

.social-link:hover {
    background: var(--blue-500);
    border-color: var(--blue-400);
    transform: translateY(-6px) rotate(5deg) scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--blue-300);
    opacity: 0.4;
    margin-top: 16px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
.delay-4 { animation-delay: 0.7s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Reveal */
.reveal-left,
.reveal-right,
.reveal-up {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s var(--bounce);
}

.reveal-left { transform: translateX(-80px) rotate(-3deg); }
.reveal-right { transform: translateX(80px) rotate(3deg); }
.reveal-up { transform: translateY(60px) scale(0.95); }

.reveal-left.revealed,
.reveal-right.revealed,
.reveal-up.revealed {
    opacity: 1;
    transform: translate(0) rotate(0) scale(1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(11, 20, 55, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 12px 28px;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .hero-title {
        font-size: clamp(3rem, 15vw, 6rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: 14px;
    }

    .stat {
        width: 100%;
        max-width: 250px;
    }

    .historia-grid,
    .legado-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        text-align: left;
        padding-left: 50px;
    }

    .timeline-year {
        width: auto;
    }

    .timeline-year::after,
    .timeline-item:nth-child(odd) .timeline-year::after,
    .timeline-item:nth-child(even) .timeline-year::after {
        left: -38px;
        top: 2px;
    }

    .mundial-chapter {
        flex-direction: column;
        gap: 16px;
    }

    .chapter-number {
        font-size: 2.5rem;
        padding-top: 0;
    }

    .section {
        padding: 80px 0;
    }

    .navbar {
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .hero-subtitle br {
        display: none;
    }

    .chapter-content,
    .historia-card,
    .legado-card {
        padding: 24px;
    }

    .emotion-quote {
        font-size: 1.15rem;
        padding: 24px;
    }

    .big-quote {
        font-size: 1.05rem;
    }
}

/* ============================================
   FLOATING PARTICLES (Blue theme)
   ============================================ */
.particle {
    position: fixed;
    background: var(--blue-400);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: float-particle 10s infinite ease-in-out;
}

@keyframes float-particle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    15% { opacity: 0.5; }
    85% { opacity: 0.2; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}
