/* =========================================================
   HERO Y CONTENIDO PRINCIPAL
   ========================================================= */

.contenido-principal {
    position: relative;
    z-index: 1;
    margin-top: 100vh;
    background: #fff;
}

.hero {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    background: #000;
    z-index: -1;
}

/* =========================================================
   GRADIENTE INFERIOR
   ========================================================= */

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 35%;

    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0),
        #000000
    );

    z-index: 10;
    pointer-events: none;
}

/* =========================================================
   SLIDES
   ========================================================= */

.hero-slides {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;

    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

.hero-slide.activo {
    opacity: 1;
    pointer-events: auto;
}

/* =========================================================
   IMAGEN DE FONDO
   ========================================================= */

.hero-slide-imagen {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide-imagen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================================================
   CONTENIDO
   ========================================================= */

.hero-contenido {
    position: absolute;
    left: 7.5%;
    top: 39%;
    width: min(40%, 620px);

    transform: translateY(-50%);
    z-index: 5;

    color: #fff;
}

/* Animación del contenido */

.hero-slide .hero-contenido > * {
    opacity: 0;
    transform: translateY(25px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.hero-slide.activo .hero-contenido > * {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide.activo .hero-pretexto {
    transition-delay: 0.05s;
}

.hero-slide.activo .hero-titulo {
    transition-delay: 0.15s;
}

.hero-slide.activo .hero-posttexto {
    transition-delay: 0.25s;
}

.hero-slide.activo .hero-botones {
    transition-delay: 0.35s;
}

/* =========================================================
   PRETEXTO
   ========================================================= */

.hero-pretexto {
    font-family: "Manrope", sans-serif;
    font-size: clamp(13px, 1.1vw, 18px);
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.3;
    margin-bottom: 12px;
}

/* =========================================================
   TÍTULO
   ========================================================= */

.hero-contenido h1 {
    margin: 0 0 18px;

    font-family: "Oswald", sans-serif;
    font-weight: 600;
    font-size: clamp(38px, 4vw, 68px);
    line-height: 0.98;

    text-transform: uppercase;
    overflow-wrap: break-word;
}

/* Títulos en PNG */

.hero-titulo-imagen {
    margin-bottom: 12px;
}

.hero-titulo-imagen img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: clamp(80px, 12vh, 145px);
    height: auto;
    object-fit: contain;
    object-position: left center;
}

/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.hero-posttexto {
    max-width: 580px;
    font-family: "Manrope", sans-serif;
    font-size: clamp(15px, 1.35vw, 21px);
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* =========================================================
   BOTONES
   ========================================================= */

.hero-botones {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-boton {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 112px;
    height: 42px;
    padding: 0 20px;

    background: #fff;
    color: #000;

    text-decoration: none;
    font-family: Arial, sans-serif;
    font-weight: 700;
    font-size: 12px;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.hero-boton:hover {
    background: #ff9100;
    color: #fff;
}

/* =========================================================
   CONTROLES DEL SLIDER
   ========================================================= */

.hero-controles {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);

    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-control {
    width: 10px;
    height: 10px;
    padding: 0;

    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);

    cursor: pointer;
}

.hero-control.activo {
    background: #fff;
    transform: scale(1.2);
}

/* =========================================================
   PORTADAS DE REVISTAS
   ========================================================= */

.hero-revistas {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 22px;

    z-index: 20;
    display: flex;
    justify-content: center;
}

.hero-revistas-lista {
    display: flex;
    align-items: flex-end;
    justify-content: center;

    gap: clamp(7px, 0.8vw, 12px);
    width: 90%;
    max-width: 1450px;
}

.hero-revista {
    display: block;
    flex: 0 1 clamp(130px, 14vw, 200px);
    min-width: 0;

    transition: transform 0.25s ease;
}

.hero-revista img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-revista:hover {
    transform: translateY(-8px);
}

/* =========================================================
   INDICADOR DESCUBRÍ MÁS
   ========================================================= */

#hero .hero-scroll {
    position: absolute;
    z-index: 30;

    /* Separa la cápsula de las portadas */
    bottom: 50px;

    left: 50%;
    transform: translateX(-50%);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 11px 20px 11px 22px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50px;
    background: rgba(8, 8, 8, 0.94);
    color: #fff;

    cursor: pointer;
    white-space: nowrap;

    box-shadow: 0 5px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        opacity 0.3s ease;
}

#hero .hero-scroll:hover {
    background: #202020;
    border-color: rgba(255, 255, 255, 0.55);
}

#hero .hero-scroll-text {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1;
    color: #fff;
}

#hero .hero-scroll-icon {
    display: block;
    width: 19px;
    height: 19px;
    flex-shrink: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;

    animation: heroScrollFloat 1.8s ease-in-out infinite;
}

#hero .hero-scroll.oculto {
    opacity: 0;
    pointer-events: none;
}

@keyframes heroScrollFloat {
    0%, 100% {
        transform: translateY(-2px);
    }

    50% {
        transform: translateY(4px);
    }
}

/* =========================================================
   ESCRITORIOS Y VENTANAS ESTRECHAS
   ========================================================= */

@media (min-width: 768px) and (max-width: 1200px) {

    .hero-contenido {
        left: 5%;
        top: 36%;
        width: 44%;
    }

    .hero-contenido h1 {
        font-size: clamp(34px, 4vw, 48px);
        margin-bottom: 14px;
    }

    .hero-pretexto {
        font-size: 14px;
        margin-bottom: 9px;
    }

    .hero-titulo-imagen img {
        max-height: 105px;
    }

    .hero-posttexto {
        font-size: clamp(14px, 1.5vw, 18px);
        line-height: 1.35;
        margin-bottom: 14px;
    }

    .hero-boton {
        min-width: 100px;
        height: 38px;
        padding: 0 15px;
        font-size: 11px;
    }

    .hero-revistas-lista {
        width: 92%;
        gap: 8px;
    }

    .hero-revista {
        flex-basis: clamp(120px, 14vw, 165px);
    }

    #hero .hero-scroll {
       bottom: 50px;
        padding: 10px 17px;
        gap: 10px;
    }

    #hero .hero-scroll-text {
        font-size: 10px;
    }
}

