
/* =====================================
   NEXORA - PAGINAS INTERIORES
===================================== */

.nexora-interior {
    background: #ffffff;
    color: #152238;
    font-family: 'Inter', Arial, sans-serif;
}

.nexora-interior .logo {
    color: #14233d;
    letter-spacing: 4px;
    font-size: 26px;
    font-weight: 800;
}

/* PORTADA */

.nx-portada-nosotros {
    min-height: 580px;
    display: flex;
    align-items: center;
    padding: 90px 9%;
    color: white;
    background:
        linear-gradient(
            90deg,
            rgba(7, 17, 32, .85),
            rgba(7, 17, 32, .25)
        ),
        url('https://images.unsplash.com/photo-1521587760476-6c12a4b040da?auto=format&fit=crop&w=1920&q=85')
        center 45% / cover no-repeat;
}

.nx-portada-contenido {
    max-width: 850px;
}

.nx-etiqueta {
    font-size: 12px;
    letter-spacing: 4px;
    font-weight: 700;
    color: #bfdbfe;
}

.nx-portada-contenido h1 {
    font-size: clamp(38px, 5vw, 72px);
    line-height: 1.12;
    letter-spacing: -2px;
    margin: 25px 0;
}

.nx-portada-contenido p {
    font-size: 18px;
    line-height: 1.9;
    max-width: 620px;
    color: #e2e8f0;
}

/* SECCIONES */

.nx-seccion {
    padding: 100px 9%;
}

.nx-dos-columnas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 75px;
}

.nx-subtitulo {
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
}

.nx-texto h2,
.nx-encabezado h2,
.nx-invitacion h2 {
    font-size: clamp(30px, 3.5vw, 48px);
    line-height: 1.2;
    letter-spacing: -1.5px;
    margin: 20px 0 28px;
}

.nx-texto p {
    font-size: 16px;
    line-height: 1.9;
    color: #64748b;
    margin-bottom: 20px;
}

/* FOTOGRAFIAS */

.nx-fotografia {
    height: 480px;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
}

.nx-fotografia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.nx-fotografia:hover img {
    transform: scale(1.05);
}

/* BOTONES */

.nx-boton {
    display: inline-block;
    padding: 16px 28px;
    background: #14233d;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 15px;
    transition: background .3s, transform .3s;
}

.nx-boton:hover {
    background: #2563eb;
    transform: translateY(-3px);
}

/* FILOSOFIA */

.nx-filosofia {
    background: #101e32;
    padding: 100px 12%;
    color: white;
    text-align: center;
}

.nx-filosofia h2 {
    max-width: 950px;
    margin: 25px auto;
    font-size: clamp(30px, 4vw, 55px);
    line-height: 1.3;
    font-weight: 600;
}

.nx-filosofia p {
    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.8;
    max-width: 650px;
    margin: auto;
}

/* MISION, VISION Y COMPROMISO */

.nx-encabezado {
    text-align: center;
    margin-bottom: 65px;
}

.nx-propositos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
}

.nx-proposito {
    padding: 35px 0;
    border-top: 2px solid #dbe4f0;
}

.nx-numero {
    font-size: 48px;
    color: #c5d5ec;
    font-weight: 800;
}

.nx-proposito h3 {
    font-size: 25px;
    margin: 25px 0 15px;
}

.nx-proposito p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.9;
}

.nx-suave {
    background: #f5f7fb;
}

/* INVITACION */

.nx-invitacion {
    text-align: center;
    padding: 100px 8%;
}

.nx-invitacion p {
    color: #64748b;
    font-size: 17px;
    line-height: 1.8;
}

/* PIE DE PAGINA */

.nx-footer {
    padding: 55px 8%;
    background: #0c1728;
    color: white;
    text-align: center;
}

.nx-footer strong {
    font-size: 30px;
    letter-spacing: 6px;
}

.nx-footer p,
.nx-footer small {
    color: #94a3b8;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .nx-dos-columnas {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .nx-propositos {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .nx-seccion {
        padding: 65px 7%;
    }

    .nx-fotografia {
        height: 350px;
    }

    .nx-portada-nosotros {
        min-height: 480px;
        padding: 65px 7%;
    }

    .nx-filosofia {
        padding: 70px 7%;
    }
}

