/* ==========================================================================
   1. VARIABLES / CONFIGURACIÓN
   ========================================================================== */

/*
 * Baskerville: 400 Regular | 600 SemiBold | 700 Bold
 * 
 */
@font-face {
    font-family: "Baskerville";
    src: url("../fonts/faces/Baskerville-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Baskerville";
    src: url("../fonts/faces/Baskerville-Regular.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Baskerville";
    src: url("../fonts/faces/Baskerville-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Baskerville";
    src: url("../fonts/faces/Baskerville-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

/*
 * Futura: solo Medium + Bold en disco.
 * 400–600 → Medium 
 * 700 → Bold.
 */
@font-face {
    font-family: "Futura";
    src: url("../fonts/faces/Futura-Medium.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Futura";
    src: url("../fonts/faces/Futura-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Futura";
    src: url("../fonts/faces/Futura-Medium.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: "Futura";
    src: url("../fonts/faces/Futura-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: block;
}

[v-cloak] {
    display: none !important;
}


/* ==========================================================================
   2. ESTILOS GLOBALES
   ========================================================================== */

.nd-section {
    background: #f5f4f0;
    padding-top: clamp(2.5rem, 5vw, 5.5rem);
    padding-bottom: clamp(2.5rem, 5vw, 5.5rem);
}

@media (min-width: 992px) {
    .nd-section {
        padding-top: 5.5rem;
        padding-bottom: 5.5rem;
    }
}

.nd-section-title {
    font-family: "Baskerville";
    font-weight: 400;
    color: #1a1a1a;
}

/* Títulos de sección — base compartida */
.nd-section-title--libros,
.nd-section-title--editoriales,
.nd-section-title--librerias,
.nd-section-title--contacto {
    font-family: "Baskerville";
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    letter-spacing: 0.01em;
    color: #1a1a1a;
    font-weight: 400;

}



/* Responsive unificado de títulos de sección */
@media (max-width: 575.98px) {
    .nd-section-title--libros {
        font-size: 1.75rem;
    }

    .nd-section-header-row .nd-section-title--libros {
        padding-right: 3rem;
        font-size: 1.75rem;
    }

    .nd-section-header-row .nd-section-title--editoriales {
        padding-right: 2.75rem;
        font-size: 1.35rem;
        line-height: 1.25;
    }
}

.nd-kicker {
    font-family: "Futura", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.nd-section-icon {
    height: 2.5rem;
    max-width: 12rem;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.nd-section-icon--libros {
    height: 5rem;
}

.nd-section-icon--editorial {
    height: 4.375rem;
}

.nd-section-icon--directorio {
    height: 4.375rem;
}

.nd-section-header-row {
    position: relative;
    gap: 1rem;
}

.nd-section-libros .container-xl,
.nd-section-editoriales .container-xl,
.nd-section-librerias .container-xl {
    overflow: visible;
}

/* Tipografía compartida: hero, libros, editoriales, librerías, contacto.
   Edita solo este bloque para cambiar fuente/tamaño de todos. */
.nd-hero-btn-acceso,
.nd-btn,
.nd-btn-pill,
.nd-btn-filter,
.nd-btn-submit {
    font-family: "Futura", sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
}

.nd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

/* Familia oscura compartida */
.nd-btn-dark,
.nd-btn-pill,
.nd-btn-filter,
.nd-btn-submit,
.nd-auth-btn {
    color: #ffffff;
    background: #1a1a1a;
}

.nd-btn-dark:hover,
.nd-btn-pill:hover,
.nd-btn-filter:hover,
.nd-auth-btn:hover:not(:disabled) {
    color: #ffffff;
    background: #333333;
}

.nd-btn-pill {
    display: inline-block;
    border-radius: 10px;
    padding: 0.8rem 2.2rem;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nd-btn-pill:hover {
    transform: translateY(-2px);
}

.nd-btn-filter {
    border: none;
    border-radius: 10px !important;
    padding: 0.875rem 1.5rem;
    text-transform: uppercase;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nd-btn-submit {
    width: 100%;
    padding: 0.875rem 2rem;
    text-transform: uppercase;
    border-radius: 10px;
}

/* Botones auth reutilizados en mi_perfil (layout auth: modules/login.php) */
.nd-auth-btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font-family: "Futura", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nd-auth-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.nd-auth-btn:disabled {
    background: #d2d2d2;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nd-auth-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-family: "Futura", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #1a1a1a;
    background: #f3f0e1;
    border-radius: 10px;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.nd-auth-btn-secondary:hover {
    color: #1a1a1a;
    background: #e7e4d4;
    transform: translateY(-1px);
}

/* Filtros de país (editoriales) — chips, no CTA principal */
.nd-filtro-btn {
    padding: 0.4rem 1.2rem;
    font-family: "Futura", sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #333333;
    background: #ffffff;
    border: 1px solid #e0e0de;
    border-radius: 30px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nd-filtro-btn:hover {
    background: #eaeaea;
}

.nd-filtro-btn.is-active {
    color: #ffffff;
    background: #1a1a1a;
    border-color: #1a1a1a;
}

/* Hero CTA — tipografía viene del grupo unificado arriba */
.nd-hero-btn-acceso {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    min-width: 13.125rem;
    padding: 1.125rem 2.75rem;
    color: #1a1a1a;
    background: #ffffff;
    border-radius: 15px;
    border: 2px solid #c0bebe;
    text-decoration: none;
    cursor: pointer;
}

.nd-hero-btn-acceso:hover {
    background: #d8d8d8;
    color: #1a1a1a;
}

/* Responsive chips de filtro (sin header/footer) */
@media (max-width: 991.98px) {
    .nd-filtro-btn {
        font-size: 0.72rem;
        padding: 0.35rem 0.9rem;
    }
}

/* .nd-input: estilo efectivo fusionado (dos definiciones previas → una) */
.nd-input {
    width: 100%;
    padding: 0.75rem 1.25rem;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #2b2b2b;
    background: #fff;
    border: 1px solid #d2d2d0;
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nd-input::placeholder {
    color: #2b2b2b;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.nd-input:focus {
    outline: none;
    border-color: #1a1a1a;
    box-shadow: none;
}

/* .nd-input-select: fusionado (definición global + overrides de librerías) */
.nd-input-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1a1a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1.125rem) center;
    padding-right: 2.5rem;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
}

@keyframes nd-spin {
    to { transform: rotate(360deg); }
}

/* --- Swiper compartido (Libros, Editoriales, Librerías) --- */
.nd-swiper-wrap {
    position: relative;
    width: 90%;
    overflow: visible;
    padding-bottom: 0.5rem;
    padding-left: 2.75rem;
    padding-right: 3rem;
    align-self: center;
    justify-self: center;
}

.nd-swiper {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.nd-swiper .swiper-slide {
    height: auto;
    box-sizing: border-box;
    padding: 0.5rem 0;
}

.nd-swiper-btn {
    position: absolute;
    top: 50%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    color: #1a1a1a;
    cursor: pointer;
    transform: translateY(-50%);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.nd-swiper-btn--prev {
    left: 0;
}

.nd-swiper-btn--next {
    right: 0;
}

.nd-swiper-btn--modern {
    width: 48px;
    height: 48px;
    background: #f3f0e1;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    color: #3a3a3a;
    transform: translateY(-50%);
    transition: transform 250ms ease, background-color 250ms ease, box-shadow 250ms ease, opacity 250ms ease;
}

.nd-swiper-btn--modern:hover:not(.swiper-button-disabled) {
    background: #e7e4d4;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    transform: translateY(-50%) scale(1.08);
}

.nd-swiper-chevron {
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
}

.nd-swiper-btn.swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.nd-swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    margin-top: 1.75rem;
    text-align: center;
    line-height: 1;
}

.nd-swiper-pagination .swiper-pagination-bullet {
    width: 2.25rem;
    height: 3px;
    margin: 0 5px !important;
    border-radius: 2px;
    background: #d2d2d0;
    opacity: 1;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nd-swiper-pagination .swiper-pagination-bullet-active {
    background: #1a1a1a;
    transform: scaleX(1.05);
}

@media (max-width: 575px) {
    .nd-swiper-wrap {
        padding-left: 2.25rem;
        padding-right: 2.25rem;
    }

    .nd-swiper-btn--modern {
        width: 40px;
        height: 40px;
    }

    .nd-swiper-chevron {
        width: 16px;
        height: 16px;
    }

    .nd-swiper-pagination .swiper-pagination-bullet {
        width: 1.75rem;
        margin: 0 3px !important;
    }
}

@media (max-width: 575.98px) {
    .nd-section-header-row {
        position: relative;
    }
}



/* ==========================================================================
   4. HERO
   ========================================================================== */

.nd-hero {
    background: #ffffff;
    padding: clamp(2.5rem, 6vw, 7rem) 0;
    border-bottom: 1px solid #000000;
}

.nd-hero-title {
    font-family: "Baskerville";
    font-weight: 400; 
    width: 100%;
    max-width: 42rem;
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: #1a1a1a;
}

.nd-hero-title-line {
    display: block;
    font-family: "Baskerville";
    font-weight: inherit;
}

.nd-hero-copy {
    max-width: 34.5rem;
    font-weight: 400;
}

.nd-hero-text {
    font-family: "Futura";
    font-size: 1.125rem;
    line-height: 1.45;
    color: #666;
    font-weight: 300;
}

.nd-hero-copy .nd-hero-text + .nd-hero-text {
    margin-top: 0.45rem;
}

.nd-hero-subtitulo-boton {
    font-family: "Futura";
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: #666;
    margin-top: 1rem;
    text-align: start;
}

.nd-hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 10.5rem;
    padding: 0.5rem;
}

.nd-hero-image {
    width: 45%;
    max-width: 45%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    .nd-hero {
        padding: 3rem 0 4rem;
    }

    .nd-hero-title {
        font-size: clamp(2.25rem, 9vw, 2.75rem);
    }

    .nd-hero-title-line + .nd-hero-title-line {
        margin-top: 0.75rem;
    }

    .nd-hero-text {
        font-size: 1rem;
    }

    .nd-hero-media {
        max-width: 20rem;
    }
}

@media (min-width: 992px) {
    .nd-hero-media {
        max-width: none;
    }
}


/* ==========================================================================
   5. LIBROS DESTACADOS
   ========================================================================== */

.nd-libro-cover {
    aspect-ratio: 1 / 1.45;
    background: #e0e0e0;
    overflow: hidden;
    border-radius: 2px;
}

.nd-libro-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-slide-link {
    cursor: pointer;
}

.nd-libro-card-link:hover .nd-libro-titulo {
    text-decoration: underline;
}

.nd-libro-titulo {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.nd-libro-editorial {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.75rem;
    color: #888888;
}

.nd-libro-pais {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aaaaaa;
}

/* Swiper skin — libros */
.nd-swiper-wrap--libros .nd-swiper-btn--modern {
    background: #ffffff;
    color: #1a1a1a;
}

.nd-swiper-wrap--libros .nd-swiper-btn--modern:hover:not(.swiper-button-disabled) {
    background: #f5f5f5;
}

@media (min-width: 1200px) {
    .nd-section-libros {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (max-width: 575.98px) {
    /*
     * Icono libros @ ≤575px: había height 2.75rem (.nd-section-icon--libros)
     * y luego 2.5rem (.nd-section-header-row .nd-section-icon--libros).
     * Se eliminó el duplicado; se conserva el ganador de cascada: 2.5rem.
     */
    .nd-section-header-row .nd-section-icon--libros {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 2.5rem;
    }
}


/* ==========================================================================
   6. HISTORIA
   ========================================================================== */

.nd-historia-texto p {
    font-family: "Baskerville";
    font-size: 1.10rem;
    line-height: 1.6;
    color: #777777;
    font-weight: 500;
}

.nd-stat-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    margin-top: 1rem;
}

.nd-stat-label {
    font-family: "Futura", sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666666;
}

.nd-stat-number {
    font-family: "Futura", sans-serif;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
}

.nd-ilustraciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.nd-ilustraciones img {
    max-height: 80px;
    width: auto;
    opacity: 0.7;
}

.nd-ilustraciones .nd-historia-icono {
    max-height: 70px;
    opacity: 0.85;
}

@media (max-width: 767.98px) {
    .nd-ilustraciones {
        justify-content: center;
        gap: 1rem;
    }

    .nd-ilustraciones img {
        max-height: 56px;
    }

    .nd-ilustraciones .nd-historia-icono {
        max-height: 50px;
    }
}


/* ==========================================================================
   7. EDITORIALES
   ========================================================================== */

.nd-section-editoriales {
    background-color: #FFFFFF;
    border: 1px solid #000000;
}

.nd-filtros-container {
    user-select: none;
}

.nd-filter-arrow {
    background: transparent;
    border: none;
    font-size: 0.8rem;
    color: #888888;
    cursor: pointer;
    padding: 0 4px;
}

.nd-editorial-card {
    background: #ffffff;
    border: 2px solid #BCBABA;
    border-radius: 16px;
    min-height: 390px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.nd-editorial-card-link {
    cursor: pointer;
    color: inherit;
    transition: color 0.3s ease;
}

.nd-editorial-card--clickable {
    cursor: pointer;
}

.nd-editorial-card-link:hover .nd-editorial-nombre {
    text-decoration: underline;
}

.nd-editorial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #bbbbbb;
}

.nd-editorial-cover {
    width: 130px;
    height: 130px;
    overflow: hidden;
}

.nd-editorial-cover-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.nd-editorial-nombre {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.nd-editorial-meta {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8c8c8c;
}


.nd-swiper-wrap--editoriales .nd-swiper-btn--modern {
    background: #f3f0e1;
    color: #1a1a1a;
}

.nd-swiper-wrap--editoriales .nd-swiper-btn--modern:hover:not(.swiper-button-disabled) {
    background: #e7e4d4;
}

.nd-swiper-wrap--editoriales {
    margin-bottom: 2.5rem;
    margin-left: auto;
    margin-right: auto;
}

.nd-swiper-wrap--editoriales .nd-swiper {
    transition: height 300ms ease;
}

.nd-swiper-wrap--editoriales.is-animating .nd-swiper {
    transition: height 300ms ease, opacity 300ms ease;
}

.nd-swiper-wrap--editoriales.is-animating .swiper-slide {
    transition: opacity 300ms ease, transform 300ms ease;
}

.nd-swiper-wrap--editoriales .nd-swiper-pagination {
    margin-top: 1.5rem;
}

.nd-editoriales-toggle-wrap {
    margin-top: 1.75rem;
}

@media (max-width: 991.98px) {
    .nd-section-editoriales {
        overflow-x: clip;
    }

    .nd-filtros-bar {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .nd-swiper-wrap--editoriales {
        width: 100%;
        max-width: 420px;
        padding-left: 3rem;
        padding-right: 3rem;
        box-sizing: border-box;
    }

    .nd-swiper-wrap--editoriales .nd-swiper--editoriales {
        width: 100%;
        overflow: hidden;
    }

    .nd-swiper-wrap--editoriales .swiper-slide {
        display: flex;
        justify-content: center;
        height: auto;
        box-sizing: border-box;
    }

    .nd-swiper-wrap--editoriales .nd-editorial-card {
        width: min(100%, 280px);
        min-height: 300px;
        margin: 0 auto;
        padding: 1.5rem 1.25rem;
        box-sizing: border-box;
        overflow: hidden;
    }

    .nd-swiper-wrap--editoriales .nd-editorial-cover {
        width: 110px;
        height: 110px;
        max-width: 100%;
        overflow: hidden;
        flex-shrink: 0;
    }

    .nd-swiper-wrap--editoriales .nd-editorial-cover-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .nd-swiper-wrap--editoriales .nd-editorial-nombre {
        font-size: 1.05rem;
        line-height: 1.3;
        word-break: break-word;
    }

    .nd-swiper-wrap--editoriales .nd-editorial-meta {
        font-size: 0.72rem;
    }

    .nd-swiper-wrap--editoriales .nd-swiper-btn--prev {
        left: 0;
    }

    .nd-swiper-wrap--editoriales .nd-swiper-btn--next {
        right: 0;
    }

    .nd-swiper-wrap--editoriales .nd-swiper-btn--modern {
        width: 40px;
        height: 40px;
        top: 50%;
        transform: translateY(-50%);
    }

    .nd-swiper-wrap--editoriales .nd-swiper-btn--modern:hover:not(.swiper-button-disabled) {
        transform: translateY(-50%) scale(1.06);
    }

    .nd-editoriales-toggle-wrap {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .nd-editorial-card {
        min-height: 340px;
        padding: 1.5rem 0.75rem;
    }

    .nd-editorial-cover {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 575px) {
    .nd-section-icon--editorial {
        height: 2.5rem;
    }

    .nd-section-header-row .nd-section-icon--editorial {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        height: 2.25rem;
    }

    .nd-editorial-card {
        min-height: auto;
        padding: 1.25rem 0.75rem;
    }

    .nd-editorial-cover {
        width: 72px;
        height: 72px;
    }

    .nd-editorial-nombre {
        font-size: 0.9rem;
    }

    .nd-editorial-meta {
        font-size: 0.62rem;
    }
}

@media (max-width: 575.98px) {
    .nd-editorial-card:hover {
        transform: none;
    }
}


/* ==========================================================================
   8. LIBRERÍAS
   ========================================================================== */

.nd-section-librerias {
    background: #F8F7F4;
}

.nd-librerias-filtros-card {
    max-width: 58rem;
    background: #ffffff;
    border-radius: 20px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 25px -10px rgba(0, 0, 0, 0.05);
}

.nd-input-select-wrapper {
    position: relative;
}

.nd-input-select-wrapper::after {
    content: "";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #555;
    pointer-events: none;
}

.nd-librerias-intro {
    max-width: 28rem;
    font-family: "Futura";
    color: #666;
}

.nd-librerias-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem 1.25rem;
    padding-bottom: 1.5rem;
}

.nd-libreria-card {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
}

.nd-libreria-nombre {
    font-family: "Baskerville";
    font-size: 1.25rem;
    color: #1a1a1a;
}

.nd-libreria-ubicacion {
    font-family: "Futura";
    color: #666;
}

.nd-libreria-categoria {
    font-family: "Futura";
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666;
}

.nd-libreria-link {
    font-family: "Futura";
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    color: #1a1a1a;
}

.nd-libreria-link:hover {
    color: #666;
}

/* Swiper skin — librerías */
.nd-swiper-wrap--librerias .nd-swiper-btn--modern {
    background: #1a1a1a;
    color: #ffffff;
}

.nd-swiper-wrap--librerias .nd-swiper-btn--modern:hover:not(.swiper-button-disabled) {
    background: #333333;
}

@media (max-width: 767.98px) {
    .nd-swiper-wrap--librerias {
        width: 100%;
        max-width: 100%;
        padding-left: 2.75rem;
        padding-right: 2.75rem;
        box-sizing: border-box;
    }

    .nd-librerias-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding-bottom: 0.75rem;
        min-height: 0;
    }

    .nd-librerias-grid .nd-libreria-card:last-child {
        border-bottom: none;
        padding-bottom: 0.5rem;
    }
}

@media (min-width: 768px) {
    .nd-librerias-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .nd-librerias-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1200px) {
    .nd-section-librerias {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

@media (max-width: 575px) {
    .nd-section-icon--directorio {
        height: 2.5rem;
    }
}


/* ==========================================================================
   9. CTA
   ========================================================================== */

/* No existe sección CTA en inicio.php actualmente. */


/* ==========================================================================
   10. CONTACTO
   ========================================================================== */

.nd-section-contacto {
    background: #FFFFFF;
    padding: clamp(3rem, 8vw, 8.5rem) 0;
    position: relative;
    overflow: hidden;
}

.nd-section-contacto > .container-xl {
    position: relative;
    z-index: 1;
}

.nd-contacto-ilustraciones {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.nd-contacto-illus {
    position: absolute;
    display: block;
    height: auto;
    user-select: none;
    -webkit-user-drag: none;
}

.nd-contacto-illus--hola {
    top: 4%;
    left: 2%;
    width: clamp(11.5rem, 15vw, 14.75rem);
    opacity: 0.12;
    transform: rotate(-11deg);
}

.nd-contacto-illus--mensaje {
    top: 7%;
    left: 38%;
    width: clamp(10.5rem, 13vw, 12.5rem);
    opacity: 0.10;
    transform: rotate(9deg);
}

.nd-contacto-illus--rueda {
    top: 3%;
    right: 4%;
    width: clamp(11rem, 12vw, 13.5rem);
    opacity: 0.11;
    transform: rotate(14deg);
}

.nd-contacto-illus--libro-abierto {
    top: 38%;
    left: 1%;
    width: clamp(12.5rem, 17vw, 16rem);
    opacity: 0.09;
    transform: rotate(-8deg);
}

.nd-contacto-illus--libros {
    bottom: 10%;
    left: 12%;
    width: clamp(11rem, 12.5vw, 14rem);
    opacity: 0.13;
    transform: rotate(-13deg);
}

.nd-contacto-illus--caja {
    bottom: 6%;
    left: 34%;
    width: clamp(10.5rem, 13vw, 12.875rem);
    opacity: 0.10;
    transform: rotate(7deg);
}

.nd-contacto-illus--cutter {
    bottom: 8%;
    right: 6%;
    width: clamp(8rem, 12.5vw, 12rem);
    opacity: 0.08;
    transform: rotate(-10deg);
}

.nd-contacto-illus--icono-libro {
    top: 22%;
    right: 18%;
    width: clamp(3.5rem, 5.5vw, 5.5rem);
    opacity: 0.10;
    transform: rotate(6deg);
}

.nd-contacto-illus--icono-editorial {
    top: 55%;
    left: 28%;
    width: clamp(3rem, 5vw, 5rem);
    opacity: 0.09;
    transform: rotate(-12deg);
}

.nd-contacto-illus--icono-directorio {
    bottom: 18%;
    right: 28%;
    width: clamp(3rem, 5vw, 4.75rem);
    opacity: 0.08;
    transform: rotate(11deg);
}



.nd-contacto-title-line {
    display: block;
}

.nd-contacto-email {
    font-family: "Baskerville";
    font-size: 1.25rem;
    color: #1a1a1a;
}

.nd-contacto-email:hover {
    color: #666;
}

.nd-contacto-form-card {
    background: #f3f1f1;
    border-radius: 1rem;
}

.nd-form-label {
    font-family: "Futura";
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #1a1a1a;
}

.nd-input-form {
    font-size: 1rem;
    font-family: "Futura";
    letter-spacing: 0;
    text-transform: none;
    border-radius: 10px;
    color: #1a1a1a;
}

/* Placeholders de Contáctanos en gris hasta que el usuario escriba */
.nd-contacto-form .nd-input::placeholder,
.nd-contacto-form .nd-input-form::placeholder {
    color: #9a9a9a;
    font-weight: 400;
    opacity: 1;
}

.nd-contacto-form .nd-input::-webkit-input-placeholder {
    color: #9a9a9a;
    font-weight: 400;
}

.nd-contacto-form .nd-input::-moz-placeholder {
    color: #9a9a9a;
    font-weight: 400;
    opacity: 1;
}

.nd-contacto-form .nd-input:-ms-input-placeholder {
    color: #9a9a9a;
    font-weight: 400;
}

.nd-input-textarea {
    min-height: 7.5rem;
    resize: vertical;
}

@media (max-width: 991.98px) {
    .nd-contacto-illus--mensaje,
    .nd-contacto-illus--libro-abierto,
    .nd-contacto-illus--cutter,
    .nd-contacto-illus--icono-libro,
    .nd-contacto-illus--icono-editorial,
    .nd-contacto-illus--icono-directorio {
        display: none;
    }

    .nd-contacto-illus--hola {
        top: 2%;
        left: 1%;
        width: clamp(4.5rem, 12vw, 6.5rem);
        opacity: 0.10;
    }

    .nd-contacto-illus--rueda {
        top: 1%;
        right: 2%;
        width: clamp(4rem, 10vw, 6rem);
        opacity: 0.09;
    }

    .nd-contacto-illus--libros {
        bottom: 4%;
        left: 4%;
        width: clamp(4rem, 10vw, 6rem);
        opacity: 0.10;
    }

    .nd-contacto-illus--caja {
        bottom: 3%;
        left: auto;
        right: 4%;
        width: clamp(3.5rem, 9vw, 5.5rem);
        opacity: 0.09;
    }
}

@media (max-width: 575.98px) {
    .nd-contacto-illus--caja,
    .nd-contacto-illus--libros {
        display: none;
    }

    .nd-contacto-illus--hola {
        top: 1%;
        left: 0;
        width: 4.5rem;
        opacity: 0.09;
        transform: rotate(-8deg);
    }

    .nd-contacto-illus--rueda {
        top: 0;
        right: 0;
        width: 4rem;
        opacity: 0.08;
        transform: rotate(10deg);
    }
}


/* ==========================================================================
   11. FOOTER
   (solo overrides responsive; estilos base viven en footer.php)
   ========================================================================== */

@media (max-width: 767.98px) {
    .nd-footer-tagline {
        max-width: 100%;
    }

    .nd-footer-form {
        max-width: 100%;
    }

    .nd-footer-bottom-text {
        font-size: 0.58rem;
        text-align: center;
    }
}


/* ==========================================================================
   12. MODALES / ELEMENTOS ESPECIALES
   ========================================================================== */

/* Layout auth: modules/login.php y modules/restablecer_contraseña.php
   .nd-auth-btn / .nd-auth-btn-secondary se mantienen arriba para mi_perfil. */


/* --- Carrito / shop / perfil_cliente + helpers --- */
.cart-area .product-thumbnail img,
.sh0p-area .product-img img {
    object-fit: cover;
}

.breadcrumb .slick-track {
    width: 100% !important;
    transform: none !important;
}

.breadcrumb .slick-slide {
    width: 100% !important;
}

.table-content.table-responsive,
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.order-details-wrapper {
    overflow-x: auto;
}

.order-table {
    min-width: 320px;
}

.realizar-pago {
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 767.98px) {
    .realizar-pago {
        flex-direction: column;
        align-items: stretch;
    }

    .realizar-pago .btn,
    .realizar-pago a {
        width: 100%;
        text-align: center;
    }

    .order-view li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .sh0p-area .row.mx-5,
    #vue-content .row.mx-5 {
        margin-left: 0;
        margin-right: 0;
    }

    .nd-view-perfil_cliente .nav.flex-column .nav-link,
    .nd-view-perfil_cliente a.nav-link,
    .nd-view-carrito .nav.flex-column .nav-link,
    .nd-view-carrito a.nav-link,
    .nd-view-mi_perfil .nav.flex-column .nav-link,
    .nd-view-mi_perfil a.nav-link {
        width: 100%;
        max-width: 100%;
    }

    .nd-view-perfil_cliente .table-content {
        overflow-x: auto;
    }

    .nd-view-perfil_cliente select[style*="width"],
    .nd-view-perfil_cliente input[style*="width"] {
        width: 100% !important;
        max-width: 100%;
    }

    .cart-area .coupon input[type="text"] {
        width: 100% !important;
        max-width: 100%;
    }
}
