        :root {
            --primary: #5B4CF5;
            --secondary: #3D1F8C;
            --accent: #00E5C3;
            --accent-warm: #F5A623;
            --success: #00D4AA;
            --warning: #F5C842;
            --danger: #FF4D6D;
            --dark: #0D0E1A;
            --dark-mid: #1A1B2E;
            --light: #F0EEF8;
            --light-alt: #E8E5F5;
            --white: #ffffff;
            --text-primary: #1A1B2E;
            --text-secondary: #5C5F78;
            --text-muted: #9497B0;
            --glass: rgba(255, 255, 255, 0.12);
            --glass-border: rgba(255, 255, 255, 0.22);
            --glass-dark: rgba(13, 14, 26, 0.45);
            --shadow-soft: 0 8px 40px 0 rgba(91, 76, 245, 0.28);
            --shadow-hover: 0 20px 50px rgba(91, 76, 245, 0.35);
            --shadow-card: 0 2px 20px rgba(13, 14, 26, 0.08);
            --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
            --gradient-success: linear-gradient(135deg, var(--success) 0%, #0099FF 100%);
            --gradient-stem: linear-gradient(135deg, #FF4D6D 0%, var(--accent-warm) 100%);
            --gradient-club: linear-gradient(135deg, var(--accent) 0%, #0099FF 100%);
            --gradient-lab: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            --gradient-gold: linear-gradient(135deg, #F5A623 0%, #F5C842 100%);
            --border-subtle: rgba(91, 76, 245, 0.12);
            --border-glow: rgba(0, 229, 195, 0.4);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Space Grotesk', sans-serif;
            background: var(--dark);
            color: var(--text-primary);
            overflow-x: hidden;
            position: relative;
            padding-top: 80px;
        }

        /* Display/heading font — Syne reserved for titles, nav, logo, buttons */
        h1, h2, h3, h4, h5, h6,
        .logo, .section-title, .nav-link,
        .btn, .btn-primary, .btn-secondary,
        .hero h1, .hero h2, .hero-description,
        .card-title, .about-name, .about-title,
        .dropdown-item .item-title,
        .stat-label, .footer {
            font-family: 'Syne', sans-serif;
        }

        /* Grain noise overlay for depth */
        body::after {
            content: '';
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            pointer-events: none;
            z-index: 9999;
            opacity: 0.025;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
            background-size: 200px 200px;
        }

        /* Animated Background with Image */
        .animated-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
            background:
                linear-gradient(-45deg, rgba(91, 76, 245, 0.72), rgba(61, 31, 140, 0.78), rgba(0, 229, 195, 0.38), rgba(91, 76, 245, 0.68)),
                url('imagenes/stem-bg.png');
            background-size: 400% 400%, cover;
            background-position: 0% 50%, center center;
            background-repeat: no-repeat;
            background-attachment: fixed;
            animation: gradientShift 18s ease infinite;
        }

        /* Mathematical grid overlay */
        .animated-bg::after {
            content: '';
            position: absolute;
            inset: 0;
            background-image:
                linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
            background-size: 60px 60px;
            mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
        }

        @keyframes gradientShift {
            0%   { background-position: 0% 50%, center; }
            33%  { background-position: 60% 20%, center; }
            66%  { background-position: 100% 80%, center; }
            100% { background-position: 0% 50%, center; }
        }

        /* Floating Shapes */
        .floating-shapes {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: -1;
            overflow: hidden;
        }

        .shape {
            position: absolute;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            animation: float 20s infinite linear;
        }

        .shape:nth-child(1) {
            width: 80px;
            height: 80px;
            left: 10%;
            animation-delay: 0s;
        }

        .shape:nth-child(2) {
            width: 60px;
            height: 60px;
            left: 20%;
            animation-delay: 2s;
        }

        .shape:nth-child(3) {
            width: 100px;
            height: 100px;
            left: 80%;
            animation-delay: 4s;
        }

        .shape:nth-child(4) {
            width: 40px;
            height: 40px;
            left: 70%;
            animation-delay: 6s;
        }

        @keyframes float {
            0% {
                transform: translateY(100vh) rotate(0deg);
                opacity: 0;
            }
            10% {
                opacity: 1;
            }
            90% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100px) rotate(360deg);
                opacity: 0;
            }
        }

        /* Mathematical Particles System */
        .math-particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            overflow: hidden;
        }

        .math-particle {
            position: absolute;
            color: rgba(255, 255, 255, 0.6);
            font-family: 'Space Grotesk', monospace;
            font-weight: 500;
            pointer-events: none;
            animation: mathFloat linear infinite;
        }

        .math-particle.equation {
            font-family: 'DM Mono', monospace;
            font-size: clamp(13px, 1.8vw, 17px);
            color: rgba(91, 76, 245, 0.45);
        }

        .math-particle.symbol {
            font-size: clamp(20px, 3vw, 28px);
            color: rgba(0, 229, 195, 0.5);
        }

        .math-particle.number {
            font-family: 'DM Mono', monospace;
            font-size: clamp(15px, 2.2vw, 20px);
            color: rgba(245, 166, 35, 0.45);
        }

        .math-particle.greek {
            font-size: clamp(18px, 2.8vw, 24px);
            color: rgba(255, 255, 255, 0.4);
        }

        @keyframes mathFloat {
            0% {
                transform: translateY(100vh) translateX(0) rotate(0deg) scale(0.8);
                opacity: 0;
            }
            5% {
                opacity: 1;
            }
            50% {
                transform: translateY(50vh) translateX(var(--drift, 0px)) rotate(180deg) scale(1);
            }
            95% {
                opacity: 1;
            }
            100% {
                transform: translateY(-100px) translateX(calc(var(--drift, 0px) * 2)) rotate(360deg) scale(1.2);
                opacity: 0;
            }
        }

        /* Particle variants with different speeds */
        .math-particle.slow {
            animation-duration: 25s;
        }

        .math-particle.medium {
            animation-duration: 18s;
        }

        .math-particle.fast {
            animation-duration: 12s;
        }

        .math-particle.ultra-slow {
            animation-duration: 35s;
        }

        /* Header/Navbar Styles */
        /* ─── FLOATING PILL NAVBAR ────────────────────────────────── */
        .header {
            position: fixed;
            top: 14px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 40px);
            max-width: 1320px;
            background: rgba(240, 238, 248, 0.88);
            backdrop-filter: blur(28px) saturate(180%);
            -webkit-backdrop-filter: blur(28px) saturate(180%);
            border-radius: 9999px;
            border: 1px solid rgba(91, 76, 245, 0.14);
            z-index: 1000;
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 32px rgba(13, 14, 26, 0.09), 0 0 0 1px rgba(91, 76, 245, 0.05);
        }

        .header.scrolled {
            background: rgba(252, 250, 255, 0.96);
            box-shadow: 0 8px 48px rgba(13, 14, 26, 0.15), 0 0 0 1px rgba(91, 76, 245, 0.1);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.6rem;
            padding: 0.5rem 1.1rem;
        }

        .logo {
            font-family: 'Syne', sans-serif;
            font-size: 1.15rem;
            font-weight: 800;
            letter-spacing: -0.03em;
            background: var(--gradient-main);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-decoration: none;
            transition: opacity 0.2s ease;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .logo:hover { opacity: 0.82; }

        /* Sliding indicator (background pill that follows hover) */
        .nav-menu {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-wrap: nowrap;
            gap: 0.1rem;
            list-style: none;
            position: relative;
        }

        /* Wrapper for indicator + nav list */
        .nav-items-wrap {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            flex: 1 1 auto;
            min-width: 0;
        }

        .nav-indicator {
            position: absolute;
            height: 34px;
            border-radius: 9999px;
            background: rgba(91, 76, 245, 0.1);
            transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                        width 0.28s cubic-bezier(0.4, 0, 0.2, 1),
                        opacity 0.2s;
            pointer-events: none;
            opacity: 0;
            top: 50%;
            transform: translateY(-50%);
        }

        .nav-item {
            position: relative;
        }

        /* Hover bridge so dropdown does not close while crossing the gap */
        .nav-item::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            top: 100%;
            height: 22px;
        }

        .nav-link {
            display: flex;
            align-items: center;
            padding: 0.5rem 0.75rem;
            color: var(--text-secondary);
            text-decoration: none;
            font-family: 'Syne', sans-serif;
            font-weight: 600;
            font-size: 0.82rem;
            letter-spacing: 0.01em;
            border-radius: 9999px;
            transition: color 0.22s;
            white-space: nowrap;
            position: relative;
        }

        .nav-link:hover { color: var(--primary); }

        .nav-link i {
            margin-right: 0.35rem;
            font-size: 0.76rem;
        }

        .nav-link.has-dropdown::after {
            content: '\f107';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            margin-left: 0.35rem;
            font-size: 0.66rem;
            transition: transform 0.25s ease;
            opacity: 0.5;
        }

        .nav-item:hover .nav-link.has-dropdown::after {
            transform: rotate(180deg);
        }

        /* ─── MEGA MENU ───────────────────────────────────────────── */
        .dropdown {
            position: absolute;
            top: calc(100% + 12px);
            left: 50%;
            transform: translateX(-50%) translateY(-10px) scale(0.96);
            transform-origin: top center;
            background: rgba(252, 251, 255, 0.98);
            backdrop-filter: blur(28px);
            -webkit-backdrop-filter: blur(28px);
            border-radius: 22px;
            box-shadow: 0 8px 48px rgba(13, 14, 26, 0.13),
                        0 0 0 1px rgba(91, 76, 245, 0.09);
            opacity: 0;
            visibility: hidden;
            transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
            min-width: 430px;
            padding: 0.7rem;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.3rem;
            z-index: 999;
        }

        .dropdown.narrow {
            min-width: 260px;
            grid-template-columns: 1fr;
        }

        .nav-item:hover .dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0) scale(1);
        }

        /* Mega menu item with icon box */
        .dropdown-item {
            display: flex;
            align-items: flex-start;
            gap: 0.65rem;
            padding: 0.65rem 0.75rem;
            color: var(--text-secondary);
            text-decoration: none;
            border-radius: 13px;
            transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .dropdown-item:hover {
            background: rgba(91, 76, 245, 0.07);
            color: var(--primary);
        }

        .item-icon {
            width: 36px;
            height: 36px;
            border-radius: 10px;
            background: rgba(91, 76, 245, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.85rem;
            flex-shrink: 0;
            color: var(--primary);
            transition: background 0.18s;
        }

        .dropdown-item:hover .item-icon {
            background: rgba(91, 76, 245, 0.18);
        }

        .item-text { min-width: 0; }

        .item-title {
            display: block;
            font-family: 'Syne', sans-serif;
            font-weight: 700;
            font-size: 0.82rem;
            line-height: 1.2;
            color: inherit;
        }

        .item-desc {
            display: block;
            font-size: 0.75rem;
            color: #9a99ab;
            margin-top: 0.15rem;
            line-height: 1.35;
        }

        /* Section color variants */
        .dropdown.stem .item-icon { background: rgba(255,77,109,0.1); color: #FF4D6D; }
        .dropdown.stem .dropdown-item:hover .item-icon { background: rgba(255,77,109,0.2); }
        .dropdown.stem .dropdown-item:hover { background: rgba(255,77,109,0.05); color: #FF4D6D; }

        .dropdown.club .item-icon { background: rgba(0,229,195,0.12); color: var(--accent); }
        .dropdown.club .dropdown-item:hover .item-icon { background: rgba(0,229,195,0.22); }
        .dropdown.club .dropdown-item:hover { background: rgba(0,229,195,0.06); color: var(--accent); }

        .dropdown.games .item-icon { background: rgba(255,215,64,0.15); color: #b8860b; }
        .dropdown.games .dropdown-item:hover .item-icon { background: rgba(255,215,64,0.3); }
        .dropdown.games .dropdown-item:hover { background: rgba(255,215,64,0.08); color: #b8860b; }

        /* Overlay for closing mobile menu on outside tap */
        .menu-overlay {
            display: none;
            position: fixed;
            inset: 0;
            z-index: 998;
            background: transparent;
        }
        .menu-overlay.active { display: block; }

        /* Mobile toggle */
        .mobile-toggle {
            display: none;
            flex-direction: column;
            cursor: pointer;
            padding: 0.45rem;
            border-radius: 10px;
        }

        .mobile-toggle span {
            width: 22px;
            height: 2px;
            background: var(--primary);
            margin: 3px 0;
            transition: 0.3s;
            border-radius: 2px;
        }

        /* Hero Section */
        .hero {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            position: relative;
            padding: 6rem 2rem 2rem;
        }

        .hero-content {
            backdrop-filter: blur(28px) saturate(160%);
            -webkit-backdrop-filter: blur(28px) saturate(160%);
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.28);
            border-radius: 28px;
            padding: 4.5rem 3.5rem;
            box-shadow:
                0 0 0 1px rgba(255,255,255,0.1) inset,
                0 24px 64px rgba(13, 14, 26, 0.4),
                0 4px 16px rgba(91, 76, 245, 0.2);
            max-width: 800px;
            width: 100%;
            position: relative;
            overflow: hidden;
        }

        /* Decorative top accent line */
        .hero-content::before {
            content: '';
            position: absolute;
            top: 0; left: 10%; right: 10%;
            height: 2px;
            background: linear-gradient(90deg, transparent, rgba(0, 229, 195, 0.8), rgba(91, 76, 245, 0.8), transparent);
            border-radius: 0 0 2px 2px;
        }

        /* Shimmer sweep */
        .hero-content::after {
            content: '';
            position: absolute;
            top: -80%;
            left: -60%;
            width: 50%;
            height: 200%;
            background: linear-gradient(100deg, transparent, rgba(255,255,255,0.07), transparent);
            transform: skewX(-15deg);
            animation: shimmer 4s ease-in-out infinite;
        }

        @keyframes shimmer {
            0%   { left: -60%; opacity: 0; }
            20%  { opacity: 1; }
            80%  { opacity: 1; }
            100% { left: 120%; opacity: 0; }
        }

        .hero h1 {
            font-family: 'Syne', sans-serif;
            font-size: clamp(1.8rem, 4.8vw, 3.4rem);
            font-weight: 800;
            letter-spacing: -0.04em;
            background: var(--gradient-main);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 0.85rem;
            position: relative;
            z-index: 2;
            min-height: 1.2em;
            line-height: 1.15;
        }

        .hero h2 {
            font-family: 'Syne', sans-serif;
            color: rgba(0, 229, 195, 0.95);
            margin-bottom: 0.5rem;
            font-weight: 600;
            letter-spacing: 0.02em;
            text-transform: uppercase;
            font-size: clamp(0.85rem, 1.8vw, 1.1rem);
            position: relative;
            z-index: 2;
            min-height: 1.2em;
        }

        .hero h3 {
            font-family: 'DM Mono', monospace;
            font-size: clamp(0.9rem, 1.8vw, 1.2rem);
            color: rgba(255,255,255,0.75);
            margin-bottom: 2.2rem;
            font-weight: 400;
            letter-spacing: 0.04em;
            position: relative;
            z-index: 2;
            min-height: 1.2em;
        }

        .hero-description {
            font-family: 'Syne', sans-serif;
            font-size: 1.05rem;
            font-weight: 400;
            color: rgba(255,255,255,0.85);
            line-height: 1.7;
            max-width: 600px;
            margin: 0 auto;
            position: relative;
            z-index: 2;
            min-height: 2.4em;
        }

        /* Typewriter Effect */
        .typewriter {
            overflow: hidden;
            border-right: 3px solid rgba(255,255,255,0.8);
            white-space: nowrap;
            animation: blink-caret 1s infinite;
            position: relative;
        }

        .typewriter.typing {
            border-right: 3px solid rgba(255,255,255,0.8);
            animation: blink-caret 1s infinite;
        }

        .typewriter.typing::after {
            content: '';
            position: absolute;
            right: -10px;
            top: 50%;
            transform: translateY(-50%);
            width: 2px;
            height: 80%;
            background: rgba(255,255,255,0.4);
            animation: typingGlow 0.1s infinite alternate;
        }

        .typewriter.finished {
            border-right: none;
            animation: none;
            white-space: normal;
            overflow: visible;
        }

        @keyframes blink-caret {
            from, to { border-color: transparent; }
            50% { border-color: rgba(255,255,255,0.8); }
        }

        @keyframes typingGlow {
            from { box-shadow: 0 0 5px rgba(255,255,255,0.8); }
            to { box-shadow: 0 0 15px rgba(102, 126, 234, 0.8), 0 0 25px rgba(102, 126, 234, 0.4); }
        }

        /* Typewriter variants for different elements */
        .typewriter-title {
            border-right: 3px solid #5B4CF5;
            animation: blink-caret-blue 1s infinite;
        }

        .typewriter-title.typing {
            border-right: 3px solid #5B4CF5;
            animation: blink-caret-blue 0.8s infinite;
        }

        .typewriter-subtitle {
            border-right: 2px solid #00E5C3;
            animation: blink-caret-pink 1s infinite;
        }

        .typewriter-subtitle.typing {
            border-right: 2px solid #00E5C3;
            animation: blink-caret-pink 0.9s infinite;
        }

        .typewriter-name {
            border-right: 2px solid #F5A623;
            animation: blink-caret-teal 1s infinite;
        }

        .typewriter-name.typing {
            border-right: 2px solid #F5A623;
            animation: blink-caret-teal 1.1s infinite;
        }

        .typewriter-description {
            border-right: 2px solid rgba(255,255,255,0.5);
            white-space: normal;
            overflow: visible;
            animation: blink-caret 1.2s infinite;
        }

        @keyframes blink-caret-blue {
            from, to { border-color: transparent; }
            50% { border-color: #5B4CF5; box-shadow: 0 0 12px rgba(91, 76, 245, 0.6); }
        }

        @keyframes blink-caret-pink {
            from, to { border-color: transparent; }
            50% { border-color: #00E5C3; box-shadow: 0 0 12px rgba(0, 229, 195, 0.6); }
        }

        @keyframes blink-caret-teal {
            from, to { border-color: transparent; }
            50% { border-color: #F5A623; box-shadow: 0 0 12px rgba(245, 166, 35, 0.6); }
        }

        /* Text reveal animation */
        .text-reveal {
            animation: textReveal 0.1s ease-out forwards;
        }

        @keyframes textReveal {
            from { 
                opacity: 0; 
                transform: translateY(5px);
            }
            to { 
                opacity: 1; 
                transform: translateY(0);
            }
        }

        /* Main Content */
        .main-content {
            background: var(--light);
            border-radius: 40px 40px 0 0;
            margin-top: 2rem;
            position: relative;
            z-index: 10;
            /* Subtle dot grid texture */
            background-image:
                radial-gradient(circle, rgba(91, 76, 245, 0.08) 1px, transparent 1px);
            background-size: 28px 28px;
            background-color: var(--light);
        }

        .section {
            padding: 5rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
        }

        .section-title {
            font-family: 'Syne', sans-serif;
            font-size: clamp(2.2rem, 4vw, 3.4rem);
            font-weight: 800;
            letter-spacing: -0.04em;
            text-align: center;
            margin-bottom: 3.5rem;
            background: var(--gradient-main);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            position: relative;
            line-height: 1.15;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -12px;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 99px;
        }

        /* About Section */
        .about-container {
            position: relative;
            display: grid;
            grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
            gap: clamp(1.5rem, 3.2vw, 3rem);
            align-items: center;
            margin-bottom: 4rem;
            padding: clamp(1.2rem, 2.6vw, 2rem);
            border-radius: 30px;
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(240, 238, 248, 0.94));
            border: 1px solid rgba(91, 76, 245, 0.12);
            box-shadow: 0 18px 52px rgba(13, 14, 26, 0.08), 0 4px 18px rgba(91, 76, 245, 0.1);
            overflow: hidden;
        }

        .about-container::before {
            content: '';
            position: absolute;
            top: -120px;
            right: -90px;
            width: 280px;
            height: 280px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(91, 76, 245, 0.18) 0%, rgba(91, 76, 245, 0) 70%);
            pointer-events: none;
        }

        .about-container::after {
            content: '';
            position: absolute;
            bottom: -140px;
            left: -80px;
            width: 260px;
            height: 260px;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(0, 229, 195, 0.14) 0%, rgba(0, 229, 195, 0) 72%);
            pointer-events: none;
        }

        .about-container > * {
            position: relative;
            z-index: 1;
        }

        /* NUEVA SECCIÓN DE ESTADÍSTICAS CON SUPABASE */
        /* Estilos modernos para la sección de estadísticas */
        .stats-section {
            background: rgba(255, 255, 255, 0.88);
            backdrop-filter: blur(24px);
            border-radius: 24px;
            padding: 2.5rem;
            margin: 3rem 0;
            box-shadow:
                0 0 0 1px rgba(91, 76, 245, 0.08),
                0 8px 40px rgba(91, 76, 245, 0.08),
                0 1px 2px rgba(13, 14, 26, 0.04);
            border: 1px solid rgba(91, 76, 245, 0.08);
            position: relative;
            overflow: hidden;
        }

        .stats-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-warm), var(--primary));
            background-size: 300% 100%;
            animation: gradientSlide 4s ease infinite;
        }

        @keyframes gradientSlide {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .stats-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .live-indicator {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            color: var(--accent);
            font-family: 'DM Mono', monospace;
            font-weight: 500;
            font-size: 0.82rem;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            margin-top: 0.5rem;
        }

        .pulse-dot {
            width: 8px;
            height: 8px;
            background: var(--accent);
            border-radius: 50%;
            animation: pulse 2s infinite;
        }

        .pulse-dot-small {
            width: 6px;
            height: 6px;
            background: var(--accent);
            border-radius: 50%;
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% { opacity: 1; transform: scale(1); }
            50% { opacity: 0.5; transform: scale(1.2); }
            100% { opacity: 1; transform: scale(1); }
        }

        /* Contador Principal Heroico */
        .visitor-hero {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            border-radius: 20px;
            padding: 2.5rem;
            margin-bottom: 2rem;
            color: white;
            position: relative;
            overflow: hidden;
            box-shadow: 0 8px 32px rgba(91, 76, 245, 0.35), 0 2px 8px rgba(13, 14, 26, 0.15);
        }

        .visitor-hero::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), rgba(0, 229, 195, 0.5), rgba(255,255,255,0.35), transparent);
        }

        .visitor-hero::after {
            content: '';
            position: absolute;
            top: -60%;
            right: -10%;
            width: 40%;
            height: 160%;
            background: linear-gradient(100deg, transparent, rgba(255,255,255,0.05), transparent);
            transform: skewX(-15deg);
            animation: shimmer 5s ease-in-out infinite;
        }

        .main-counter {
            display: flex;
            align-items: center;
            gap: 2rem;
            position: relative;
            z-index: 2;
        }

        .counter-icon {
            font-size: 4rem;
            opacity: 0.8;
        }

        .counter-content {
            flex: 1;
        }

        .big-number {
            font-family: 'Syne', sans-serif;
            font-size: 4.5rem;
            font-weight: 800;
            letter-spacing: -0.05em;
            line-height: 1;
            margin-bottom: 0.4rem;
        }

        .counter-label {
            font-family: 'Syne', sans-serif;
            font-size: 1.2rem;
            font-weight: 600;
            letter-spacing: -0.01em;
            margin-bottom: 0.25rem;
        }

        .counter-subtitle {
            font-size: 0.88rem;
            opacity: 0.75;
        }

        .growth-indicator {
            background: rgba(255, 255, 255, 0.14);
            border: 1px solid rgba(255, 255, 255, 0.18);
            padding: 1rem 1.5rem;
            border-radius: 14px;
            text-align: center;
            backdrop-filter: blur(10px);
        }

        .growth-indicator i {
            color: var(--accent);
            margin-right: 0.5rem;
        }

        /* Grid de Estadísticas Modernas */
        .modern-stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(16px);
            border-radius: 18px;
            padding: 1.5rem;
            border: 1px solid rgba(91, 76, 245, 0.08);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(13, 14, 26, 0.04), 0 4px 12px rgba(91, 76, 245, 0.04);
        }

        .stat-card::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 18px;
            opacity: 0;
            transition: opacity 0.3s ease;
            background: radial-gradient(circle at 50% 0%, rgba(91, 76, 245, 0.06), transparent 70%);
            pointer-events: none;
        }

        .stat-card:hover {
            transform: translateY(-6px) scale(1.01);
            box-shadow: 0 16px 48px rgba(91, 76, 245, 0.16), 0 4px 12px rgba(13, 14, 26, 0.06);
            border-color: rgba(91, 76, 245, 0.18);
        }

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

        /* Poll Card */
        .poll-title {
            font-family: 'Syne', sans-serif;
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 1rem;
            letter-spacing: -0.01em;
        }

        .poll-options {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
        }

        .poll-option {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.5rem 0.75rem;
            border-radius: 10px;
            border: 1.5px solid rgba(91, 76, 245, 0.15);
            background: rgba(91, 76, 245, 0.04);
            color: var(--text-secondary);
            font-family: 'Syne', sans-serif;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            text-align: left;
        }

        .poll-option:hover {
            background: rgba(91, 76, 245, 0.1);
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-2px);
        }

        .poll-option i {
            font-size: 0.85rem;
            color: var(--primary);
            flex-shrink: 0;
        }

        .poll-voted {
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            padding: 1rem 0;
            text-align: center;
        }

        .poll-voted-icon {
            font-size: 2.2rem;
            color: var(--success);
        }

        .poll-voted-text {
            font-family: 'Syne', sans-serif;
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-primary);
        }

        .poll-voted-choice {
            font-family: 'DM Mono', monospace;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--primary);
            background: rgba(91, 76, 245, 0.08);
            border: 1px solid rgba(91, 76, 245, 0.15);
            padding: 0.3rem 0.9rem;
            border-radius: 99px;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
        }

        .stat-icon {
            font-size: 1.6rem;
            color: var(--primary);
            background: rgba(91, 76, 245, 0.1);
            width: 44px;
            height: 44px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .live-badge, .change-indicator, .quality-badge, .geo-badge {
            padding: 0.22rem 0.65rem;
            border-radius: 8px;
            font-family: 'DM Mono', monospace;
            font-size: 0.65rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.06em;
        }

        .live-badge {
            background: rgba(0, 212, 170, 0.12);
            color: var(--success);
            border: 1px solid rgba(0, 212, 170, 0.25);
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .change-indicator.positive {
            background: rgba(0, 212, 170, 0.12);
            color: var(--success);
            border: 1px solid rgba(0, 212, 170, 0.25);
        }

        .quality-badge {
            background: rgba(245, 166, 35, 0.12);
            color: var(--accent-warm);
            border: 1px solid rgba(245, 166, 35, 0.25);
        }

        .geo-badge {
            background: rgba(91, 76, 245, 0.1);
            color: var(--primary);
            border: 1px solid rgba(91, 76, 245, 0.2);
        }

        .stat-number {
            font-family: 'Syne', sans-serif;
            font-size: 2.4rem;
            font-weight: 800;
            letter-spacing: -0.04em;
            color: var(--text-primary);
            margin-bottom: 0.35rem;
            line-height: 1;
        }

        .unit {
            font-size: 1.1rem;
            font-weight: 500;
            color: var(--text-secondary);
            letter-spacing: -0.01em;
        }

        .stat-label {
            font-family: 'Syne', sans-serif;
            font-size: 0.95rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.2rem;
        }

        .stat-subtitle {
            font-size: 0.82rem;
            color: var(--text-muted);
        }

        /* Mini Charts y Visualizaciones */
        .mini-chart, .device-chart {
            margin-top: 1rem;
        }

        .device-chart {
            padding: 0.6rem 0.5rem 0.35rem;
            border-radius: 12px;
            border: 1px solid rgba(91, 76, 245, 0.12);
            background: linear-gradient(180deg, rgba(91, 76, 245, 0.08), rgba(91, 76, 245, 0.02));
        }

        .device-chart canvas {
            width: 100%;
            height: 94px;
            display: block;
        }

        .dark-mode .device-chart {
            border-color: rgba(139, 156, 247, 0.32);
            background: linear-gradient(180deg, rgba(91, 76, 245, 0.24), rgba(91, 76, 245, 0.08));
        }

        .progress-bar {
            width: 100%;
            height: 5px;
            background: rgba(91, 76, 245, 0.08);
            border-radius: 99px;
            margin-top: 1rem;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 99px;
            transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .engagement-bar {
            width: 100%;
            height: 6px;
            background: rgba(91, 76, 245, 0.08);
            border-radius: 99px;
            margin-top: 1rem;
            overflow: hidden;
        }

        .engagement-level {
            height: 100%;
            border-radius: 99px;
            transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .engagement-level.excellent {
            background: linear-gradient(90deg, var(--accent), #00e5a0);
        }

        /* Páginas Populares */
        .popular-pages {
            margin-top: 1rem;
        }

        .page-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem 0;
            border-bottom: 1px solid rgba(91, 76, 245, 0.06);
            font-size: 0.85rem;
        }

        .page-item:last-child {
            border-bottom: none;
        }

        .page-name {
            color: var(--text-primary);
            font-weight: 500;
            font-size: 0.82rem;
        }

        .page-views {
            color: var(--primary);
            font-family: 'DM Mono', monospace;
            font-weight: 500;
            font-size: 0.8rem;
        }

        /* Dispositivos */
        .device-switch {
            display: flex;
            gap: 0.25rem;
        }

        .device-btn {
            background: transparent;
            border: 1px solid rgba(91, 76, 245, 0.15);
            border-radius: 8px;
            padding: 0.45rem 0.6rem;
            cursor: pointer;
            color: var(--text-muted);
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 0.85rem;
        }

        .device-btn.active {
            background: var(--primary);
            color: white;
            border-color: var(--primary);
            box-shadow: 0 2px 8px rgba(91, 76, 245, 0.3);
        }

        .device-stats {
            position: relative;
            margin: 1rem 0;
        }

        .device-stat {
            display: none;
            text-align: center;
        }

        .device-stat.active {
            display: block;
        }

        /* Países */
        .countries-list {
            margin-top: 1rem;
        }

        .country-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.65rem 0;
            border-bottom: 1px solid rgba(91, 76, 245, 0.06);
        }

        .country-item:last-child {
            border-bottom: none;
        }

        .flag {
            font-size: 1.2rem;
        }

        .country-info {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .country-name {
            font-size: 0.84rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .country-percentage {
            font-family: 'DM Mono', monospace;
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--primary);
        }

        .country-bar {
            width: 60px;
            height: 3px;
            background: rgba(91, 76, 245, 0.1);
            border-radius: 99px;
            overflow: hidden;
        }

        .bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            border-radius: 99px;
            transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        }

        /* Insights de IA */
        .insights-section {
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 2px dashed rgba(102, 126, 234, 0.2);
        }

        .insights-title {
            font-family: 'Space Grotesk', sans-serif;
            font-size: 1.4rem;
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 1rem;
            text-align: center;
        }

        .insights-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1rem;
        }

        .insight-card {
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            padding: 1.25rem 1.5rem;
            border-radius: 14px;
            background: rgba(255, 255, 255, 0.8);
            border-left: 3px solid;
            transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
            margin-bottom: 0.85rem;
        }

        .insight-card.positive {
            border-left-color: var(--accent);
            background: rgba(0, 212, 170, 0.06);
        }

        .insight-card.info {
            border-left-color: var(--primary);
            background: rgba(91, 76, 245, 0.06);
        }

        .insight-card.neutral {
            border-left-color: var(--accent-warm);
            background: rgba(245, 166, 35, 0.06);
        }

        .insight-card:hover {
            transform: translateX(4px);
            box-shadow: 0 4px 16px rgba(91, 76, 245, 0.1);
        }

        .insight-icon {
            font-size: 1.3rem;
            margin-top: 0.1rem;
            flex-shrink: 0;
        }

        .insight-card.positive .insight-icon { color: var(--success); }
        .insight-card.info .insight-icon { color: var(--primary); }
        .insight-card.neutral .insight-icon { color: var(--accent-warm); }

        .insight-content p {
            font-size: 0.87rem;
            line-height: 1.6;
            color: var(--text-secondary);
            margin: 0;
        }

        /* Privacy Notice */
        .privacy-notice {
            margin-top: 2rem;
            padding-top: 1.5rem;
            border-top: 1px solid rgba(91, 76, 245, 0.08);
        }

        .privacy-content {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            color: var(--text-muted);
            font-size: 0.82rem;
            text-align: center;
        }

        .privacy-content i {
            color: var(--accent);
        }

        /* Animaciones de conteo */
        .counting-number {
            display: inline-block;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .counting-number.updating {
            color: var(--accent);
            transform: scale(1.06);
        }

        /* Efectos especiales para números */
        @keyframes numberPop {
            0% { transform: scale(1); }
            50% { transform: scale(1.12); color: var(--accent); }
            100% { transform: scale(1); }
        }

        .stat-number .counter.updating {
            animation: numberPop 0.6s ease;
        }
        /* FIN NUEVA SECCIÓN DE ESTADÍSTICAS */

        .profile-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 24px;
            padding: clamp(1.4rem, 2.2vw, 2rem);
            box-shadow: 0 12px 30px rgba(13, 14, 26, 0.08), 0 3px 10px rgba(91, 76, 245, 0.1);
            text-align: center;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(91, 76, 245, 0.14);
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                        box-shadow 0.35s ease,
                        border-color 0.35s ease;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start;
            min-height: auto;
            width: 100%;
            max-width: 360px;
            margin-inline: auto;
            isolation: isolate;
        }

        .profile-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 44px rgba(91, 76, 245, 0.2), 0 8px 18px rgba(13, 14, 26, 0.08);
            border-color: rgba(91, 76, 245, 0.24);
        }

        .profile-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
        }

        .profile-card::after {
            content: '';
            position: absolute;
            bottom: -70px;
            left: 50%;
            transform: translateX(-50%);
            width: 180px;
            height: 120px;
            background: radial-gradient(circle, rgba(91, 76, 245, 0.2) 0%, rgba(91, 76, 245, 0) 70%);
            pointer-events: none;
            z-index: 0;
        }

        .profile-card > * {
            position: relative;
            z-index: 1;
        }

        .profile-img {
            width: clamp(145px, 14vw, 176px);
            height: clamp(145px, 14vw, 176px);
            border-radius: 50%;
            object-fit: cover;
            margin-bottom: 1.2rem;
            border: 3px solid rgba(91, 76, 245, 0.2);
            outline: 1px solid rgba(255, 255, 255, 0.95);
            outline-offset: 2px;
            box-shadow: 0 10px 30px rgba(91, 76, 245, 0.22), 0 2px 8px rgba(13, 14, 26, 0.1);
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
        }

        .profile-img:hover {
            transform: scale(1.06);
            box-shadow: 0 16px 48px rgba(91, 76, 245, 0.3);
        }

        .profile-name-link {
            text-decoration: none;
            display: block;
        }

        .profile-name-link:hover .profile-name {
            color: var(--primary);
        }

        .profile-name {
            font-family: 'Syne', sans-serif;
            font-size: clamp(1.2rem, 1.9vw, 1.45rem);
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            margin-bottom: 0.55rem;
            transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
        }

        .profile-title {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.35rem 0.85rem;
            border-radius: 999px;
            color: var(--primary);
            font-size: 0.74rem;
            font-weight: 700;
            letter-spacing: 0.08em;
            text-transform: uppercase;
            background: rgba(91, 76, 245, 0.09);
            border: 1px solid rgba(91, 76, 245, 0.18);
            margin-bottom: 0;
        }

        .profile-badges {
            margin-top: 0.9rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            gap: 0.45rem;
        }

        .profile-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0.28rem 0.7rem;
            border-radius: 999px;
            font-family: 'DM Mono', monospace;
            font-size: 0.68rem;
            font-weight: 600;
            letter-spacing: 0.04em;
            color: var(--text-primary);
            background: rgba(91, 76, 245, 0.08);
            border: 1px solid rgba(91, 76, 245, 0.18);
            box-shadow: 0 2px 8px rgba(91, 76, 245, 0.08);
        }

        .credentials {
            display: flex;
            flex-direction: column;
            gap: 0.4rem;
        }

        .credential-item {
            background: rgba(91, 76, 245, 0.07);
            color: var(--primary);
            border: 1px solid rgba(91, 76, 245, 0.15);
            padding: 0.45rem 1rem;
            border-radius: 10px;
            font-size: 0.82rem;
            font-weight: 600;
            letter-spacing: 0.01em;
        }

        .about-text {
            display: flex;
            flex-direction: column;
            gap: 1.1rem;
            justify-content: center;
        }

        .text-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 18px;
            padding: clamp(1.2rem, 2vw, 1.75rem) clamp(1.3rem, 2.4vw, 2rem);
            box-shadow: 0 10px 30px rgba(13, 14, 26, 0.06), 0 2px 8px rgba(91, 76, 245, 0.08);
            border: 1px solid rgba(91, 76, 245, 0.1);
            position: relative;
            overflow: hidden;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                        box-shadow 0.3s ease,
                        border-color 0.3s ease;
        }

        .text-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            bottom: 0;
            width: 3px;
            background: linear-gradient(180deg, var(--primary), var(--accent));
        }

        .text-card:hover {
            transform: translateY(-3px) translateX(2px);
            box-shadow: 0 16px 40px rgba(91, 76, 245, 0.14), 0 4px 12px rgba(13, 14, 26, 0.06);
            border-color: rgba(91, 76, 245, 0.2);
        }

        .text-card p {
            font-size: clamp(0.98rem, 1.2vw, 1.05rem);
            line-height: 1.8;
            color: var(--text-secondary);
            margin: 0;
        }

        .about-text .text-card:first-child p {
            color: var(--text-primary);
            font-weight: 500;
        }

        /* Gallery Section */
        .gallery-header {
            text-align: center;
            margin-bottom: 3rem;
        }

        .project-description {
            background: var(--white);
            border-radius: 28px;
            padding: 3rem 3.5rem;
            margin-bottom: 3rem;
            box-shadow: var(--shadow-soft);
            border: 1px solid rgba(91, 76, 245, 0.08);
            position: relative;
            overflow: hidden;
        }

        .project-description::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-warm));
        }

        .project-description::after {
            content: '"';
            position: absolute;
            top: 1.5rem;
            right: 2.5rem;
            font-size: 8rem;
            line-height: 1;
            font-family: 'Syne', sans-serif;
            font-weight: 800;
            color: rgba(91, 76, 245, 0.06);
            pointer-events: none;
        }

        .project-meta {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            margin-bottom: 1.5rem;
        }

        .project-meta-tag {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: rgba(91, 76, 245, 0.07);
            color: var(--primary);
            border: 1px solid rgba(91, 76, 245, 0.15);
            padding: 0.35rem 0.9rem;
            border-radius: 99px;
            font-family: 'DM Mono', monospace;
            font-size: 0.75rem;
            font-weight: 500;
            letter-spacing: 0.04em;
        }

        .project-meta-tag.accent {
            background: rgba(0, 229, 195, 0.08);
            color: var(--accent);
            border-color: rgba(0, 229, 195, 0.2);
        }

        .project-description-lead {
            font-family: 'Syne', sans-serif;
            font-size: 1.35rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            color: var(--text-primary);
            line-height: 1.4;
            margin-bottom: 1rem;
        }

        .project-description-body {
            font-size: 1.05rem;
            line-height: 1.85;
            color: var(--text-secondary);
        }

        .project-description-body strong {
            color: var(--primary);
            font-weight: 600;
        }

        .project-date {
            display: inline-block;
            background: rgba(0, 212, 170, 0.12);
            color: var(--success);
            border: 1px solid rgba(0, 212, 170, 0.25);
            padding: 0.4rem 1.2rem;
            border-radius: 99px;
            font-family: 'DM Mono', monospace;
            font-weight: 500;
            font-size: 0.8rem;
            letter-spacing: 0.04em;
            margin-bottom: 1rem;
        }

        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
            margin-top: 3rem;
        }

        .gallery-item {
            display: block;
            background: var(--white);
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 2px 16px rgba(91, 76, 245, 0.08), 0 1px 3px rgba(13, 14, 26, 0.04);
            transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            cursor: pointer;
            border: 1px solid rgba(91, 76, 245, 0.06);
            text-decoration: none;
            color: inherit;
        }

        .gallery-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(160deg, rgba(91, 76, 245, 0.85), rgba(0, 229, 195, 0.75));
            opacity: 0;
            transition: opacity 0.35s ease;
            z-index: 1;
        }

        .gallery-item:hover::before {
            opacity: 0.88;
        }

        .gallery-item:hover {
            transform: translateY(-8px);
            box-shadow: 0 24px 56px rgba(91, 76, 245, 0.2), 0 4px 12px rgba(13, 14, 26, 0.08);
        }

        .gallery-img {
            width: 100%;
            height: 280px;
            object-fit: cover;
            transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .gallery-item:hover .gallery-img {
            transform: scale(1.08);
        }

        .gallery-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) translateY(8px);
            color: var(--white);
            text-align: center;
            opacity: 0;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 2;
        }

        .gallery-item:hover .gallery-overlay {
            opacity: 1;
            transform: translate(-50%, -50%) translateY(0);
        }

        .gallery-overlay i {
            font-size: 2.5rem;
            margin-bottom: 0.75rem;
        }

        .gallery-overlay p {
            font-family: 'Syne', sans-serif;
            font-size: 1rem;
            font-weight: 600;
        }

        .gallery-teaser-actions {
            margin-top: 1.8rem;
            display: flex;
            justify-content: center;
        }

        .gallery-cta {
            display: inline-flex;
            align-items: center;
            gap: 0.55rem;
            padding: 0.75rem 1.3rem;
            border-radius: 999px;
            background: var(--gradient-main);
            color: var(--white);
            font-family: 'Syne', sans-serif;
            font-weight: 700;
            font-size: 0.9rem;
            letter-spacing: 0.01em;
            text-decoration: none;
            border: 1px solid rgba(91, 76, 245, 0.4);
            box-shadow: 0 10px 26px rgba(91, 76, 245, 0.26);
            transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
        }

        .gallery-cta:hover {
            transform: translateY(-2px);
            filter: brightness(1.03);
            box-shadow: 0 16px 32px rgba(91, 76, 245, 0.32);
        }

        /* Modal */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(13, 14, 26, 0.92);
            backdrop-filter: blur(16px) saturate(120%);
        }

        .modal-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            margin: auto;
            top: 50%;
            transform: translateY(-50%);
            border-radius: 18px;
            overflow: hidden;
            animation: modalZoom 0.28s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 32px 80px rgba(13, 14, 26, 0.6);
        }

        @keyframes modalZoom {
            from { transform: translateY(-50%) scale(0.88); opacity: 0; }
            to { transform: translateY(-50%) scale(1); opacity: 1; }
        }

        .modal-close {
            position: absolute;
            top: 18px;
            right: 22px;
            color: var(--white);
            font-size: 1.6rem;
            cursor: pointer;
            background: rgba(13, 14, 26, 0.6);
            backdrop-filter: blur(8px);
            width: 44px;
            height: 44px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            z-index: 1001;
            border: 1px solid rgba(255, 255, 255, 0.12);
        }

        .modal-close:hover {
            background: var(--primary);
            border-color: var(--primary);
            transform: rotate(90deg);
        }

        .modal-caption {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            background: linear-gradient(transparent, rgba(13, 14, 26, 0.9));
            color: var(--white);
            padding: 2.5rem 2rem 1.5rem;
            text-align: center;
            font-family: 'Syne', sans-serif;
            font-size: 1rem;
            font-weight: 500;
        }

        /* Footer */
        .footer {
            background: var(--dark-mid);
            color: var(--white);
            text-align: center;
            padding: 3rem 2rem;
            position: relative;
            overflow: hidden;
        }

        .footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background: linear-gradient(90deg, var(--primary), var(--accent), var(--accent-warm), var(--primary));
            background-size: 300% 100%;
            animation: gradientSlide 4s ease infinite;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
        }

        .footer p {
            font-family: 'Syne', sans-serif;
            font-size: 1rem;
            font-weight: 500;
            color: rgba(255, 255, 255, 0.7);
            margin-bottom: 1rem;
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 0.75rem;
            margin-top: 2rem;
        }

        .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 46px;
            height: 46px;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 12px;
            color: rgba(255, 255, 255, 0.8);
            font-size: 1.1rem;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
        }

        .social-link:hover {
            transform: translateY(-4px);
            background: var(--primary);
            border-color: var(--primary);
            color: var(--white);
            box-shadow: 0 8px 24px rgba(91, 76, 245, 0.4);
        }

        /* Desktop tuning to keep full nav + language button inside header */
        @media (max-width: 1380px) and (min-width: 769px) {
            .header {
                width: calc(100% - 24px);
                max-width: none;
            }

            .navbar {
                padding: 0.5rem 0.85rem;
                gap: 0.35rem;
            }

            .logo {
                font-size: 1.02rem;
            }

            .nav-link {
                padding: 0.46rem 0.58rem;
                font-size: 0.78rem;
            }

            .nav-link i {
                margin-right: 0.3rem;
                font-size: 0.72rem;
            }

            .nav-link.has-dropdown::after {
                margin-left: 0.28rem;
                font-size: 0.62rem;
            }

            .lang-toggle {
                padding: 0.34rem 0.7rem;
                font-size: 0.76rem;
            }
        }
        @media (max-width: 1180px) and (min-width: 769px) {
            .navbar {
                padding: 0.42rem 0.65rem;
                gap: 0.25rem;
            }

            .logo {
                font-size: 0.92rem;
            }

            .nav-link {
                padding: 0.38rem 0.44rem;
                font-size: 0.72rem;
                letter-spacing: 0;
            }

            .nav-link i {
                display: none;
            }

            .nav-link.has-dropdown::after {
                margin-left: 0.2rem;
                font-size: 0.56rem;
            }

            .lang-toggle {
                padding: 0.28rem 0.55rem;
                font-size: 0.7rem;
            }
        }

        /* Fix background-attachment: fixed on mobile (iOS/Android) */
        @media (max-width: 768px) {
            .animated-bg {
                background-attachment: scroll;
            }
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .header {
                top: 10px;
                width: calc(100% - 24px);
                border-radius: 20px;
            }

            .navbar {
                padding: 0.55rem 1rem;
            }

            .logo {
                font-size: 0.95rem;
            }

            .nav-indicator { display: none; }

            .nav-menu {
                position: fixed;
                top: 72px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 72px);
                background: rgba(242, 240, 252, 1);
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                flex-direction: column;
                justify-content: flex-start;
                align-items: stretch;
                transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                gap: 0;
                padding: 1.5rem 0;
                overflow-y: auto;
                border-radius: 0;
            }

            .nav-menu.active {
                left: 0;
            }

            .nav-item {
                width: 100%;
                border-bottom: 1px solid rgba(91, 76, 245, 0.08);
            }

            .nav-link {
                justify-content: space-between;
                padding: 0.9rem 1.5rem;
                border-radius: 0;
                font-size: 0.9rem;
            }

            .dropdown {
                position: static;
                opacity: 1;
                visibility: visible;
                transform: none;
                box-shadow: none;
                border-radius: 0;
                border: none;
                background: rgba(91, 76, 245, 0.04);
                backdrop-filter: none;
                -webkit-backdrop-filter: none;
                max-height: 0;
                overflow: hidden;
                transition: max-height 0.25s ease;
                min-width: unset;
                display: block;
                padding: 0;
                grid-template-columns: unset;
            }

            .nav-item.active .dropdown {
                max-height: 500px;
                transform: none;
            }

            .dropdown-item {
                display: flex;
                align-items: flex-start;
                gap: 0.65rem;
                padding: 0.7rem 1.5rem;
                border-radius: 0;
                border-bottom: 1px solid rgba(91, 76, 245, 0.06);
            }

            .item-icon {
                display: inline-flex;
                width: 30px;
                height: 30px;
                border-radius: 8px;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
                font-size: 0.8rem;
            }

            .item-title {
                font-size: 0.88rem;
                font-weight: 600;
            }

            .item-desc {
                display: block;
                margin-top: 0.12rem;
                font-size: 0.72rem;
                line-height: 1.3;
            }

            .mobile-toggle {
                display: flex;
            }

            .mobile-toggle.active span:nth-child(1) {
                transform: rotate(-45deg) translate(-4px, 5px);
            }

            .mobile-toggle.active span:nth-child(2) {
                opacity: 0;
            }

            .mobile-toggle.active span:nth-child(3) {
                transform: rotate(45deg) translate(-4px, -5px);
            }

            .lang-toggle {
                padding: 0.32rem 0.65rem;
                font-size: 0.76rem;
            }

            .hero-content {
                padding: 2rem 1.5rem;
            }

            .about-container {
                grid-template-columns: 1fr;
                gap: 1.25rem;
                text-align: left;
                padding: 1rem;
                border-radius: 22px;
            }

            .gallery-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }

            .section {
                padding: 3rem 1rem;
            }

            .profile-card {
                text-align: center;
                padding: 1.25rem 1rem;
            }

            .profile-badges {
                gap: 0.35rem;
                margin-top: 0.75rem;
            }

            .profile-badge {
                font-size: 0.64rem;
                padding: 0.24rem 0.58rem;
            }

            .text-card {
                padding: 1.25rem 1.1rem;
            }

            .text-card p {
                font-size: 0.98rem;
                line-height: 1.72;
            }

            .project-description {
                padding: 1.5rem;
            }

            /* Responsive Estadísticas */
            .stats-section {
                padding: 2rem 1.5rem;
            }
            
            .main-counter {
                flex-direction: column;
                text-align: center;
                gap: 1.5rem;
            }
            
            .big-number {
                font-size: 3rem;
            }
            
            .modern-stats-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .insights-grid {
                grid-template-columns: 1fr;
            }
            
            .country-bar {
                width: 40px;
            }
        }

        /* Scroll animations */
        .fade-in {
            opacity: 0;
            transform: translateY(24px);
            transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .slide-in-left {
            opacity: 0;
            transform: translateX(-40px);
            transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .slide-in-left.visible {
            opacity: 1;
            transform: translateX(0);
        }

        .slide-in-right {
            opacity: 0;
            transform: translateX(40px);
            transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
                        transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .slide-in-right.visible {
            opacity: 1;
            transform: translateX(0);
        }

        /* ============================================
           INSIGHTS / AI CARDS, improved styling
        ============================================ */
        .insights-section {
            margin-top: 2rem;
        }

        .insight-card {
            border-radius: 14px;
            padding: 1.25rem 1.5rem;
            margin-bottom: 0.85rem;
            display: flex;
            align-items: flex-start;
            gap: 1rem;
            transition: transform 0.25s ease;
        }

        .insight-card:hover { transform: translateX(4px); }

        .insight-card.positive {
            background: rgba(0, 212, 170, 0.07);
            border: 1px solid rgba(0, 212, 170, 0.2);
        }

        .insight-card.info {
            background: rgba(91, 76, 245, 0.07);
            border: 1px solid rgba(91, 76, 245, 0.15);
        }

        .insight-card.neutral {
            background: rgba(245, 166, 35, 0.07);
            border: 1px solid rgba(245, 166, 35, 0.2);
        }

        .insight-card .insight-icon {
            font-size: 1.3rem;
            flex-shrink: 0;
            margin-top: 0.1rem;
        }

        .insight-card.positive .insight-icon { color: var(--success); }
        .insight-card.info .insight-icon { color: var(--primary); }
        .insight-card.neutral .insight-icon { color: var(--accent-warm); }

        .insight-text {
            font-size: 0.88rem;
            line-height: 1.6;
            color: var(--text-secondary);
        }

        .insight-text strong {
            font-family: 'Syne', sans-serif;
            font-weight: 700;
            display: block;
            margin-bottom: 0.2rem;
            color: var(--text-primary);
        }

        /* Activity notification toast */
        .activity-notification {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            background: rgba(13, 14, 26, 0.92);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(91, 76, 245, 0.3);
            border-radius: 14px;
            padding: 1rem 1.5rem;
            color: var(--white);
            font-family: 'Syne', sans-serif;
            font-size: 0.875rem;
            font-weight: 500;
            z-index: 9998;
            transform: translateY(120%);
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            max-width: 320px;
            box-shadow: 0 8px 32px rgba(13, 14, 26, 0.4), 0 0 0 1px rgba(91, 76, 245, 0.2);
        }

        .activity-notification.show {
            transform: translateY(0);
        }
        /* ── Botón de idioma ES/EN ── */
        .lang-toggle {
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            padding: 0.4rem 0.85rem;
            background: rgba(91, 76, 245, 0.09);
            border: 1.5px solid rgba(91, 76, 245, 0.35);
            border-radius: 20px;
            color: var(--primary);
            font-family: 'Space Grotesk', sans-serif;
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.04em;
            cursor: pointer;
            transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
            white-space: nowrap;
            flex-shrink: 0;
        }
        .lang-toggle:hover {
            background: rgba(91, 76, 245, 0.18);
            box-shadow: 0 0 12px rgba(91, 76, 245, 0.2);
            transform: translateY(-1px);
        }
        .lang-toggle:active {
            transform: translateY(0);
        }
