/* ============================================
   CECIM - Inicio / Hero Carrusel (Estilo CEV)
   Layout: texto centrado + barra inferior con
   stats izquierda | botón centro | info derecha
   ============================================ */

.hero-carousel {
    position: relative;
    width: 100%;
    height: 88vh;
    min-height: 550px;
    overflow: hidden;
    background: #000;
}

.hero-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease-in-out;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay oscuro sobre la imagen */
.hero-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.30) 40%,
        rgba(0,0,0,0.55) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ---- Contenido central (título + script) ---- */
.hero-slide-content {
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 900px;
    margin-bottom: auto;
    margin-top: auto;
}

.hero-slide-content h2 {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 2px 3px 10px rgba(0,0,0,0.6);
    text-transform: uppercase;
    line-height: 1.15;
    letter-spacing: 1px;
}

.hero-slide-content .hero-script {
    font-family: 'Georgia', serif;
    font-size: 2.2rem;
    font-style: italic;
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    margin-bottom: 0;
    color: var(--accent-gold);
}

.hero-slide-content p:not(.hero-script) {
    font-size: 1.1rem;
    margin-top: 12px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0.95;
}

/* ---- Barra inferior estilo CEV ---- */
.hero-bottom-bar {
    position: absolute;
    bottom: 55px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0 80px;
    z-index: 10;
    color: white;
}

.hero-bottom-left,
.hero-bottom-right {
    flex: 1;
    text-align: center;
}

.hero-bottom-left h3,
.hero-bottom-right h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 1px 2px 6px rgba(0,0,0,0.5);
    letter-spacing: 1px;
    line-height: 1.5;
}

.hero-bottom-center {
    flex: 0 0 auto;
}

.hero-bottom-center .btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 36px;
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 40px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

.hero-bottom-center .btn-hero:hover {
    background: rgba(255,255,255,0.15);
    border-color: white;
    transform: scale(1.03);
}

/* ---- Navegación flechas (más grandes estilo CEV) ---- */
.hero-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: rgba(255,255,255,0.6);
    border: none;
    font-size: 3rem;
    width: 60px;
    height: 80px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-nav-btn:hover {
    color: white;
}

.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* ---- Indicadores (dots) ---- */
.hero-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.35);
    border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: white;
    border-color: white;
    transform: scale(1.2);
}

/* ---- Redes sociales flotantes (derecha) ---- */
.hero-social-float {
    position: absolute;
    right: 22px;
    top: 45%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}

.hero-social-float a {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.hero-social-float .social-whatsapp {
    background: #25D366;
}

.hero-social-float .social-instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.hero-social-float .social-facebook {
    background: #1877f2;
}

.hero-social-float .social-tiktok {
    background: #010101;
    border: 1px solid rgba(255,255,255,0.25);
}

.hero-social-float a:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .hero-carousel {
        height: 75vh;
        min-height: 480px;
    }

    .hero-slide-content h2 {
        font-size: 2.5rem;
    }

    .hero-slide-content .hero-script {
        font-size: 1.7rem;
    }

    .hero-bottom-bar {
        padding: 0 40px;
    }

    .hero-bottom-left h3,
    .hero-bottom-right h3 {
        font-size: 0.95rem;
    }

    .hero-bottom-center .btn-hero {
        padding: 12px 28px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .hero-carousel {
        height: 70vh;
        min-height: 420px;
    }

    .hero-slide-content h2 {
        font-size: 1.8rem;
    }

    .hero-slide-content .hero-script {
        font-size: 1.3rem;
    }

    .hero-slide-content p:not(.hero-script) {
        font-size: 0.9rem;
    }

    /* Barra inferior apilada en móvil */
    .hero-bottom-bar {
        flex-direction: column;
        gap: 12px;
        bottom: 50px;
        padding: 0 20px;
    }

    .hero-bottom-left,
    .hero-bottom-right {
        flex: none;
    }

    .hero-bottom-left h3,
    .hero-bottom-right h3 {
        font-size: 0.85rem;
    }

    .hero-bottom-center .btn-hero {
        padding: 10px 24px;
        font-size: 0.82rem;
    }

    .hero-nav-btn {
        font-size: 2rem;
        width: 40px;
        height: 60px;
    }

    .hero-prev { left: 8px; }
    .hero-next { right: 8px; }

    .hero-social-float {
        right: 10px;
        gap: 7px;
    }

    .hero-social-float a {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-carousel {
        height: 65vh;
        min-height: 360px;
    }

    .hero-slide-content h2 {
        font-size: 1.4rem;
    }

    .hero-slide-content .hero-script {
        font-size: 1.1rem;
    }

    .hero-bottom-bar {
        bottom: 40px;
        gap: 8px;
    }

    .hero-bottom-left h3,
    .hero-bottom-right h3 {
        font-size: 0.75rem;
    }

    .hero-nav-btn {
        font-size: 1.6rem;
        width: 35px;
    }

    .hero-social-float {
        display: none;
    }
}
