/* ============================================
   Hero Slider — Bootstrap 5 Carousel Override
   ============================================ */

/* Sección del slider */
.hero-slider-section {
    padding: 15px 0 5px;
    background: #f8f9fa;
}

/* Contenedor del carrusel */
.hero-slider-section .carousel {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Imágenes del slider */
.hero-slider-section .carousel-item img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
}

/* Transición fade suave */
.hero-slider-section .carousel-fade .carousel-item {
    transition: opacity 0.8s ease-in-out;
}

/* ---- Captions / Texto sobre las imágenes ---- */
.hero-slider-section .carousel-caption {
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.25) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border-radius: 10px;
    padding: 18px 28px;
    bottom: 15%;
    left: 5%;
    right: auto;
    text-align: left;
    max-width: 420px;
    animation: slideCaption 0.6s ease-out;
}

@keyframes slideCaption {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-slider-section .carousel-caption h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-slider-section .carousel-caption p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 10px;
}

.hero-slider-section .text-accent {
    color: #1bd172;
}

/* Botón CTA */
.hero-slider-section .btn-hero {
    display: inline-block;
    padding: 8px 22px;
    background: #1bd172;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-slider-section .btn-hero:hover {
    background: transparent;
    color: #1bd172;
    border-color: #1bd172;
}

.hero-slider-section .btn-hero i {
    margin-right: 6px;
}

/* ---- Indicadores (puntos) ---- */
.hero-slider-section .carousel-indicators {
    margin-bottom: 10px;
}

.hero-slider-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.7);
    margin: 0 5px;
    transition: all 0.3s ease;
    opacity: 1;
}

.hero-slider-section .carousel-indicators button.active {
    background-color: #1bd172;
    border-color: #1bd172;
    transform: scale(1.2);
}

/* ---- Controles prev/next ---- */
.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

.hero-slider-section .carousel-control-prev {
    left: 12px;
}

.hero-slider-section .carousel-control-next {
    right: 12px;
}

.hero-slider-section .carousel:hover .carousel-control-prev,
.hero-slider-section .carousel:hover .carousel-control-next {
    opacity: 1;
}

.hero-slider-section .carousel-control-prev:hover,
.hero-slider-section .carousel-control-next:hover {
    background: rgba(27, 209, 114, 0.85);
}

.hero-slider-section .carousel-control-prev-icon,
.hero-slider-section .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* ============ Responsive ============ */

/* Tablets */
@media (max-width: 991px) {
    .hero-slider-section .carousel-item img {
        height: 320px;
    }
    .hero-slider-section .carousel-caption {
        max-width: 340px;
        padding: 14px 20px;
        bottom: 10%;
    }
    .hero-slider-section .carousel-caption h2 {
        font-size: 1.3rem;
    }
}

/* Móviles */
@media (max-width: 575px) {
    .hero-slider-section {
        padding: 10px 0 0;
    }
    .hero-slider-section .carousel {
        border-radius: 8px;
    }
    .hero-slider-section .carousel-item img {
        height: 220px;
    }
    .hero-slider-section .carousel-caption {
        max-width: 85%;
        left: 50%;
        transform: translateX(-50%);
        bottom: 8%;
        text-align: center;
        padding: 10px 16px;
    }
    .hero-slider-section .carousel-caption h2 {
        font-size: 1.05rem;
    }
    .hero-slider-section .carousel-caption p {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    .hero-slider-section .btn-hero {
        padding: 6px 16px;
        font-size: 0.8rem;
    }
    .hero-slider-section .carousel-indicators button {
        width: 9px;
        height: 9px;
        margin: 0 3px;
    }
    .hero-slider-section .carousel-control-prev,
    .hero-slider-section .carousel-control-next {
        width: 34px;
        height: 34px;
        opacity: 0.7;
    }
}
