/* 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 */
/* 1. CONTENEDOR CON BORDES REDONDEADOS Y SOMBRA */
    .inicio-slider {
        width: 100%;
        max-width: 1500px; /* Un poco más ancho para que luzca */
        margin: 25px auto;
        background-color: #050505;
        position: relative;
        
        /* Efecto Redondeado */
        border-radius: 30px; 
        overflow: hidden; /* Corta las imágenes para que sigan la curva */
        
        /* Sombrita llamativa (Sombra suave + Sombra de profundidad) */
        box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.05);
        border: 4px solid #fff; /* Marco blanco fino para resaltar el redondeado */
    }

    /* 2. AJUSTE DE ALTURA */
    .carousel-item {
        height: 600px; /* Altura imponente */
        background-color: #a60000;
        transition: opacity 1s ease-in-out !important;
    }

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: contain; 
        display: block;
        padding: 10px; /* Espacio para que la foto no pegue al borde redondeado */
    }

    /* 3. BOTONES MODERNOS (PEQUEÑOS Y FLOTANTES) */
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px !important;
        height: 40px !important;
        background: rgba(255, 255, 255, 0.2) !important;
        backdrop-filter: blur(10px); /* Efecto cristal */
        border: 1px solid rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        top: 50% !important;
        transform: translateY(-50%);
        opacity: 0;
        transition: all 0.4s ease !important;
        margin: 0 25px;
    }

    .inicio-slider:hover .carousel-control-prev,
    .inicio-slider:hover .carousel-control-next {
        opacity: 1;
    }

    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        background: #ad1b27 !important; /* Rojo institucional */
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 0 15px rgba(173, 27, 39, 0.5);
    }

    /* 4. RAYITAS INFERIORES (REDONDEADAS) */
    .carousel-indicators [data-bs-target] {
        width: 40px;
        height: 6px;
        border-radius: 10px;
        background-color: #fff;
        opacity: 0.3;
        transition: all 0.4s ease;
        border: none;
    }

    .carousel-indicators .active {
        background-color: #ad1b27;
        opacity: 1;
        width: 60px;
    }

    /* Ajuste para móviles */
    @media (max-width: 768px) {
        .inicio-slider { border-radius: 20px; margin: 15px; border-width: 2px; }
        .carousel-item { height: 350px; }
        .carousel-control-prev, .carousel-control-next { opacity: 1; margin: 0 10px; }
    }

/* 2. BIENVENIDOS (FONDO ORIGINAL) */
/* La sección principal con imagen FIJA */
    .welcome-hero-original {
        position: relative;
        min-height: 100vh;
        display: flex;
        align-items: center;

        
        /* CONFIGURACIÓN DE IMAGEN */
        background-image: url('images/f2.png'); /* Pon tu ruta aquí */
        background-attachment: fixed; /* Imagen estática al bajar */
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        padding-top: 20px !important; /* Estaba en 60px u 80px, bájalo a 20px */
        padding-bottom: 60px !important;
        min-height: 80vh; /* Opcional: reduce la altura mínima si quieres que ocupe menos pantalla */
        overflow: hidden;
    }

    /* Elimina márgenes sobrantes del título si los hay */   
.welcome-text {
    margin-top: 0 !important; 
    padding-top: 0 !important;
}

    /* Capa oscura (Overlay) para que el texto resalte sobre el fondo */
    .welcome-hero-original::before {
        content: "";
        position: absolute;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(57, 171, 247, 0.114); /* Ajusta la opacidad aquí */
        z-index: 1;
    }


    /* Asegurar que el contenido esté sobre la capa oscura */
    .welcome-hero-original .container {
        position: relative;
        z-index: 2;
    }

    /* Contenedor de escudos: Vertical y centrado */
    .shields-wrapper {
        display: flex;
        flex-direction: column; /* Uno debajo del otro */
        gap: 20px;
        align-items: center;
        margin-top: 0 !important;
    }

    /* Estilo "bonito" para la tarjeta del escudo */
    .shield-card {
        background: rgba(255, 255, 255, 0.1); /* Efecto cristal */
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 20px;
        padding: 15px;
        transition: transform 0.3s ease;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    }

    .shield-card:hover {
        transform: scale(1.05);
        border-color: rgba(255, 255, 255, 0.5);
    }

    /* Animación de flotado */
    .floating-shield {
        max-height: 250px;
        width: auto;
        animation: floatAnim 4s ease-in-out infinite;
    }

    @keyframes floatAnim {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-15px); }
    }

    /* Estilos de texto para fondo oscuro */
    .welcome-text {
        color: #000000;
        text-shadow: 2px 2px 8px rgba(59, 58, 58, 0.297);
    }

    /* Busca o agrega esto */
.welcome-hero-original p.fs-5 {
    color: #000000 !important; /* Cambia este código por el color que quieras */
}
    
    .text-dark-custom { /* Reemplaza text-dark si el fondo es oscuro */
        color: #000000 !important;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .welcome-hero-original { background-attachment: scroll; } /* Mejor rendimiento en móvil */
        .floating-shield { max-height: 180px; }
    }

/* 3. ESTADÍSTICAS DELGADAS */

    .stats-ultra-compact {
        background: linear-gradient(135deg, #ad1b27 0%, #8a151f 100%); /* Degradado institucional */
        padding: 30px 0;
        border-radius: 20px; /* Bordes redondeados para que flote */
        margin: 20px auto;
        max-width: 1300px;
        box-shadow: 0 15px 35px rgba(173, 27, 39, 0.2);
    }

    .stat-mini {
        padding: 10px;
        transition: all 0.4s ease;
        position: relative;
    }

    /* Iconos sutiles de fondo */
    .stat-mini i {
        display: block;
        font-size: 1.5rem;
        color: rgba(255, 193, 7, 0.8); /* Dorado Institucional */
        margin-bottom: 5px;
    }

    .stat-mini h2 {
        font-weight: 800;
        font-size: 1.8rem;
        color: #ffffff;
        letter-spacing: -1px;
        line-height: 1;
    }

    .stat-mini p {
        color: rgba(255, 255, 255, 0.85);
        text-transform: uppercase;
        font-weight: 600;
        font-size: 0.7rem;
        letter-spacing: 1.2px;
        margin-top: 5px;
    }

    /* Divisores elegantes */
    .divider-stats {
        border-left: 1px solid rgba(255, 255, 255, 0.15);
        border-right: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* Efecto interactivo */
    .stat-mini:hover {
        transform: translateY(-5px);
    }

    .stat-mini:hover h2 {
        color: #ffc107; /* El número brilla en dorado al pasar el mouse */
        text-shadow: 0 0 15px rgba(255, 193, 7, 0.4);
    }

    @media (max-width: 768px) {
        .stats-ultra-compact {
            margin: 10px 15px;
            padding: 20px 0;
        }
        .stat-mini h2 { font-size: 1.4rem; }
        .stat-mini p { font-size: 0.6rem; }
    }


/* 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;
    }
}


