/* --- ESTILOS GLOBALES --- */
:root {
    --background-color: #0c0d10; 
    --surface-color: #1a1c22;    
    --text-primary: #f0f0f3;    
    --text-muted: #b0b3c0;       
    --accent-color: #00f2fe;     
    --accent-hover: #4facfe;    
    --font-family: 'Poppins', sans-serif;
    --heading-font: 'Montserrat', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
a:hover { color: var(--accent-color); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* Patrón de fondo sutil */
body::before {
    content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.05; z-index: -1;
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg"><path d="M0 0l20 10l20-10l-20-10zm0 40l20-10l20 10l-20 10z" fill="%23fff" fill-opacity="1"/></svg>');
    background-size: 80px 80px;
}

/* Botón general */
.btn {
    display: inline-block; padding: 12px 28px;
    background-image: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
    color: #fff; border-radius: 5px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; transition: transform 0.2s ease, box-shadow 0.3s ease; border: none; cursor: pointer;
}
.btn:hover {
    transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

/* --- ENCABEZADO Y NAVEGACIÓN (VUELVE AL MODO OSCURO) --- */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    background-color: rgba(12, 13, 16, 0.95); /* Fondo oscuro original */
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; z-index: 1000; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header .logo-img { 
    height: 75px; /* Tamaño del logo un poco más grande que el original para que luzca */
    width: auto;
}

header nav ul { display: flex; gap: 30px; }

header nav a { 
    color: var(--text-primary); /* Texto blanco */
    font-weight: 500; text-transform: uppercase; letter-spacing: 1px; font-size: 14px; 
}

header nav a:hover { color: var(--accent-color); }

.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; }

.menu-toggle div { 
    width: 30px; height: 3px; 
    background-color: var(--text-primary); /* Rayitas del menú blanco */
}

/* --- CONTENIDO PRINCIPAL --- */
main { padding: 120px 5% 60px; min-height: 80vh; }

/* --- SECCIONES ESPECÍFICAS --- */
/* Hero (Inicio) */
#home {
    height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 0 10%; margin-top: 0;
    background-image: linear-gradient(rgba(12, 13, 16, 0.7), rgba(12, 13, 16, 0.9)), url('https://images.unsplash.com/photo-1540039155733-5bb30b53aa14?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center;
}
#home h1 { font-size: 5vw; line-height: 1.1; margin-bottom: 20px; }
#home p { font-size: 1.2rem; color: var(--text-muted); max-width: 700px; margin-bottom: 40px; }

/* Nosotros */
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.nosotros-grid h1 { font-size: 3rem; margin-bottom: 30px; }
.nosotros-grid p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 20px; }
.team-img { border-radius: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); }

/* Eventos y Servicios Grid */
.titulo-seccion { text-align: center; font-size: 3rem; margin-bottom: 60px; }
.grid-tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }

/* Tarjetas Eventos (IMÁGENES ARREGLADAS) */
.event-card { background-color: var(--surface-color); border-radius: 10px; overflow: hidden; transition: transform 0.3s ease; }
.event-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6); }

.event-card .event-img {
    height: 350px; /* Altura obligatoria */
    background-size: contain; /* Póster entero */
    background-repeat: no-repeat;
    background-position: center;
    background-color: #000; /* Fondo negro de relleno */
}

.event-details { padding: 30px; }
.event-meta { color: var(--accent-color); font-size: 0.9rem; margin-bottom: 15px; font-weight: bold; }
.event-details p { color: var(--text-muted); margin-bottom: 20px; }

/* Tarjetas Servicios */
.service-card { background-color: var(--surface-color); border-radius: 10px; padding: 40px; text-align: center; border: 1px solid transparent; transition: all 0.3s ease; }
.service-card:hover { border-color: var(--accent-color); background-color: rgba(0, 242, 254, 0.03); }
.icon-container { width: 80px; height: 80px; background-color: var(--background-color); border-radius: 50%; display: flex; justify-content: center; align-items: center; margin: 0 auto 30px; }
.icon-container svg { width: 40px; fill: var(--accent-color); }

/* Contacto */
.contact-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form { background-color: var(--surface-color); padding: 40px; border-radius: 10px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; background-color: var(--background-color); border: 1px solid rgba(255,255,255,0.1); border-radius: 5px; color: #fff; margin-bottom: 20px; }
.contact-form textarea { height: 150px; resize: vertical; }

/* --- PIE DE PÁGINA --- */
footer { padding: 50px 5%; background-color: var(--background-color); text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
footer .logo-img { height: 40px; margin-bottom: 20px; } /* Asegúrate de usar el logo blanco también en el HTML del footer */

/* --- MÓVIL --- */
@media (max-width: 992px) {
    header nav { display: none; position: absolute; top: 80px; left: 0; width: 100%; background-color: rgba(12, 13, 16, 0.98); padding: 30px; }
    header nav.active { display: block; }
    header nav ul { flex-direction: column; align-items: center; gap: 20px; }
    .menu-toggle { display: flex; }
    .nosotros-grid, .contact-content { grid-template-columns: 1fr; }
    #home h1 { font-size: 8vw; }
}