/* ==========================================================
    HERO BANNER CON SLIDES DE FONDO SUAVES Y OPACOS
   ========================================================== */
.hero-banner {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #fff;
    z-index: 0;
}

/*  Fondo con slideshow dinámico */
.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: heroSlide 30s infinite ease-in-out;
    z-index: 0;
    opacity: 0.35;
    filter: brightness(0.6);
}

/*  Capa decorativa naranja suave encima */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(249, 115, 22, 0.15), transparent 70%);
    z-index: 1;
}

/*  Contenido principal */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 2rem;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
    line-height: 1.2;
}

/*  Botones */
.btn-hero-primary {
    background-color: #f97316;
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-hero-primary:hover {
    background-color: #1a237e;
}

.btn-hero-outline {
    border: 2px solid #f97316;
    color: #f97316;
    padding: 0.75rem 1.75rem;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-hero-outline:hover {
    background-color: #f97316;
    color: #fff;
}
/*  Separación entre los botones del hero banner */
.hero-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem; /* aumenta o reduce este valor según lo que necesites */
    margin-top: 1.5rem; /* agrega espacio entre el texto y los botones */
}

/* ==========================================================
    ANIMACIÓN DE SLIDES DE FONDO
   ========================================================== */

/* Preload de imágenes del hero */
.hero-banner::after {
  content: "";
  display: none;
  background-image:
    url("/assets/images/hero_images/pinturas.png"),
    url("/assets/images/hero_images/tools.jpg"),
    url("/assets/images/hero_images/trupper.png"),
    url("/assets/images/hero_images/mk.png"),
    url("/assets/images/hero_images/gardent.png"),
    url("/assets/images/hero_images/stihl.png");
}


@keyframes heroSlide {
    0% {
        background-image: url("/assets/images/hero_images/pinturas.png");
    }
    20% {
        background-image: url("/assets/images/hero_images/tools.jpg");
    }
    40% {
        background-image: url("/assets/images/hero_images/trupper.png");
    }
    60% {
        background-image: url("/assets/images/hero_images/mk.png");
    }
    80% {
        background-image: url("/assets/images/hero_images/gardent.png");
    }
    100% {
        background-image: url("/assets/images/hero_images/stihl.png");
    }
}
