/* --- 1. VARIABLES & SETUP MODERNO --- */
:root {
    /* Paleta Dark Tech */
    --bg-dark: #050a14;      /* Fondo casi negro/azulado */
    --bg-panel: #0f172a;     /* Fondo de tarjetas */
    --primary: #93265F;      /* VIOLETA INSTITUCIONAL */
    --primary-glow: #ff0080; /* Variante neon para brillo */
    --accent: #00d4ff;       /* Azul eléctrico para detalles secundarios */
    --text-main: #e2e8f0;    /* Blanco no puro para no cansar la vista */
    --text-muted: #94a3b8;   /* Gris azulado */
    
    --glass: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --blur: 12px;
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Luz ambiental de fondo (Efecto sutil) */
.ambient-light {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(147, 38, 95, 0.15) 0%, rgba(0,0,0,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* --- 2. TIPOGRAFÍA --- */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 800; color: #fff; letter-spacing: -1px; }
h1 { font-size: 3.5rem; line-height: 1.1; }
h2 { font-size: 2.5rem; margin-bottom: 1rem; }
a { text-decoration: none; color: inherit; transition: 0.3s; }

.text-gradient {
    background: linear-gradient(to right, #fff, var(--primary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.text-gradient1 {
    background: linear-gradient(to left, #9c9c9c, var(--primary-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- 3. HEADER GLASS --- */
.header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(15px);
    padding: 10px 0;
    border-bottom: 1px solid var(--glass-border);
}





.container {
    width: 97%;           /* Ocupa el 90% del ancho disponible */
    max-width: 1300px;    /* No se estira más de 1200px en pantallas gigantes */
    margin: 0 auto;       /* Se centra automáticamente */
    
    /* AQUÍ ESTÁ EL CAMBIO: */
    /* Antes: padding: 0 15px; */
    padding: 0 5px;      /* Aumentado a 30px a cada lado para más "aire" */
}

/* Opcional: Ajuste específico para móviles si quieres que no pierdan tanto espacio */
@media (max-width: 768px) {
    .container {
        width: 95%;       /* En móvil usamos más ancho de pantalla */
        padding: 0 10px;  /* Un poco menos de padding que en escritorio, pero suficiente */
    }
}


/* --- MEDIA KIT SECTION --- */
.download-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    background: linear-gradient(135deg, rgba(147, 38, 95, 0.1), rgba(255, 255, 255, 0.02)); /* Un toque violeta sutil */
}

@media(min-width: 768px) {
    .download-card {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }
}

.download-content { flex: 2; }

.kit-features {
    display: flex;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.kit-item {
    font-size: 0.85rem;
    background: rgba(255,255,255,0.05);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-muted);
    display: flex; align-items: center; gap: 8px;
}
.kit-item i { color: var(--primary); }

.download-action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.05);
    width: 100%;
}

.file-icon {
    text-align: center;
    margin-bottom: 20px;
    color: #fff;
}

.file-icon i {
    font-size: 3rem;
    margin-bottom: 5px;
    display: block;
    color: var(--text-muted);
}

.file-size {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.btn-download {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 10px;
}




.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%; max-width: 1200px; margin: 0 auto;
    padding: 0 10px;  /* Un poco menos de padding que en escritorio, pero suficiente */
}






.logo img { height: 50px; filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); }

.nav-menu ul { display: flex; gap: 30px; align-items: center; list-style: none; }
.nav-link { font-size: 0.9rem; font-weight: 500; color: var(--text-main); position: relative; }
.nav-link:hover { color: #fff; }
.nav-link::after {
    content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px;
    background: var(--primary); transition: width 0.3s;
}
.nav-link:hover::after { width: 100%; }

.btn-nav-modern {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
    
}
    
    
    .btn-nav-modern1 {
    background: rgba(193, 158, 42, 0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600;
    display: flex; align-items: center; gap: 8px;
}


.btn-nav-modern:hover { background: var(--primary); border-color: var(--primary); }





/* --- 4. HERO MODERN (Con Video) --- */
.hero-modern {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    /* IMPORTANTE: overflow hidden evita que el video se salga de los bordes */
    overflow: hidden; 
    background-color: var(--bg-dark); /* Color de respaldo por si falla el video */
}

/* Nueva clase para el video de fondo */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto es vital: recorta el video para llenar la pantalla */
    z-index: 0;
}

/* Aseguramos que el gradiente oscuro tape un poco el video para leer el texto */
.hero-overlay-gradient {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(5,10,20,0.6) 0%, rgba(5,10,20,0.85) 80%, var(--bg-dark) 100%);
    z-index: 1;
}

/* El contenido (texto) debe estar encima de todo */
.hero-content { 
    position: relative; 
    z-index: 2; 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}
.badge-tech {
    display: inline-block;
    background: rgba(147, 38, 95, 0.2);
    color: var(--primary-glow);
    border: 1px solid var(--primary);
    padding: 5px 12px;
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
}

.hero-subtitle { font-size: 1.7rem; font-weight: 300; color: var(--text-muted); margin-bottom: 40px; }

/* Organizadores en Hero */
.organizers-bar {
    display: flex; align-items: center; gap: 20px; margin-bottom: 40px;
    padding-left: 20px; border-left: 3px solid var(--primary);
}
.org-label { font-size: 0.7rem; letter-spacing: 1px; color: var(--text-muted); writing-mode: vertical-lr; transform: rotate(180deg); }
.org-logos { display: flex; align-items: center; gap: 20px; }
.org-logos img { height: 40px; opacity: 0.8; filter: grayscale(100%) brightness(200%); transition: 0.3s; }
.org-logos img:hover { opacity: 1; filter: grayscale(0%) brightness(100%); }
.divider-vertical { width: 1px; height: 30px; background: rgba(255,255,255,0.2); }

/* Botones Hero */
.hero-actions { display: flex; align-items: center; gap: 30px; }
.btn-neon {
    position: relative;
    background: var(--primary);
    color: white;
    padding: 15px 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
    transition: 0.4s;
    box-shadow: 0 0 20px rgba(147, 38, 95, 0.4);
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}
.btn-neon:hover { background: #b92b75; box-shadow: 0 0 40px rgba(147, 38, 95, 0.6); transform: translateY(-2px); }

.scroll-down-link { font-size: 0.9rem; color: var(--text-main); display: flex; align-items: center; gap: 10px; opacity: 0.7; }
.scroll-down-link:hover { opacity: 1; }

/* --- 5. SECCIÓN NOTICIA FLOTANTE (Overlap) --- */
.news-overlap { margin-top: -100px; position: relative; z-index: 10; padding-bottom: 80px; }

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: 2px; /* Bordes más rectos = más moderno/tech */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    overflow: hidden;
}
/* Linea decorativa superior */
.glass-panel::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
}