/* =====================================
   NEXORA - LECTURA DIGITAL
===================================== */

.nx-portada-lectura {
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 90px 9%;
    color: white;
    background:
        linear-gradient(
            90deg,
            rgba(5, 15, 30, .90),
            rgba(5, 15, 30, .20)
        ),
        url('../../img/hero/hero-3.jpg')
        center / cover no-repeat;
}

.nx-boton-blanco {
    background: white;
    color: #14233d;
}

.nx-boton-blanco:hover {
    background: #dbeafe;
    color: #14233d;
}

.nx-encabezado p {
    color: #64748b;
    line-height: 1.8;
}

/* COLECCIONES */

.nx-colecciones {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.nx-coleccion {
    position: relative;
    height: 450px;
    overflow: hidden;
    border-radius: 12px;
    background: #14233d;
    color: white;
}

.nx-coleccion img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}

.nx-coleccion::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 12, 25, .98),
        rgba(5, 12, 25, .50) 45%,
        transparent 85%
    );
}

.nx-coleccion:hover img {
    transform: scale(1.09);
}

.nx-coleccion-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 28px;
}

.nx-coleccion-info span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #bfdbfe;
}

.nx-coleccion-info h3 {
    font-size: 25px;
    margin: 14px 0;
    line-height: 1.2;
}

.nx-coleccion-info p {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.7;
}

.nx-coleccion-info a,
.nx-coleccion-info small {
    display: inline-block;
    margin-top: 12px;
    padding-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    border-bottom: 1px solid #94a3b8;
}

.nx-coleccion-info small {
    color: #cbd5e1;
    border: none;
}

/* GENEROS */

.nx-generos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.nx-generos article {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #14233d;
    font-size: 15px;
    font-weight: 600;
    transition: .3s ease;
}

.nx-generos article:hover {
    background: #14233d;
    color: white;
    transform: translateY(-4px);
}

/* BENEFICIOS */

.nx-beneficios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 35px;
}

.nx-beneficios span {
    padding: 18px 15px;
    border-left: 3px solid #2563eb;
    background: #f1f5f9;
    font-size: 14px;
    font-weight: 600;
}

/* RESPONSIVE */

@media (max-width: 1100px) {

    .nx-colecciones {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .nx-portada-lectura {
        min-height: 500px;
        padding: 65px 7%;
    }

    .nx-colecciones {
        grid-template-columns: 1fr;
    }

    .nx-generos {
        grid-template-columns: repeat(2, 1fr);
    }

    .nx-beneficios {
        grid-template-columns: 1fr;
    }

    .nx-coleccion {
        height: 400px;
    }

}

/* =====================================
   NEXORA - CONTACTO
===================================== */

.nx-portada-contacto {
    min-height: 530px;
    display: flex;
    align-items: center;
    padding: 90px 9%;
    color: white;
    background:
        linear-gradient(
            90deg,
            rgba(7, 17, 32, .92),
            rgba(7, 17, 32, .30)
        ),
        url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1920&q=85')
        center / cover no-repeat;
}

/* DISTRIBUCION */

.nx-contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: start;
    gap: 80px;
}

.nx-contacto-info h2 {
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.15;
    letter-spacing: -2px;
    margin: 22px 0;
}

.nx-contacto-info p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.9;
}

.nx-contacto-detalle {
    padding: 25px 0;
    border-bottom: 1px solid #e2e8f0;
}

.nx-contacto-detalle span {
    color: #2563eb;
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 700;
}

.nx-contacto-detalle h3 {
    font-size: 21px;
    margin: 15px 0 10px;
}

.nx-contacto-detalle p {
    font-size: 14px;
    margin: 0;
}

/* FORMULARIO */

.nx-formulario {
    padding: 45px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 70px rgba(15, 35, 60, .08);
}

.nx-formulario h2 {
    font-size: 30px;
    margin: 15px 0;
    letter-spacing: -1px;
}

.nx-formulario > p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 35px;
}

.nx-form-fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.nx-campo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 23px;
}

.nx-campo label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.nx-campo input,
.nx-campo select,
.nx-campo textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #dce3ed;
    border-radius: 7px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 14px;
    color: #14233d;
    outline: none;
    transition: .25s ease;
}

