/* ==========================================================
   SECCIÓN BANNER PRINCIPAL CON CARRUSEL
   ========================================================== */

.hero-section {
    padding: 100px 8%;
    min-height: 400px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Contenedor en cuadrícula para estructurar texto y fotos */
.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    width: 100%;
}

.hero-content {
    max-width: 600px;
}

.hero-tag {
    display: inline-block; /* Asegura el correcto espaciado interno */
    background-color: var(--white);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.hero-content h2 {
    font-size: 42px;
    color: #333;
    margin: 20px 0;
    line-height: 1.2;
}

.hero-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-hero {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 25px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 5px 15px rgba(255, 182, 193, 0.4);
}

.btn-hero i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.btn-hero:hover {
    background-color: #ff99a8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 182, 193, 0.6);
}

.btn-hero:hover i {
    transform: translateX(4px);
}

/* --- ESTILOS EXCLUSIVOS DEL CARRUSEL --- */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 420px;
    border-radius: 30px; /* Bordes redondeados suaves estilo tierno/bebé */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

/* Clase que inyecta JS para mostrar la foto actual */
.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-position: center;
}

/* Indicadores inferiores (Puntitos) */
.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--white);
    transform: scale(1.3); /* Crece sutilmente el puntito activo */
}


/* ==========================================================
   VISTA RESPONSIVA AJUSTADA
   ========================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr; /* Cambia a una sola columna */
        gap: 40px;
    }
    
    .hero-section {
        padding: 80px 5%;
    }

    .hero-content {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-carousel {
        height: 350px; /* Reduce altura en pantallas medianas */
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 5%;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-carousel {
        height: 280px; /* Altura ideal muy fluida para móviles */
    }
}