/* VARIABLES */
:root {
    --primary: #ad1b27;
    --secondary: #15253D;
    --accent: #ffc107;
}

/* RESET CORRIMIENTO */
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    width: 100% !important;
    margin: 0; padding: 0;
    font-family: 'Poppins', sans-serif;
}

/* 1. SLIDER */
.inicio-slider img { height: 480px; object-fit: cover; border-bottom: 5px solid var(--primary); }

/* 2. BIENVENIDOS (FONDO ORIGINAL) */
.welcome-hero-original {
    background: linear-gradient(rgba(255,255,255,0.8), rgba(255,255,255,0.8)), url('../images/f1.jpg') no-repeat center center/cover;
    padding: 80px 0;
}
.floating-logo { animation: float 4s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* 3. ESTADÍSTICAS DELGADAS */
.stats-ultra-compact {
    background: var(--primary);
    color: white;
    width: 80%;
    margin: -30px auto 0;
    position: relative;
    z-index: 20;
    border-radius: 50px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(173, 27, 39, 0.4);
}
.stat-mini h2 { font-weight: 800; font-size: 1.6rem; color: var(--accent); }
.stat-mini p { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.divider-stats { border-left: 1px solid rgba(255,255,255,0.2); border-right: 1px solid rgba(255,255,255,0.2); }

/* 4. NIVELES (FONDO OPACO + PÍLDORA BLANCA) */
.seccion-niveles-modern {
    position: relative;
    padding: 100px 0;
    background: url('../images/22f.jpg') no-repeat center center fixed;
    background-size: cover;
}
.overlay-glass {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(150, 10, 26, 0.82); /* Opacidad corregida */
}

.card-modern { border-radius: 25px; overflow: hidden; transition: 0.4s; height: 100%; }
.card-modern:hover { transform: translateY(-10px); }
.img-wrapper { height: 220px; overflow: hidden; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   NUEVO ESTILO PREMIUM PARA TÍTULO DE NIVELES
   ========================================================================== */
.header-niveles-premium {
    position: relative;
    z-index: 10;
}

.header-niveles-premium .pre-titulo {
    color: var(--accent); /* Amarillo Dorado */
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 5px;
    font-size: 0.9rem;
    margin-bottom: 5px;
    display: block;
    animation: fadeInDown 1s ease;
}

.header-niveles-premium .titulo-principal {
    color: #ffffff;
    font-size: 3.5rem; /* Más grande e impactante */
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin: 0;
    line-height: 1;
    text-shadow: 0 10px 20px rgba(0,0,0,0.4);
}

.adorno-inferior {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.adorno-inferior .linea {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent));
    border-radius: 5px;
}

.adorno-inferior .linea:last-child {
    background: linear-gradient(to left, transparent, var(--accent));
}

.adorno-inferior i {
    color: #ffffff;
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px var(--accent));
}

/* Ajuste para Celular */
@media (max-width: 768px) {
    .header-niveles-premium .titulo-principal {
        font-size: 2.2rem;
    }
    .header-niveles-premium .pre-titulo {
        letter-spacing: 3px;
        font-size: 0.7rem;
    }
    .adorno-inferior .linea {
        width: 40px;
    }
}

/* 5. ENLACES (GIRO 3D) */
.enlace-card-animated {
    background: white; padding: 40px 20px; border-radius: 30px;
    display: block; text-decoration: none !important; transition: 0.4s;
    border: 1px solid #eee; margin-bottom: 20px;
}
.enlace-card-animated:hover { background: var(--primary); }
.enlace-card-animated:hover h3 { color: white !important; }

.icon-rotate { 
    width: 80px; height: 80px; border-radius: 50%; 
    display: flex; align-items: center; justify-content: center; 
    margin: 0 auto 20px; font-size: 35px; transition: 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.enlace-card-animated:hover .icon-rotate { transform: rotateY(360deg); background: white !important; color: var(--primary) !important; }

.trophy { background: #fff3cd; color: #856404; }
.grad { background: #cfe2ff; color: #084298; }
.mail { background: #f8d7da; color: #842029; }
.enlace-card-animated h3 { font-size: 1.3rem; color: #333; font-weight: 700; transition: 0.3s; }

/* 6. TABLÓN (REDONDITO CON LÍNEAS) */
.header-tablon-modern { display: flex; align-items: center; gap: 20px; justify-content: center; }
.tablon-line { flex: 1; height: 2px; background: rgba(173, 27, 39, 0.2); }
.tablon-pill-red {
    background: var(--primary); color: white; padding: 12px 50px;
    border-radius: 50px; font-weight: 800; text-transform: uppercase;
    font-size: 1.5rem; border-bottom: 4px solid var(--accent);
    white-space: nowrap;
}

/* Personalización de los botones de la galería */
.custom-nav-icon {
    background-color: var(--primary); /* El rojo institucional */
    border-radius: 50%;
    padding: 20px;
    background-size: 60%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.carousel-control-prev:hover .custom-nav-icon,
.carousel-control-next:hover .custom-nav-icon {
    transform: scale(1.1);
    background-color: var(--secondary); /* Cambia al azul oscuro al pasar el mouse */
}

/* Indicadores circulares (los puntitos de abajo) */
.carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary);
    margin: 0 5px;
}


/* REDES SOCIALES MODERNAS */
.social-modern-bar { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 10px; }
.social-modern-btn {
    width: 50px; height: 50px; border-radius: 15px; 
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 24px; text-decoration: none; transition: 0.3s;
}
.social-modern-btn:hover { transform: scale(1.1) translateX(-5px); color: white; }
.fb { background: #1877F2; } .ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); } .wa { background: #25D366; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .stats-ultra-compact { width: 95%; margin-top: -25px; }
    .pildora-blanca { font-size: 1.4rem; padding: 10px 30px; }
    .tablon-pill-red { font-size: 1.1rem; padding: 10px 30px; }
    .tablon-line { display: none; }
    .social-modern-bar {
        top: auto; bottom: 0; left: 0; right: 0; width: 100%;
        flex-direction: row; transform: none; padding: 10px;
        background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
        justify-content: space-around; border-radius: 20px 20px 0 0;
    }
}