.nx-campo input:focus,
.nx-campo select:focus,
.nx-campo textarea:focus {
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .09);
}

.nx-campo textarea {
    resize: vertical;
    min-height: 140px;
}

.nx-campo input::placeholder,
.nx-campo textarea::placeholder {
    color: #94a3b8;
}

.nx-aceptacion {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.nx-aceptacion input {
    accent-color: #14233d;
}

.nx-enviar {
    width: 100%;
    padding: 17px;
    background: #14233d;
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    transition: .3s ease;
}

.nx-enviar:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

#nxRespuesta {
    padding: 16px;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.7;
}

/* PREGUNTAS FRECUENTES */

.nx-faq {
    max-width: 900px;
    margin: auto;
}

.nx-faq details {
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 0;
}

.nx-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 17px;
    font-weight: 600;
    color: #14233d;
    cursor: pointer;
    list-style: none;
}

.nx-faq summary::-webkit-details-marker {
    display: none;
}

.nx-faq summary::after {
    content: "+";
    font-size: 25px;
    font-weight: 400;
    color: #2563eb;
}

.nx-faq details[open] summary::after {
    content: "−";
}

.nx-faq details[open] summary {
    color: #2563eb;
}

.nx-faq details p {
    color: #64748b;
    font-size: 15px;
    line-height: 1.9;
    max-width: 780px;
    margin: 20px 0 5px;
}

/* RESPONSIVE */

@media (max-width: 1000px) {

    .nx-contacto-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

}

@media (max-width: 600px) {

    .nx-formulario {
        padding: 25px;
    }

    .nx-form-fila {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .nx-portada-contacto {
        min-height: 450px;
        padding: 65px 7%;
    }

}

/* =====================================
   NEXORA - CATALOGO DE LIBROS
===================================== */

.nx-portada-libros {
    min-height: 550px;
    display: flex;
    align-items: center;
    padding: 80px 8%;
    color: white;
    background:
        linear-gradient(
            90deg,
            rgba(5, 15, 30, .94),
            rgba(5, 15, 30, .30)
        ),
        url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1920&q=85')
        center / cover no-repeat;
}

/* BUSCADOR */

.nx-buscador {
    display: flex;
    max-width: 680px;
    padding: 7px;
    margin-top: 35px;
    background: white;
    border-radius: 9px;
    gap: 8px;
}

.nx-buscador input[type="search"] {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    padding: 17px;
    font-family: inherit;
    font-size: 15px;
    color: #14233d;
}

.nx-buscador button {
    border: none;
    background: #2563eb;
    color: white;
    padding: 16px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* DISTRIBUCION DEL CATALOGO */

.nx-biblioteca {
    max-width: 1800px;
    margin: auto;
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 45px;
    padding: 75px 5%;
}

/* MENU LATERAL */

.nx-filtros-laterales {
    border-right: 1px solid #e2e8f0;
    padding-right: 25px;
}

.nx-filtros-laterales h2 {
    font-size: 25px;
    margin: 15px 0;
}

.nx-filtros-laterales > p {
    font-size: 13px;
    line-height: 1.8;
    color: #64748b;
}

.nx-lista-categorias {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 30px;
}

.nx-lista-categorias a {
    padding: 14px 16px;
    color: #475569;
    font-size: 14px;
    border-radius: 7px;
    transition: .25s ease;
}

.nx-lista-categorias a:hover {
    background: #eff6ff;
    color: #2563eb;
}

.nx-lista-categorias a.activo {
    background: #14233d;
    color: white;
    font-weight: 600;
}

.nx-limpiar {
    display: inline-block;
    margin: 25px 0;
    color: #2563eb;
    font-size: 13px;
    font-weight: 600;
}

.nx-lateral-digital {
    padding: 30px 20px;
    border-radius: 10px;
    margin-top: 30px;
    color: white;
    background:
        linear-gradient(
            rgba(8, 20, 40, .70),
            rgba(8, 20, 40, .95)
        ),
        url('../../img/hero/hero-1.jpg')
        center / cover;
}

.nx-lateral-digital span {
    font-size: 10px;
    letter-spacing: 2px;
    color: #bfdbfe;
}

.nx-lateral-digital h3 {
    font-size: 23px;
    line-height: 1.3;
}

.nx-lateral-digital p {
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.8;
}

.nx-lateral-digital a {
    display: inline-block;
    background: white;
    color: #14233d;
    padding: 12px 16px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

/* ENCABEZADO */

.nx-catalogo-encabezado {
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 35px;
}

.nx-catalogo-encabezado h2 {
    font-size: clamp(26px, 3vw, 38px);
    letter-spacing: -1px;
    margin: 12px 0;
}

.nx-catalogo-encabezado p {
    font-size: 14px;
    color: #64748b;
}

.nx-orden {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.nx-orden label {
    font-size: 12px;
    color: #64748b;
}

.nx-orden select {
    padding: 12px;
    border: 1px solid #dce4ef;
    border-radius: 6px;
    background: white;
    color: #334155;
    font-family: inherit;
}

/* TARJETAS */

.nx-libros-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(205px, 1fr));
    gap: 25px;
}

.nx-libro {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: .3s ease;
}

.nx-libro:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(20, 35, 61, .10);
}

.nx-libro-portada {
    position: relative;
    height: 300px;
    padding: 30px 20px 20px;
    background: #f1f4f8;
    overflow: hidden;
}

.nx-libro-portada img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .5s ease;
}

