
/* =====================================
   NEXORA - PAGINA PRINCIPAL
===================================== */

.nx-inicio {
    background: #ffffff;
    color: #14233d;
}

.nx-home-seccion {
    padding: 95px 7%;
}

.nx-home-suave {
    background: #f5f7fb;
}

.nx-home-encabezado {
    text-align: center;
    max-width: 850px;
    margin: 0 auto 55px;
}

.nx-home-encabezado h2,
.nx-home-fila h2 {
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -1.8px;
    line-height: 1.2;
    margin: 18px 0;
}

.nx-home-encabezado p,
.nx-home-fila p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.8;
}

/* EXPLORA NUEVOS MUNDOS */

.nx-mundos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.nx-mundo {
    position: relative;
    display: block;
    height: 430px;
    overflow: hidden;
    border-radius: 12px;
    background: #14233d;
    color: white;
}

.nx-mundo img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s ease;
}

.nx-mundo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(4, 12, 25, .98),
        rgba(4, 12, 25, .40) 50%,
        transparent
    );
}

.nx-mundo:hover img {
    transform: scale(1.09);
}

.nx-mundo-texto {
    position: absolute;
    z-index: 2;
    bottom: 0;
    padding: 32px;
}

.nx-mundo-texto span {
    color: #bfdbfe;
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
}

.nx-mundo-texto h3 {
    font-size: clamp(24px, 2.5vw, 34px);
    margin: 15px 0;
}

.nx-mundo-texto p {
    color: #e2e8f0;
    font-size: 14px;
    line-height: 1.7;
}

.nx-mundo-texto strong {
    display: inline-block;
    margin-top: 15px;
    font-size: 13px;
}

/* ENCABEZADO DEL CATALOGO */

.nx-home-fila {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 35px;
}

.nx-home-enlace {
    color: #2563eb;
    font-weight: 600;
    font-size: 14px;
    padding-bottom: 15px;
}

/* CARRUSEL DE LIBROS */

.nx-home-carrusel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    gap: 24px;
    overflow-x: auto;
    padding: 10px 3px 25px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #94a3b8 #e2e8f0;
}

.nx-home-libro {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    transition: .3s ease;
}

.nx-home-libro:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px #14233d15;
}

.nx-home-libro-imagen {
    height: 290px;
    padding: 20px;
    background: #edf1f6;
}

.nx-home-libro-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nx-home-sin-portada {
    height: 100%;
    display: grid;
    place-items: center;
    background: #14233d;
    color: white;
    font-size: 13px;
    letter-spacing: 4px;
}

.nx-home-libro-imagen [hidden] {
    display: none !important;
}

.nx-home-libro-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
}

.nx-home-categoria {
    color: #2563eb;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.nx-home-libro-info h3 {
    font-size: 16px;
    line-height: 1.5;
    margin: 12px 0 5px;
    overflow-wrap: anywhere;
}

.nx-home-libro-info p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 18px;
}

.nx-home-estado {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

.nx-home-estado.disponible {
    color: #15803d;
}

.nx-home-estado.agotado {
    color: #b45309;
}

.nx-home-libro-info a {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    color: #14233d;
}

/* BANNER DE MANGAS */

.nx-home-anime {
    min-height: 600px;
    display: flex;
    align-items: center;
    padding: 90px 9%;
    color: white;
    background:
        linear-gradient(
            90deg,
            rgba(5, 15, 30, .93),
            rgba(5, 15, 30, .15)
        ),
        url('../../img/hero/hero-3.jpg')
        center / cover no-repeat;
}

.nx-home-banner-texto {
    max-width: 680px;
}

.nx-home-banner-texto > span {
    color: #bfdbfe;
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
}

.nx-home-banner-texto h2 {
    font-size: clamp(38px, 5vw, 68px);
    line-height: 1.15;
    letter-spacing: -2px;
}

.nx-home-banner-texto p {
    font-size: 17px;
    line-height: 1.9;
    color: #e2e8f0;
}

/* HISTORIAS DE CINE */

.nx-home-cine {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.nx-home-cine article {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.nx-home-cine img {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.nx-home-cine article > div {
    padding: 25px;
}

.nx-home-cine span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #2563eb;
}

.nx-home-cine h3 {
    font-size: 23px;
    margin: 15px 0;
}

.nx-home-cine p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.8;
}

.nx-home-centrado {
    text-align: center;
    margin-top: 35px;
}

/* GENEROS */

.nx-home-generos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.nx-home-generos a {
    padding: 35px 15px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #14233d;
    font-weight: 600;
    text-align: center;
    transition: .3s ease;
}

.nx-home-generos a:hover {
    background: #14233d;
    color: white;
    transform: translateY(-4px);
}

/* FOOTER */

.nx-home-footer {
    padding: 70px 7% 25px;
    background: #0b1628;
    color: white;
    text-align: left;
}

.nx-footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 45px;
    padding-bottom: 50px;
}

.nx-footer-marca h2 {
    font-size: 30px;
    letter-spacing: 5px;
    margin: 0 0 20px;
}

.nx-footer-marca p {
    font-size: 14px;
    line-height: 1.8;
    color: #94a3b8;
    max-width: 280px;
}

.nx-footer-grid h3 {
    font-size: 15px;
    margin-bottom: 25px;
}

.nx-footer-grid a {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 17px;
}

.nx-footer-grid a:hover {
    color: white;
}

.nx-footer-inferior {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid #ffffff20;
    padding-top: 25px;
    color: #94a3b8;
    font-size: 12px;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .nx-home-seccion {
        padding: 65px 6%;
    }

    .nx-mundos,
    .nx-home-cine {
        grid-template-columns: 1fr;
    }

    .nx-mundo {
        height: 360px;
    }

    .nx-home-generos {
        grid-template-columns: repeat(2, 1fr);
    }

    .nx-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nx-home-anime {
        min-height: 500px;
    }
}

@media (max-width: 550px) {

    .nx-home-carrusel {
        grid-auto-columns: 175px;
        gap: 15px;
    }

    .nx-home-libro-imagen {
        height: 235px;
    }

    .nx-footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nx-home-generos a {
        padding: 25px 10px;
    }

    .nx-mundo-texto {
        padding: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .nx-inicio *,
    .nx-inicio *::before,
    .nx-inicio *::after {
        transition: none !important;
    }
}
/* ========================================
   NEXORA - VIDEOS CINEMATOGRAFICOS
======================================== */

.nx-home-cine article .nx-video-marco {
    position: relative;
    width: 100%;
    aspect-ratio: 2.2 / 1;
    overflow: hidden;
    padding: 0;
    background: #101010;
    border-radius: 9px 9px 0 0;
    container-type: size;
}

.nx-home-cine .nx-video-marco video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100cqh;
    height: 100cqw;
    max-width: none;
    max-height: none;
    object-fit: cover;
    transform: translate(-50%, -50%) rotate(-90deg);
    display: block;
    pointer-events: none;
}