.news-header { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 30px; }
.news-date { display: block; font-size: 0.8rem; color: var(--primary-glow); font-weight: 700; letter-spacing: 1px; margin-bottom: 10px; }

.news-body { display: grid; grid-template-columns: 1fr; gap: 30px; }
.highlight-text { font-size: 1.2rem; color: #fff; font-weight: 300; }
.highlight-text strong { color: var(--primary-glow); font-weight: 600; }
.news-columns { color: var(--text-muted); font-size: 0.95rem; columns: 1; } /* Ajustado para mobile primero */
@media(min-width: 768px) { .news-columns { columns: 2; column-gap: 40px; } }

.modern-quote {
    margin-top: 20px; padding: 20px; border-left: 4px solid var(--primary);
    background: rgba(255,255,255,0.03); font-style: italic; color: #fff; font-size: 1.1rem;
}

/* --- 6. BENTO GRID (TEMÁTICAS) --- */
.section-padding { padding: 100px 0; }
.section-header-modern { margin-bottom: 60px; }
.section-subtitle { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; display: block; margin-bottom: 10px; }

.bento-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.tech-card {
    background: var(--bg-panel);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 30px;
    position: relative;
    transition: var(--ease) 0.4s;
    overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    min-height: 250px;
}
.card-large { grid-row: span 2; background: linear-gradient(135deg, var(--bg-panel) 0%, #1a1f35 100%); }
.card-wide { grid-column: span 1; }
@media(min-width: 900px) { .card-wide { grid-column: span 2; } }

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

.icon-glow { font-size: 2rem; color: var(--primary); margin-bottom: 15px; filter: drop-shadow(0 0 8px var(--primary)); }
.tech-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: #fff; }
.tech-card p { font-size: 0.9rem; color: var(--text-muted); }

/* Decoración de fondo en cards */
.card-bg-icon {
    position: absolute; bottom: -20px; right: -20px; font-size: 10rem;
    color: rgba(255,255,255,0.02); transform: rotate(-15deg); pointer-events: none;
}

/* --- 7. ANTECEDENTES & SPONSORS --- */
.modern-split { display: flex; flex-direction: column; gap: 50px; align-items: center; }
@media(min-width: 992px) { .modern-split { flex-direction: row; } }

.split-content { flex: 1; }
.split-visual { flex: 1; width: 100%; }

.stats-modern { display: flex; gap: 40px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: white; line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--primary); text-transform: uppercase; margin-top: 5px; }

.image-frame {
    width: 100%; height: 400px;
    background: #111;
    position: relative;
}
.image-frame::after {
    content: ''; position: absolute; top: 20px; left: 20px; right: -20px; bottom: -20px;
    border: 2px solid var(--primary); z-index: -1;
}
.placeholder-modern {
    width: 100%; height: 100%;
    background: linear-gradient(45deg, #222, #111);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    color: #555;
}
.placeholder-modern i { font-size: 4rem; margin-bottom: 10px; }

/* Sponsors Ticker (Estático estilizado) */
.sponsors-ticker { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 30px; }
.sponsor-slot {
    width: 200px; height: 100px;
    background: rgba(255,255,255,0.02);
    border: 1px dashed rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #555; text-transform: uppercase; font-size: 0.8rem; font-weight: 600;
    transition: 0.3s;
}
.sponsor-slot:hover { border-color: var(--primary); color: var(--primary); background: rgba(147,38,95,0.05); }
.link-underline { border-bottom: 1px solid var(--primary); padding-bottom: 2px; font-size: 0.9rem; }

/* --- 8. CONTACTO & FOOTER --- */
.contact-wrapper { text-align: center; max-width: 600px; margin: 0 auto; }
.contact-header h2 { margin-bottom: 10px; }
.contact-header p { color: var(--text-muted); margin-bottom: 30px; }

.modern-form { margin-bottom: 40px; }
.input-group { position: relative; display: flex; }
.input-group input {
    width: 100%; padding: 15px 20px;
    background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1);
    color: white; outline: none; border-radius: 4px 0 0 4px;
}
.input-group button {
    background: var(--primary); border: none; color: white; padding: 0 25px;
    font-size: 1.2rem; cursor: pointer; border-radius: 0 4px 4px 0;
    transition: 0.3s;
}
.input-group button:hover { background: #b92b75; }
.input-group label {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    color: #666; font-size: 0.9rem; pointer-events: none; transition: 0.3s;
}
/* Animación del label */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -10px; left: 0; font-size: 0.75rem; color: var(--primary);
}

.footer-info { display: flex; justify-content: center; gap: 15px; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.copyright { font-size: 0.8rem; color: #555; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }

/* --- RESPONSIVE TWEAKS --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-modern { background-position: 70% center; } /* Centrar mejor la imagen en móvil */
    .hero-text-wrapper { text-align: center; margin-top: 60px;}
    .hero-actions { justify-content: center; flex-direction: column; }
    .organizers-bar { justify-content: center; border: none; padding: 0; margin-top: 20px;}
    .news-overlap { margin-top: 0; }
    .modern-split { flex-direction: column; }
    .image-frame { height: 250px; }
    .nav-menu { position: fixed; top: 70px; left: -100%; background: var(--bg-dark); flex-direction: column; width: 100%; padding: 40px 0; transition: 0.4s; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
    .nav-menu ul { flex-direction: column; }
    .hamburger { display: block; color: white; font-size: 1.5rem; cursor: pointer; }
    /* JS toggle class for menu needs to be added if you want functional menu on mobile, assume present in main.js */
}