.nx-libro:hover .nx-libro-portada img {
    transform: scale(1.04);
}

.nx-libro-estado {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
}

.nx-libro-estado.en-stock {
    background: #e5f6ed;
    color: #166534;
}

.nx-libro-estado.sin-stock {
    background: #fef0df;
    color: #92400e;
}

.nx-sin-portada {
    height: 100%;
    display: grid;
    place-items: center;
    background: #14233d;
    color: #cbd5e1;
    letter-spacing: 4px;
    font-size: 14px;
}

.nx-libro-portada [hidden] {
    display: none !important;
}

/* INFORMACION */

.nx-libro-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 18px;
}

.nx-libro-categoria {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #2563eb;
}

.nx-libro-info h3 {
    font-size: 17px;
    line-height: 1.5;
    margin: 12px 0 6px;
    overflow-wrap: anywhere;
}

.nx-libro-autor {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 25px;
}

/* ACCIONES */

.nx-libro-acciones {
    display: grid;
    gap: 9px;
    margin-top: auto;
}

.nx-libro-acciones form {
    margin: 0;
}

.nx-prestamo,
.nx-favorito {
    display: block;
    width: 100%;
    padding: 13px 8px;
    text-align: center;
    border-radius: 6px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: .25s ease;
}

.nx-prestamo {
    background: #14233d;
    color: white;
    border: 1px solid #14233d;
}

.nx-prestamo:hover {
    background: #2563eb;
    border-color: #2563eb;
}

.nx-favorito {
    background: white;
    border: 1px solid #dce4ef;
    color: #334155;
}

.nx-favorito:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #93c5fd;
}

.nx-prestamo:disabled {
    background: #e2e8f0;
    border-color: #e2e8f0;
    color: #64748b;
    cursor: not-allowed;
}

/* SIN RESULTADOS */

.nx-catalogo-vacio {
    padding: 80px 25px;
    text-align: center;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.nx-catalogo-vacio h3 {
    font-size: 28px;
}

.nx-catalogo-vacio p {
    color: #64748b;
}

/* RESPONSIVE */

@media (max-width: 1000px) {

    .nx-biblioteca {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 25px;
    }

}

@media (max-width: 750px) {

    .nx-biblioteca {
        grid-template-columns: 1fr;
        padding: 45px 5%;
    }

    .nx-filtros-laterales {
        border-right: none;
        padding: 0 0 20px;
        border-bottom: 1px solid #e2e8f0;
    }

    .nx-lista-categorias {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .nx-lateral-digital {
        display: none;
    }

    .nx-portada-libros {
        min-height: 480px;
        padding: 65px 7%;
    }

    .nx-libros-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .nx-libro-portada {
        height: 230px;
        padding: 30px 10px 15px;
    }

    .nx-libro-info {
        padding: 15px 12px;
    }

    .nx-buscador button {
        padding: 12px;
    }

}

@media (max-width: 360px) {

    .nx-libros-grid {
        grid-template-columns: 1fr;
    }

}
