/* IA Latam Custom Styles V3 - Final */

/* --- 1. Definición de Fuentes --- */
@font-face {
    font-family: 'Helvetica W01 Light';
    src: url('../fonts/HelveticaW01-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

/* --- 2. Estilos Base --- */
body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Helvetica W01 Light', sans-serif;
}

/* --- 3. Hero Section Background (Página Pública) --- */
.hero-bg {
    position: relative;
    overflow: hidden;
    background-color: #010103;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    backdrop-filter: blur(150px);
    z-index: 2;
}

.lava-lamp {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.lava-lamp .blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.4;
    mix-blend-mode: color-dodge;
}

/* Definiciones de blobs existentes para la página pública */
.blob:nth-child(1) { width: 300px; height: 300px; background: #001FC7; animation: move 30s infinite alternate; top: 10%; left: 15%; }
.blob:nth-child(2) { width: 250px; height: 250px; background: #54BAFF; animation: move 35s infinite alternate-reverse; top: 40%; right: 10%; }
.blob:nth-child(3) { width: 320px; height: 320px; background: #001FC7; animation: move 40s infinite alternate; bottom: 5%; left: 40%; }
.blob:nth-child(4) { width: 280px; height: 280px; background: #54BAFF; animation: move 45s infinite alternate-reverse; bottom: 20%; right: 30%; }

@keyframes move {
    from {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    to {
        transform: translate(80px, -60px) scale(1.2) rotate(120deg);
    }
}

/* --- 4. Estilos de Tarjetas y Componentes --- */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
}

.team-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: scale(1.05);
}

.team-card .p-4 {
    padding: 1rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(84, 186, 255, 0.2);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(84, 186, 255, 0.1);
    border-color: rgba(84, 186, 255, 0.5);
}

.blog-card-image-wrapper {
    height: 200px;
    overflow: hidden;
}

.blog-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* INICIO: Estilo para Tarjetas de Eventos */
.event-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(84, 186, 255, 0.2);
    border-radius: 1rem;
    overflow: hidden; /* Clave para que la imagen se ajuste al radio */
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.event-card .card-body {
    padding: 1.5rem; /* 24px de espacio interno */
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(84, 186, 255, 0.1);
    border-color: rgba(84, 186, 255, 0.5);
}
/* FIN: Estilo para Tarjetas de Eventos */


/* ============================================================
--- SECCIÓN 5: ESTILOS DEL TEMA OSCURO DE LA APP ---
============================================================
*/

/* 1. Fondo oscuro y texto claro */
body.bg-dark {
    background-color: #010103 !important;
    color: #f8f9fa;
}

/* 2. Arreglo de color de texto en tarjetas */
.stat-card,
.event-card,
.blog-card,
.team-card {
    color: inherit;
}

/* 3. Arreglo de color de títulos */
body.bg-dark h1,
body.bg-dark h2,
body.bg-dark h3,
body.bg-dark h4,
body.bg-dark h5,
body.bg-dark h6 {
    color: inherit;
}

/* 4. Arreglo de texto 'muted' */
.text-muted,
.card-text.text-muted {
    color: #adb5bd !important;
}

/* ============================================================
--- SECCIÓN 6: (NUEVA) ESTILOS DE FONDO PARA EL LOGIN ---
============================================================ */
.login-bg {
    position: relative;
    overflow: hidden;
    height: 100vh; /* Asegura que ocupe toda la altura de la ventana */
    width: 100vw;  /* Asegura que ocupe todo el ancho de la ventana */
    background-color: #000000; /* Fondo negro */
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-bg .login-blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    filter: blur(80px); /* Efecto blur */
    z-index: 1; /* Detrás del formulario */
}

.login-bg .login-blob {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6; /* Un poco más opaco para el login */
    mix-blend-mode: screen; /* Efecto de mezcla para el "lava lamp" */
    animation: move 40s infinite alternate; /* Reusamos la animación 'move' */
}

.login-bg .login-blob:nth-child(1) {
    width: 400px;
    height: 400px;
    background: #003366; /* Azul oscuro */
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.login-bg .login-blob:nth-child(2) {
    width: 350px;
    height: 350px;
    background: #000033; /* Azul muy oscuro, casi negro */
    top: 50%;
    left: 60%;
    animation-delay: -10s;
    animation-duration: 45s;
}

.login-bg .login-blob:nth-child(3) {
    width: 300px;
    height: 300px;
    background: #004488; /* Otro tono de azul */
    bottom: 5%;
    left: 30%;
    animation-delay: -20s;
    animation-duration: 50s;
}

.login-bg .login-blob:nth-child(4) {
    width: 450px;
    height: 450px;
    background: #000022; /* Negro con un toque de azul */
    top: 20%;
    right: 5%;
    animation-delay: -30s;
    animation-duration: 55s;
}

/* Para asegurar que el contenido del login esté por encima */
.login-container {
    z-index: 2; 
    position: relative;
}