/* =========================================
   HERO / PAGE HEADER
   ========================================= */

.page-header {
    position: relative;
    width: 100%;
    min-height: 560px;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #fff;
    background: #111;
}

/* =========================================
   SLIDER DE FONDOS
   ========================================= */

.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    opacity: 0;
    transform: scale(1.08);

    animation: heroSlider 20s infinite;
}

/* Imágenes */

.slide-1 {
    background-image: url("../img/hero/hero 01.jpg");
    animation-delay: 0s;
}

.slide-2 {
    background-image: url("../img/hero/hero 02.jpg");
    animation-delay: 5s;
}

.slide-3 {
    background-image: url("../img/hero/hero 03.jpg");
    animation-delay: 10s;
}

.slide-4 {
    background-image: url("../img/hero/hero 04.jpg");
    animation-delay: 15s;
}


/* =========================================
   ANIMACIÓN DEL SLIDER
   ========================================= */

@keyframes heroSlider {

    0% {
        opacity: 0;
        transform: scale(1.08);
    }

    5% {
        opacity: 1;
    }

    25% {
        opacity: 1;
        transform: scale(1);
    }

    30% {
        opacity: 0;
    }

    100% {
        opacity: 0;
        transform: scale(1.08);
    }
}


/* =========================================
   CAPA SOBRE LAS IMÁGENES
   ========================================= */

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.55) 45%,
            rgba(0, 0, 0, 0.25) 100%
        );

    z-index: 2;
}


/* =========================================
   CONTENIDO
   ========================================= */

.hero-content {
    position: relative;
    z-index: 3;

    max-width: 1100px;
    padding: 80px 30px;

    text-align: left;
}


/* Pequeño título */

.hero-subtitle {
    display: inline-block;

    margin-bottom: 20px;
    padding: 8px 18px;

    border-left: 4px solid #ffb300;

    background: rgba(255, 255, 255, 0.10);

    color: #fff;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;

    backdrop-filter: blur(5px);
}


/* Título principal */

.hero-content h1 {
    margin: 0;

    max-width: 850px;

    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.98;

    font-weight: 900;
    letter-spacing: 1px;

    text-transform: uppercase;

    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.hero-content h1 span {
    display: block;

    color: #ffb300;
}


/* Descripción */

.hero-content p {
    max-width: 700px;

    margin: 25px 0;

    color: rgba(255, 255, 255, 0.92);

    font-size: clamp(18px, 2vw, 25px);
    font-weight: 400;

    line-height: 1.5;
}


/* Línea decorativa */

.hero-line {
    width: 90px;
    height: 4px;

    margin: 25px 0;

    background: #ffb300;

    border-radius: 10px;
}


/* =========================================
   BOTÓN
   ========================================= */

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    padding: 14px 25px;

    background: #ffb300;
    color: #111;

    border-radius: 4px;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 1px;
    text-decoration: none;

    transition: all 0.3s ease;
}

.hero-button i {
    transition: transform 0.3s ease;
}

.hero-button:hover {
    background: #fff;
    color: #111;

    transform: translateY(-3px);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-button:hover i {
    transform: translateX(5px);
}


/* =========================================
   INDICADORES
   ========================================= */

.hero-dots {
    position: absolute;
    z-index: 4;

    bottom: 30px;
    left: 50%;

    display: flex;
    gap: 10px;

    transform: translateX(-50%);
}

.dot {
    width: 35px;
    height: 4px;

    background: rgba(255, 255, 255, 0.4);

    border-radius: 10px;
}

.dot.active {
    background: #ffb300;
}


/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 768px) {

    .page-header {
        min-height: 600px;
    }

    .hero-content {
        padding: 70px 25px;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .hero-content h1 {
        font-size: clamp(38px, 11vw, 58px);
    }

    .hero-content p {
        font-size: 18px;
    }

    .hero-line {
        margin: 20px auto;
    }

    .hero-button {
        padding: 13px 20px;
        font-size: 12px;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.55),
                rgba(0, 0, 0, 0.80)
            );
    }
}


@media (max-width: 480px) {

    .page-header {
        min-height: 560px;
    }

    .hero-content {
        padding: 50px 18px;
    }

    .hero-subtitle {
        font-size: 9px;
        padding: 7px 12px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-button {
        width: 100%;
        justify-content: center;
    }

    .hero-dots {
        bottom: 20px;
    }

    .dot {
        width: 25px;
    }
}