/* ==========================================================================
    VARIABLES & DESIGN SYSTEM (PURE CSS - NO EXTERNAL CDNs)
    ========================================================================== */
    :root {
        /* Color Palette inspired by modern mathematics and dark academia */
        --bg-base: #fefefe;
        --bg-surface: #d9d9d9;
        --bg-glass: rgba(217, 217, 217, 0.6);
        --bg-glass-hover: rgba(217, 217, 217, 0.9);
        --bg-coffee: rgb(207, 207, 207);
        
        --text-main: #353535;
        --text-muted: #5c5c5c;
        
        --accent-cyan: #3c6e71;
        --accent-teal: #284b63;
        --accent-gold: #c5832b;
        --accent-error: #ef4444;
        --accent-success: #10b981;
    
        --border-light: rgba(53, 53, 53, 0.15);
        --border-focus: rgba(60, 110, 113, 0.4);
    
        /* Typography - System Fonts for zero latency and no external requests */
        --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
        --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    
        /* Transitions */
        --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        --transition-fast: all 0.2s ease-in-out;
    }
    
    /* ==========================================================================
        RESET & GLOBAL STYLES
        ========================================================================== */
    *, *::before, *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }
    
    html { scroll-behavior: smooth; }
    
    body {
        font-family: var(--font-sans);
        background-color: var(--bg-base);
        color: var(--text-main);
        line-height: 1.6;
        overflow-x: hidden;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Custom Math Grid Background */
    body::before {
        content: '';
        position: fixed;
        top: 0; left: 0; width: 100vw; height: 100vh;
        background-image: 
            linear-gradient(to right, rgba(53, 53, 53, 0.04) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(53, 53, 53, 0.04) 1px, transparent 1px);
        background-size: 40px 40px;
        z-index: -2;
        pointer-events: none;
    }
    
    a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
    ul { list-style: none; }
    button, input, textarea, select { font-family: inherit; outline: none; border: none; background: none; }
    button { cursor: pointer; }
    img { max-width: 100%; height: auto; display: block; }
    
    /* Custom Scrollbar */
    ::-webkit-scrollbar { width: 8px; }
    ::-webkit-scrollbar-track { background: var(--bg-base); }
    ::-webkit-scrollbar-thumb { background: #b0b0b0; border-radius: 4px; }
    ::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }
    
    /* ==========================================================================
        UTILITY CLASSES
        ========================================================================== */
    .container {
        width: 100%;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }
    .container-2 {
        width: 100%;
        max-width: 1680px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }
    .container-3{
        width: 100%;
        max-width: 680px;
        margin: 0 auto;
        padding: 0 1.5rem;
    }
    
    .text-center { text-align: center; }
    .text-cyan { color: var(--accent-cyan); }
    .text-teal { color: var(--accent-teal); }
    .text-gold { color: var(--accent-gold); }
    .font-mono { font-family: var(--font-mono); }
    
    .section-padding { padding: 6rem 0; }
    .border-top { border-top: 1px solid var(--border-light); }
    
    .glass-panel {
        background: var(--bg-glass);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--border-light);
        border-radius: 1rem;
    }
    
    /* Section Titles */
    .section-header {
        max-width: 800px;
        margin: 0 auto 4rem auto;
        text-align: center;
    }
    .section-tag {
        display: inline-block;
        font-family: var(--font-mono);
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--accent-cyan);
        margin-bottom: 1rem;
    }
    .section-title {
        font-size: 2.5rem;
        font-weight: 800;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    .section-divider {
        height: 4px;
        width: 60px;
        background: linear-gradient(90deg, var(--accent-teal), var(--accent-cyan));
        margin: 0 auto 1.5rem auto;
        border-radius: 2px;
    }
    .section-desc {
        color: var(--text-muted);
        font-size: 1.1rem;
    }
    
    /* Buttons */
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.875rem 1.75rem;
        font-weight: 600;
        font-size: 0.95rem;
        border-radius: 0.5rem;
        transition: var(--transition-smooth);
        gap: 0.5rem;
    }
    .btn-primary {
        background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
        color: #fefefe;
        box-shadow: 0 4px 15px rgba(60, 110, 113, 0.2);
    }
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(60, 110, 113, 0.4);
    }
    .btn-secondary {
        background: transparent;
        color: var(--accent-teal);
        border: 1px solid var(--accent-teal);
        backdrop-filter: blur(10px);
    }
    .btn-secondary:hover {
        background: rgba(40, 75, 99, 0.05);
        border-color: var(--accent-teal);
        transform: translateY(-2px);
    }
    
    /* SVG Icons Inline Utility */
    .icon { width: 1.2em; height: 1.2em; fill: var(--accent-teal); }
    .icon-w{ width: 1.2em; height: 1.2em; fill: var(--bg-base);

    }
    
    /* ==========================================================================
        COMPONENTS
        ========================================================================== */
    
    /* Progress Bar */
    #scroll-progress {
        position: fixed;
        top: 0; left: 0;
        height: 3px;
        background: linear-gradient(90deg, var(--accent-teal), var(--accent-cyan), var(--accent-gold));
        width: 0%;
        z-index: 9999;
        transition: width 0.1s ease;
    }
    
    /* Header / Navbar */
    .site-header {
        position: fixed;
        top: 0; left: 0; width: 100%;
        z-index: 1000;
        padding: 1.5rem 0;
        transition: var(--transition-smooth);
        background: #06344df5;
    }
    .site-header.scrolled {
        padding: 1rem 0;
        background: rgba(13, 68, 82, 0.9);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border-light);
    }
    .site-header.hidden {
        transform: translateY(-100%);
    }
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .brand {
        display: flex;
        align-items: center;
        gap: 1rem;
        font-weight: 700;
        font-size: 1.1rem;
    }
    .brand-logo {
        width: 240px;
        display: flex; align-items: center; justify-content: center;
    
    }
    .brand-text span {
        display: block;
        font-size: 0.65rem;
        text-transform: uppercase;
        letter-spacing: 0.15em;
        color: var(--text-muted);
        font-weight: 600;
    }
    .nav-links {
        display: flex;
        gap: 2rem;
    }
    .nav-links a {
        font-size: 1rem;
        font-weight: 500;
        color: var(--bg-base);
        position: relative;
    }
    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: -5px; left: 0;
        width: 0%; height: 2px;
        background: var(--accent-cyan);
        transition: var(--transition-fast);
    }
    .nav-links a:hover, .nav-links a:focus { color: var(--text-main); }
    .nav-links a:hover::after, .nav-links a:focus::after { width: 100%; }
    
    .mobile-toggle {
        display: none;
        background: none;
        color: var(--text-main);
        padding: 0.5rem;
    }
    .mobile-toggle svg { width: 24px; height: 24px; color: var(--bg-base);}
    
    /* Mobile Menu */
    .mobile-menu {
        position: fixed;
        top: 70px; left: 0; width: 100%;
        background: rgba(254, 254, 254, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border-light);
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: var(--transition-smooth);
        z-index: 990;
    }
    .mobile-menu.open { transform: translateY(0); }
    .mobile-menu a { font-size: 1.2rem; font-weight: 500; border-bottom: 1px solid rgba(53,53,53,0.1); padding-bottom: 0.5rem; }
    
    /* Hero Section */
    .hero {
        position: relative;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-top: 7rem;
        overflow: hidden;
        background-image: url('../images/building-H.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        
    }
    #hero-canvas {
        position: absolute;
        top: 0; left: 0;
        width: 100%; height: 100%;
        z-index: -1;
        opacity: 0.4;
    }
    .hero-content {
        text-align: center;
        max-width: 1140px;
        position: relative;
        z-index: 10;
        margin: 0 auto;
    }
    .hero-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(60, 110, 113, 0.1);
        border: 1px solid var(--border-focus);
        padding: 0.4rem 1rem;
        border-radius: 2rem;
        font-family: var(--font-mono);
        font-size: 0.75rem;
        color: var(--accent-cyan);
        margin-bottom: 2rem;
        animation: fadeInDown 1s ease;
    }
    .hero-title {
        font-size: clamp(3rem, 6vw, 5.5rem);
        font-weight: 900;
        line-height: 1.1;
        letter-spacing: -0.02em;
        margin-bottom: 1.5rem;
        animation: fadeInUp 1s ease 0.2s both;
    }
    .hero-title span {
        background: linear-gradient(to right, var(--accent-teal), var(--accent-cyan), var(--accent-gold));
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .hero-subtitle {
        font-size: clamp(1.1rem, 2vw, 1.4rem);
        color: var(--text-main);
        font-weight: 600;
        margin-bottom: 3rem;
        max-width: 700px;
        margin-inline: auto;
        animation: fadeInUp 1s ease 0.4s both;
    }
    .hero-meta {
        display: flex;
        justify-content: center;
        gap: 2rem;
        margin-bottom: 3rem;
        animation: fadeInUp 1s ease 0.6s both;
        

    }
    .meta-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1.2rem;
        color: var(--accent-teal);
        background-color: #ffffffc0;
        border-radius: 10px;
        border: 1px solid var(--border-light);
        padding: 0px 7px;
    }
    .meta-item svg { color: var(--accent-gold); }
    .hero-actions {
        display: flex;
        justify-content: center;
        gap: 1rem;
        animation: fadeInUp 1s ease 0.8s both;
    }
    
    /* Stats Component */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        margin-top: -3rem;
        position: relative;
        z-index: 20;
    }
    .stat-card {
        text-align: center;
        padding: 2rem;
        transition: var(--transition-smooth);
    }
    .stat-card:hover { transform: translateY(-5px); border-color: var(--border-focus); }
    .stat-number {
        font-family: var(--font-mono);
        font-size: 3.5rem;
        font-weight: 800;
        color: var(--text-main);
        line-height: 1;
        margin-bottom: 0.5rem;
    }
    .stat-label {
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: var(--text-muted);
    }

    /*  Intro Math Background  */
    .intro-math {
        padding: 56px 0px 50px 0px;
        font-size:larger;
        text-align: justify;
        background-color: #3c6e7185;
        background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
        color: rgb(254, 254, 254);
        box-shadow: rgba(60, 110, 113, 0.2) 0px 4px 15px;
    }
    
    /* Speakers Section */
    .speakers-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        text-align: center;
    }
    .speaker-card {
        padding: 2.5rem 2rem;
        position: relative;
        overflow: hidden;
        transition: var(--transition-smooth);
    }
    .speaker-card::before {
        content: '';
        position: absolute;
        top: 0; left: 0; width: 100%; height: 4px;
        background: linear-gradient(90deg, var(--accent-teal), var(--accent-cyan));
        opacity: 0;
        transition: var(--transition-smooth);
    }
    .speaker-card:hover::before { opacity: 1; }
    .speaker-card:hover {
        transform: translateY(-10px);
        background: var(--bg-glass-hover);
        box-shadow: 0 15px 30px rgba(53, 53, 53, 0.15);
    }
    .speaker-area {
        font-family: var(--font-mono);
        font-size: 0.75rem;
        color: var(--accent-cyan);
        margin-bottom: 1rem;
        display: block;
    }
    .speaker-name {
        font-size: 1.5rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }
    .speaker-inst {
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        justify-content: center;
        
    }
    .speaker-bio {
        font-size: 0.95rem;
        color: var(--text-muted);
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }
    .speaker-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--accent-teal);
    }
    .speaker-link:hover { color: var(--accent-cyan); }
    
    /* Charlas (Tabs & Grid) */
    .filter-controls {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
        margin-bottom: 3rem;
    }
    .filter-btn {
        padding: 0.5rem 1.5rem;
        border-radius: 2rem;
        border: 1px solid var(--border-light);
        color: var(--text-muted);
        font-size: 0.85rem;
        font-weight: 600;
        transition: var(--transition-fast);
    }
    .filter-btn:hover, .filter-btn.active {
        border-color: var(--accent-cyan);
        color: var(--accent-cyan);
        background: rgba(60, 110, 113, 0.08);
    }
    .charlas-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
    .charla-card {
        padding: 2rem;
        display: flex;
        flex-direction: column;
        transition: var(--transition-smooth);
    }
    .charla-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1rem;
    }
    .charla-tag {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        padding: 0.25rem 0.75rem;
        border-radius: 1rem;
        border: 1px solid currentColor;
    }
    .tag-algebra { color: var(--accent-teal); background: rgba(40, 75, 99, 0.1); }
    .tag-analisis { color: var(--accent-cyan); background: rgba(60, 110, 113, 0.1); }
    .tag-aplicada { color: var(--accent-gold); background: rgba(197, 131, 43, 0.1); }
    
    .charla-time {
        font-family: var(--font-mono);
        font-size: 0.8rem;
        color: var(--text-muted);
        display: flex;
        align-items: center;
        gap: 0.4rem;
    }
    .charla-title {
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    .charla-speaker {
        font-size: 0.9rem;
        color: var(--accent-cyan);
        margin-bottom: 1rem;
    }
    .charla-desc {
        font-size: 0.95rem;
        color: var(--text-muted);
        flex-grow: 1;
    }
    .timeline {
        max-width: 900px;
        margin: 0 auto;
        position: relative;
        padding-left: 3rem;
    }

    .agenda-header {
        text-align: center;
        margin-bottom: 4rem;
        animation: fadeInDown 1s ease-out;
    }

    .agenda-header h2 {
        font-size: 2.5rem;
        font-weight: 700;
        background: linear-gradient(to right, #a78bfa, #38bdf8);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 0.5rem;
    }

    .agenda-header p {
        color: var(--text-muted);
        font-size: 1.1rem;
    }

    /* Línea de Tiempo */
    .timeline {
        position: relative;
        padding-left: 2rem;
    }

    /* Línea vertical */
    .timeline::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 2px;
        background: linear-gradient(to bottom, transparent, var(--accent-teal), transparent);
        border-radius: 2px;
    }

    .timeline-item {
        position: relative;
        margin-bottom: 3.5rem;
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease-out forwards;
    }

    /* Delay escalonado para animaciones */
    .timeline-item:nth-child(1) { animation-delay: 0.2s; }
    .timeline-item:nth-child(2) { animation-delay: 0.4s; }
    .timeline-item:nth-child(3) { animation-delay: 0.6s; }
    .timeline-item:nth-child(4) { animation-delay: 0.8s; }

    .timeline-dot {
        position: absolute;
        left: -2.35rem; /* Ajustado para centrar con la línea */
        top: 0.5rem;
        width: 1rem;
        height: 1rem;
        border-radius: 50%;
        background-color: var(--accent-cyan);
        box-shadow: 0 0 15px var(--accent-glow), 0 0 0 4px var(--bg-color);
        z-index: 2;
        transition: transform 0.3s ease;
    }

    .timeline-item:hover .timeline-dot {
        transform: scale(1.3);
    }

    .timeline-date {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--accent-cyan);
        margin-bottom: 1rem;
        display: inline-block;
        background: rgba(60, 110, 113, 0.4);
        padding: 0.25rem 1rem;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
    }

    /* Glassmorphism Panel */
    .glass-panel {
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 1px solid var(--glass-border);
        border-radius: 1rem;
        padding: 1.5rem;
        transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }

    .glass-panel:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
        background: rgba(255, 255, 255, 0.849);
        border-color: rgba(139, 92, 246, 0.3);
    }

    /* Tabla Responsiva */
    .t-responsive {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 0.5rem; /* Espaciado entre filas */
    }

    .t-responsive td {
        padding: 1rem;
        vertical-align: middle;
        background: rgba(255, 255, 255, 0.02);
        transition: background 0.2s ease;
    }

    .t-responsive tr:hover td {
        background: rgba(255, 255, 255, 0.06);
    }

    /* Bordes redondeados para celdas extremas */
    .t-responsive td:first-child { border-top-left-radius: 0.5rem; border-bottom-left-radius: 0.5rem; }
    .t-responsive td:last-child { border-top-right-radius: 0.5rem; border-bottom-right-radius: 0.5rem; }

    /* Columna de Tiempo */
    .t-responsive td:first-child {
        width: 160px;
        white-space: nowrap;
        color: var(--text-muted);
        font-weight: 600;
    }

    .t-responsive .icon {
        width: 1.2em;
        height: 1.2em;
        fill: var(--accent);
        opacity: 0.8;
    }

    /* Nombre del Speaker / Actividad */
    .t-responsive td b {
        color: var(--accent-cyan);
        display: block;
        font-size: 1.05rem;
    }

    /* Título de la charla */
    .t-responsive td:nth-child(3) {
        color: var(--text-muted);
        font-size: 0.95rem;
        width: 50%;
    }

    /* Filas de Descanso (Breaks/Almuerzo) */
    .t-responsive .break {
        text-align: center;
        background: var(--bg-glass)!important;
        color: #c4b5fd;
        font-weight: 600;
        letter-spacing: 1px;
        text-transform: uppercase;
        font-size: 0.85rem;
        border-radius: 0.5rem;
        border: 1px dashed rgba(139, 92, 246, 0.3);
    }

    /* Animaciones */
    @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(30px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes fadeInDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Responsividad */
    @media (max-width: 768px) {
        .agenda-container { padding: 2rem 1rem; }
        .timeline { padding-left: 1rem; }
        .timeline::before { left: 0px; }
        .timeline-dot { left: -0.4rem; width: 0.8rem; height: 0.8rem; }
        .glass-panel { padding: 1rem; }
        
        .t-responsive, .t-responsive tbody, .t-responsive tr, .t-responsive td {
            display: block;
            width: 100%;
        }

        .t-responsive tr {
            margin-bottom: 1rem;
            background: rgba(255, 255, 255, 0.02);
            border-radius: 0.5rem;
            border: 1px solid var(--glass-border);
        }

        .t-responsive td {
            background: transparent !important;
            padding: 0.75rem 1rem;
        }
        
        .t-responsive td:first-child { border-bottom: 1px solid rgba(255,255,255,0.05); width: 100%; }
        .t-responsive td:nth-child(3) { width: 100%; }
        .t-responsive tr:hover td { background: transparent !important; }
        .t-responsive tr:hover { background: rgba(255, 255, 255, 0.05); }
    }
    
    /* Gallery Masonry */
    .masonry-grid {
        column-count: 3;
        column-gap: 1.5rem;
    }
    .gallery-item {
        break-inside: avoid;
        margin-bottom: 1.5rem;
        position: relative;
        border-radius: 1rem;
        overflow: hidden;
        cursor: pointer;
    }
    .gallery-item img {
        width: 100%;
        transition: transform 0.5s ease;
    }
    .gallery-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
        opacity: 0;
        transition: var(--transition-smooth);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 1.5rem;
    }
    .gallery-item:hover img { transform: scale(1.05); }
    .gallery-item:hover .gallery-overlay { opacity: 1; }
    .gallery-cat {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        color: var(--accent-cyan);
        margin-bottom: 0.25rem;
    }
    .gallery-title { font-size: 1rem; font-weight: 600; }
    
    /* Lightbox */
    .lightbox {
        position: fixed;
        inset: 0;
        background: rgba(254, 254, 254, 0.95);
        backdrop-filter: blur(5px);
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .lightbox.active { opacity: 1; pointer-events: auto; }
    .lightbox-content { max-width: 90vw; max-height: 90vh; }
    .lightbox-content img { max-height: 85vh; border-radius: 0.5rem; box-shadow: 0 20px 50px rgba(53, 53, 53, 0.3); }
    .lightbox-close {
        position: absolute;
        top: 2rem; right: 2rem;
        color: var(--text-main);
        font-size: 2rem;
        background: none; border: none; cursor: pointer;
    }
    
    /* Contact Section */
    .contact-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(390px, 1fr));
        gap: 4rem;
        align-items: start;
        text-align: center;
    }
    .contact-info {
        padding-right: 2rem;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
    }
    .contact-item {
        display: inline-blocks;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    .contact-icon {
        width: 50px;
        height: 50px;
        background: rgba(60, 110, 113, 0.05);
        border: 1px solid var(--border-light);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--accent-cyan);
        flex-shrink: 0;
        margin: 0 auto;
    
    }
    .contact-details h5 { font-size: 1rem; margin-bottom: 0.25rem; }
    .contact-details p { color: var(--text-muted); font-size: 0.95rem; }
    
    .form-group { margin-bottom: 1.5rem; position: relative; }
    .form-label {
        display: block;
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: var(--text-muted);
    }
    .form-control {
        width: 100%;
        background: rgba(254, 254, 254, 0.8);
        border: 1px solid var(--border-light);
        border-radius: 0.5rem;
        padding: 1rem;
        color: var(--text-main);
        transition: var(--transition-fast);
    }
    .form-control:focus { border-color: var(--accent-cyan); box-shadow: 0 0 0 1px var(--accent-cyan); }
    .form-error {
        display: none;
        color: var(--accent-error);
        font-size: 0.8rem;
        margin-top: 0.5rem;
    }
    .form-control.invalid { border-color: var(--accent-error); }
    .form-control.invalid + .form-error { display: block; }
    .form-success {
        display: none;
        background: rgba(16, 185, 129, 0.1);
        border: 1px solid var(--accent-success);
        color: var(--accent-success);
        padding: 1rem;
        border-radius: 0.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    /* Footer */
    .site-footer {
        background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
        padding: 5rem 0 0rem;
        border-top: 1px solid var(--border-light);
    }
    .footer-grid {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        gap: 4rem;
        margin-bottom: 4rem;
        color: #d9d9d9;
    }
    .footer-brand p { color: var(--bg-base); margin-top: 1rem; font-size: 0.9rem; max-width: 400px;}
    .footer-title { font-size: 1.1rem; margin-bottom: 1.5rem; font-weight: 600; }
    .footer-links li { margin-bottom: 0.75rem; }
    .footer-links a { color: var(--bg-base); font-size: 0.95rem; }
    .footer-links a:hover { color: #fff; padding-left: 5px; }
    
    .social-links { display: flex; gap: 1rem; }
    .social-links a {
        width: 40px; height: 40px;
        display: flex; align-items: center; justify-content: center;
        background: rgba(53, 53, 53, 0.05);
        border-radius: 50%;
        color: var(--bg-base);
    }
    .social-links a:hover { background: var(--accent-cyan); color: #fefefe; transform: translateY(-3px); }
    
    .footer-bottom {
        text-align: center;

        color: var(--bg-base);
        font-size: 0.55rem;
    }
    
    /* Scroll Animations (Intersection Observer) */
    .reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
    .reveal.active { opacity: 1; transform: translateY(0); }
    
    /* FAB Back to Top */
    .fab-top {
        position: fixed;
        bottom: 2rem; right: 2rem;
        width: 50px; height: 50px;
        background: var(--bg-glass);
        backdrop-filter: blur(10px);
        border: 1px solid var(--border-light);
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        color: var(--accent-cyan);
        cursor: pointer;
        opacity: 0; pointer-events: none; transform: translateY(20px);
        transition: var(--transition-smooth);
        z-index: 1000;
    }
    .fab-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
    .fab-top:hover { background: var(--accent-cyan); color: #000; }
    
    /* ==========================================================================
        RESPONSIVE DESIGN (MOBILE FIRST ADAPTATIONS)
        ========================================================================== */
    @media (max-width: 1024px) {
        .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
        .footer-grid { grid-template-columns: 1fr 1fr; }
    }
    
    @media (max-width: 768px) {
        .nav-links { display: none; }
        .nav-actions { display: none; }
        .mobile-toggle { display: block; }
        .hero-title { font-size: 2.5rem; }
        .hero-meta { flex-direction: column; gap: 1rem; align-items: center; }
        .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: -2rem;}
        .masonry-grid { column-count: 2; }
        .timeline::before { left: 20px; }
        .timeline-item { padding-left: 38px; }
        .timeline-dot { left: 15px; }
        .timeline-date { position: relative; width: auto; text-align: left; margin-bottom: 0.5rem; }
        .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
        .section-padding { padding: 4rem 0; }
    }
    
    @media (max-width: 480px) {
        .masonry-grid { column-count: 1; }
        .stats-grid { grid-template-columns: 1fr; }
        .hero-actions { flex-direction: column; }
        .btn { width: 100%; }
    }




    
#participantes {
    padding: 30px;
  }
  
  #participantes h2 {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .categoria {
    margin-bottom: 40px;
  }
  
  .categoria h3 {
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
  }
  
  .card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9f9f9;
    padding: 8px;
    border-radius: 12px;
    transition: 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  }
  
  .card:hover {
    transform: translateY(-5px);
    background: #f1f1f1;
  }
  
  .avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-cyan));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
  }
  
  .nombre {
    font-size: 14px;
  }
  