/* =========================================================
   MÓVILES
   ========================================================= */

@media (max-width: 767px) {

    .hero {
        height: 100vh;
        height: 100svh;
        min-height: 0;
    }

    /* Contenido */

    .hero-contenido {
        left: 7%;
        right: 7%;
        top: 38%;
        bottom: auto;
        width: auto;

        transform: translateY(-50%);
        text-align: center;
    }

    .hero-pretexto {
        font-size: 14px;
        letter-spacing: 1.2px;
        margin-bottom: 9px;
    }

    .hero-contenido h1 {
        font-size: clamp(30px, 8vw, 44px);
        line-height: 1;
        margin-bottom: 14px;
    }

    .hero-titulo-imagen img {
        max-width: 100%;
        max-height: 90px;
        margin: 0 auto 10px;
        object-position: center;
    }

    .hero-posttexto {
        max-width: 100%;
        font-size: clamp(13px, 3.8vw, 16px);
        line-height: 1.4;
        letter-spacing: 0.2px;
        margin-bottom: 15px;
    }

    /* Botones */

    .hero-botones {
        justify-content: center;
        gap: 8px;
    }

    .hero-boton {
        flex: 0 1 135px;
        min-width: 0;
        height: 38px;
        padding: 0 12px;
        font-size: 11px;
    }

    /* Portadas */

    .hero-revistas {
        bottom: 18px;
    }

    .hero-revistas-lista {
        width: 92%;
        gap: 8px;
    }

    .hero-revista {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
    }

    .hero-revista:hover {
        transform: none;
    }

    /* Indicador */

    #hero .hero-scroll {
        bottom: 50px;
        gap: 9px;
        padding: 10px 16px 10px 18px;
    }

    #hero .hero-scroll-text {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    #hero .hero-scroll-icon {
        width: 17px;
        height: 17px;
    }

    /* Controles */

    .hero-controles {
        bottom: 4px;
        gap: 8px;
    }

    .hero-control {
        width: 8px;
        height: 8px;
    }
}

/* =========================================================
   MÓVILES CON POCA ALTURA
   ========================================================= */

@media (max-width: 767px) and (max-height: 700px) {

    .hero-contenido {
        top: 34%;
    }

    .hero-pretexto {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .hero-contenido h1 {
        font-size: clamp(27px, 7vw, 36px);
        margin-bottom: 9px;
    }

    .hero-titulo-imagen img {
        max-height: 65px;
    }

    .hero-posttexto {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .hero-boton {
        height: 34px;
    }

    #hero .hero-scroll {
        bottom: 145px;
    }
}

/* =========================================================
   ESCRITORIOS CON POCA ALTURA
   ========================================================= */

@media (min-width: 768px) and (max-height: 750px) {

    .hero-contenido {
        top: 34%;
    }

    .hero-contenido h1 {
        font-size: clamp(32px, 3.5vw, 48px);
        margin-bottom: 12px;
    }

    .hero-titulo-imagen img {
        max-height: 95px;
    }

    .hero-posttexto {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .hero-boton {
        height: 36px;
    }

    .hero-revista {
        flex-basis: clamp(115px, 12vw, 160px);
    }

    #hero .hero-scroll {
        bottom: 50px;
    }
}

/* Ajustes para celulares y pantallas táctiles */

@media (max-width: 900px) and (pointer: coarse) {

    .hero-contenido {
        left: 6%;
        right: 6%;
        width: auto;
        top: 37%;
        bottom: auto;
        transform: translateY(-50%);
        text-align: center;
    }

    .hero-pretexto {
        font-size: 14px;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .hero-posttexto {
        font-size: clamp(13px, 2.2vw, 17px);
        line-height: 1.35;
        letter-spacing: 0;
        margin-bottom: 14px;
    }

    .hero-botones {
        justify-content: center;
        gap: 8px;
    }

    .hero-boton {
        flex: 0 1 150px;
        min-width: 0;
        height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    #hero .hero-scroll {
    bottom: 50px;
}
}
