:root {
    --navy-900: #071b2b;
    --navy-800: #0d2a40;
    --navy-700: #153d5e;
    --blue-100: #edf5ff;
    --blue-200: #dfeeff;
    --blue-300: #cfe3ff;
    --gold-400: #d7b46a;
    --gold-500: #c79b47;
    --gray-50: #f7f8fa;
    --gray-100: #eef2f7;
    --gray-200: #dde4ee;
    --gray-500: #64748b;
    --gray-700: #334155;
    --text: #102133;
    --white: #ffffff;
    --shadow-soft: 0 18px 35px rgba(11, 29, 52, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(180deg, #f7f9fc 0%, #f2f5fa 100%);
    color: var(--text);
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

.site-header {
    background: rgba(7, 27, 43, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 8px 24px rgba(7, 27, 43, 0.12);
}

.navbar {
    min-height: 82px;
}

.navbar-dark .nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 500;
    padding: 0.75rem 0.85rem !important;
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link.active {
    color: var(--white);
}

.navbar-brand {
    gap: 0.85rem;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    color: var(--navy-900);
    font-weight: 800;
    letter-spacing: 0.1em;
    box-shadow: 0 12px 26px rgba(199, 155, 71, 0.35);
}

.brand-logo-image {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(199, 155, 71, 0.35);
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
}

.brand-logo-footer {
    width: 42px;
    height: 42px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: var(--white);
}

.brand-name {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-text small {
    color: rgba(255,255,255,0.75);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar-search {
    width: min(100%, 360px);
}

.navbar-search .form-control {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--white);
    border-radius: 999px 0 0 999px;
    min-height: 42px;
}

.navbar-search .form-control::placeholder {
    color: rgba(255,255,255,0.62);
}

.navbar-search .btn {
    border-radius: 0 999px 999px 0;
    min-height: 42px;
    padding-inline: 1.1rem;
}

.cart-item .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--gold-400);
    color: var(--navy-900);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0 0.32rem;
}

.nav-login,
.nav-register {
    border-radius: 999px;
    padding: 0.65rem 1rem;
    font-weight: 600;
}

.nav-register {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    border: 0;
    color: var(--navy-900);
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(88,140,201,0.25), transparent 38%),
                linear-gradient(135deg, #081d2d 0%, #0c2940 42%, #163d60 100%);
    color: var(--white);
    padding: 4.5rem 0 4rem;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(9,22,33,0.45), rgba(9,22,33,0.08));
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 620px;
}

.eyebrow {
    display: inline-block;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #dfeeff;
}

.eyebrow.dark {
    background: rgba(21, 61, 94, 0.08);
    border-color: rgba(21, 61, 94, 0.12);
    color: var(--navy-700);
}

.hero-copy h1 {
    font-size: clamp(2.7rem, 4vw, 4.5rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
    font-weight: 800;
    margin: 1rem 0 1.2rem;
}

.hero-copy p {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 540px;
}

.hero-actions {
    margin-top: 1.75rem;
}

.hero-actions .btn {
    border-radius: 999px;
    font-weight: 600;
    padding: 0.9rem 1.6rem;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    border: 0;
    color: var(--navy-900);
    box-shadow: 0 12px 28px rgba(199, 155, 71, 0.34);
}

.hero-actions .btn-outline-light {
    border-color: rgba(255,255,255,0.25);
    color: var(--white);
    background: rgba(255,255,255,0.04);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
    color: rgba(255,255,255,0.75);
    font-size: 0.88rem;
    font-weight: 600;
}

.hero-meta span {
    padding: 0.5rem 0.8rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 999px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 420px;
}

.cover-stack {
    position: relative;
    width: min(100%, 390px);
    height: 420px;
}

.cover-card {
    position: absolute;
    width: 250px;
    height: 330px;
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(13, 42, 64, 0.08);
    transform: rotate(-12deg);
}

.cover-card:nth-child(1) {
    left: 0;
    top: 30px;
    transform: rotate(-12deg);
}

.cover-card:nth-child(2) {
    left: 90px;
    top: 0;
    transform: rotate(6deg) scale(1.04);
    z-index: 2;
}

.cover-card:nth-child(3) {
    right: 0;
    top: 32px;
    transform: rotate(12deg);
}

.cover-card img,
.cover-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cover-placeholder,
.book-cover-placeholder,
.mini-cover-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #e7f0ff, #d8eaff);
    color: var(--navy-700);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.editorial-placeholder {
    width: min(100%, 350px);
    height: 420px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
}

.placeholder-book {
    width: 210px;
    height: 300px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--gold-400), #f3db9a);
    color: var(--navy-900);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: var(--shadow-soft);
}

.section-spacing {
    padding-top: 4.5rem;
    padding-bottom: 0.5rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-heading h2 {
    margin: 0.4rem 0 0;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text);
}

.see-all-link {
    color: var(--navy-700);
    font-weight: 700;
}

.category-card,
.book-card,
.author-card,
.info-card,
.step-card,
.mini-book-card {
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(16, 33, 51, 0.08);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(16, 33, 51, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.book-card:hover,
.author-card:hover,
.info-card:hover,
.step-card:hover,
.mini-book-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(16, 33, 51, 0.09);
}

.category-card {
    padding: 1.5rem 1.25rem;
}

.category-pill {
    display: inline-block;
    border-radius: 999px;
    background: rgba(21, 61, 94, 0.08);
    color: var(--navy-700);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.45rem 0.7rem;
}

.category-card h3 {
    font-size: 1.2rem;
    margin: 1rem 0 0.6rem;
    font-weight: 700;
}

.category-card p {
    color: var(--gray-500);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.category-card a {
    color: var(--navy-700);
    font-weight: 700;
}

.book-card {
    overflow: hidden;
}

.book-cover {
    height: 270px;
    background: linear-gradient(135deg, #e8edf6, #d8e6ff);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-cover-placeholder {
    width: 100%;
    height: 100%;
    font-size: 0.9rem;
    padding: 1rem;
}

.book-body {
    padding: 1.1rem 1.1rem 1.2rem;
}

.book-category {
    display: inline-block;
    color: var(--navy-700);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.book-body h3 {
    margin: 0.8rem 0 0.35rem;
    font-size: 1.16rem;
    min-height: 48px;
    line-height: 1.4;
}

.book-author {
    margin: 0 0 0.9rem;
    color: var(--gray-500);
    font-size: 0.9rem;
}

.book-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
}

.prices {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.price-old {
    color: var(--gray-500);
    text-decoration: line-through;
    font-size: 0.8rem;
}

.price-new {
    color: var(--text);
    font-size: 1.2rem;
    font-weight: 800;
}

.book-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.book-actions .btn {
    flex: 1;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.7rem 0.9rem;
}

.empty-state {
    background: rgba(255,255,255,0.7);
    border: 1px dashed rgba(16,33,51,0.14);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    color: var(--gray-500);
}

.empty-state h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
}

.mini-book-card {
    overflow: hidden;
}

.mini-cover {
    height: 180px;
    background: linear-gradient(135deg, #edf4ff, #dbe8ff);
}

.mini-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-cover-placeholder {
    width: 100%;
    height: 100%;
    font-weight: 700;
    color: var(--navy-700);
}

.mini-body {
    padding: 1rem 1rem 1.2rem;
}

.mini-date {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-500);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mini-body h3 {
    margin: 0 0 0.8rem;
    font-size: 1.05rem;
    line-height: 1.5;
}

.mini-body a {
    color: var(--navy-700);
    font-weight: 700;
}

.author-card {
    padding: 1.15rem;
}

.author-avatar {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #d9e8ff, #c7dbff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--navy-800);
    border: 3px solid rgba(21, 61, 94, 0.08);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-body h3 {
    margin-bottom: 0.55rem;
    font-size: 1.2rem;
}

.author-body p {
    color: var(--gray-500);
    line-height: 1.7;
    min-height: 72px;
}

.author-body a {
    color: var(--navy-700);
    font-weight: 700;
}

.info-card,
.step-card {
    padding: 1.4rem 1.2rem;
}

.info-card h3,
.step-card h3 {
    font-size: 1.08rem;
    margin-bottom: 0.7rem;
}

.info-card p,
.step-card p {
    margin-bottom: 0;
    color: var(--gray-500);
    line-height: 1.7;
}

.step-number {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(21, 61, 94, 0.12), rgba(215,180,106,0.24));
    align-items: center;
    justify-content: center;
    margin-bottom: 0.9rem;
    color: var(--navy-700);
    font-weight: 800;
}

.faq-section {
    padding-bottom: 5rem;
}

.accordion-item {
    border: 1px solid rgba(16, 33, 51, 0.08);
    border-radius: 18px !important;
    overflow: hidden;
    margin-bottom: 0.9rem;
    background: rgba(255,255,255,0.75);
}

.accordion-button {
    font-weight: 600;
    color: var(--text);
    background: rgba(255,255,255,0.75);
}

.accordion-button:not(.collapsed) {
    background: rgba(223, 238, 255, 0.8);
    color: var(--navy-700);
    box-shadow: none;
}

.filter-panel {
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(16,33,51,0.08);
    border-radius: 24px;
    padding: 1.2rem;
    box-shadow: 0 14px 30px rgba(16,33,51,0.05);
}

.filter-panel .form-control,
.filter-panel .form-select,
.auth-form .form-control {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(16,33,51,0.1);
    background: var(--white);
    box-shadow: none;
}

.filter-panel .form-label,
.auth-form .form-label {
    color: var(--navy-700);
    font-size: 0.84rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-shell {
    padding-bottom: 2rem;
}

.book-hero-cover {
    background: linear-gradient(135deg, #edf4ff, #dfeeff);
    border-radius: 28px;
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(16,33,51,0.04);
}

.book-hero-cover img {
    width: 100%;
    min-height: 520px;
    object-fit: cover;
    border-radius: 20px;
}

.book-cover-placeholder.large {
    min-height: 520px;
    border-radius: 20px;
    font-size: 1.1rem;
}

.book-hero-copy h1 {
    margin-top: 1rem;
    font-size: clamp(2.2rem, 3vw, 3.2rem);
    letter-spacing: -0.06em;
    line-height: 1.05;
    font-weight: 800;
}

.book-hero-copy h3 {
    color: var(--gray-500);
    font-weight: 600;
    margin-top: 0.7rem;
}

.book-author-lead {
    font-size: 1.05rem;
    color: var(--navy-700);
    font-weight: 600;
    margin-top: 1rem;
}

.price-box {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin: 1.4rem 0 1rem;
    padding: 1rem 1.1rem;
    background: rgba(223, 238, 255, 0.5);
    border-radius: 18px;
    border: 1px solid rgba(21,61,94,0.08);
}

.price-box .price-old {
    font-size: 1rem;
}

.price-box .price-new {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy-900);
}

.book-description {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.75rem;
}

.info-list li,
.info-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(16,33,51,0.08);
    border-radius: 14px;
    padding: 0.9rem 1rem;
}

.info-list span {
    color: var(--gray-500);
    font-size: 0.84rem;
}

.info-list strong {
    font-size: 0.96rem;
    color: var(--text);
}

.purchase-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: end;
}

.quantity-control {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.quantity-control label {
    font-size: 0.8rem;
    color: var(--navy-700);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.purchase-form .btn {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 600;
}

.author-profile-cover {
    background: linear-gradient(135deg, #edf4ff, #dfeeff);
    border-radius: 28px;
    padding: 1.1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(16,33,51,0.05);
}

.author-profile-cover img,
.author-placeholder {
    width: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dfeeff, #cfe3ff);
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy-700);
}

.author-profile-copy h1 {
    font-size: clamp(2.1rem, 3vw, 3rem);
    letter-spacing: -0.05em;
    margin-top: 0.8rem;
    font-weight: 800;
}

.book-list {
    display: grid;
    gap: 0.7rem;
    margin-top: 1rem;
}

.book-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.75);
    border: 1px solid rgba(16,33,51,0.08);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    color: var(--text);
    transition: transform 0.2s ease;
}

.book-list-item:hover {
    transform: translateY(-2px);
}

.auth-shell {
    padding-bottom: 5rem;
}

.auth-panel {
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(16,33,51,0.08);
    border-radius: 28px;
    box-shadow: 0 22px 42px rgba(16,33,51,0.08);
    padding: 2rem;
}

.auth-header {
    margin-bottom: 1.5rem;
}

.auth-header h1 {
    margin: 0.9rem 0 0.5rem;
    font-size: clamp(2rem, 3vw, 2.5rem);
    letter-spacing: -0.05em;
    font-weight: 800;
}

.auth-header p {
    color: var(--gray-500);
    margin: 0;
}

.auth-form {
    display: grid;
    gap: 0.2rem;
}

.auth-form .form-control,
.auth-form .form-select {
    border-radius: 12px;
    border: 1px solid rgba(16,33,51,0.12);
    background: var(--white);
    padding: 0.8rem 0.9rem;
}

.auth-footer {
    margin-top: 1rem;
    text-align: center;
}

.auth-footer a {
    color: var(--navy-700);
    font-weight: 600;
}

.profile-stat {
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(16,33,51,0.08);
    border-radius: 16px;
    padding: 1rem;
    height: 100%;
}

.profile-stat small {
    display: block;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

.profile-stat p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
}

.site-footer {
    background: #061923;
    color: var(--white);
    padding: 3rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.brand-mark-footer {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
    margin-right: 0.8rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    display: inline-block;
    margin-bottom: 0.45rem;
}

@media (max-width: 991.98px) {
    .navbar-search {
        width: 100%;
        margin: 0.5rem 0 1rem;
    }

    .nav-login,
    .nav-register {
        margin-top: 0.5rem;
    }

    .hero-section {
        padding-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .section-heading {
        display: block;
    }

    .book-actions {
        display: block;
    }

    .book-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-copy h1 {
        font-size: 2.4rem;
    }

    .cover-stack {
        transform: scale(0.9);
    }
}


/* ================================================================
   NOXVA BOOKS DIGITAL - RETOQUES FINALES (NOVIEMBRE 2026)
   Conserva los estilos de catálogo, autores, compras y cuentas.
   El aspecto de la portada nueva también se define en inicio.html.
   ================================================================ */

/* 1. Navegación: mayor espacio para buscar sin ocultar el carrito. */
@media (min-width: 1400px) {
    .site-header nav.navbar > .container {
        max-width: min(1440px, calc(100% - 40px));
    }

    .site-header nav.navbar .navbar-brand {
        margin-right: 0.65rem;
    }

    .site-header nav.navbar .navbar-nav .nav-link {
        padding-left: 0.38rem !important;
        padding-right: 0.38rem !important;
    }

    .site-header nav.navbar .navbar-search {
        flex: 1 0 340px;
        width: 340px;
        min-width: 340px;
        max-width: 380px;
    }
}

.site-header nav.navbar form.navbar-search .form-control {
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    font-size: 0.91rem;
    text-overflow: ellipsis;
}

.site-header nav.navbar form.navbar-search .form-control:focus {
    outline: 2px solid rgba(135, 189, 246, 0.7);
    outline-offset: 1px;
}

.site-header nav.navbar form.navbar-search .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.site-header nav.navbar .navbar-nav .nav-link,
.site-header nav.navbar .nav-login,
.site-header nav.navbar .nav-register {
    white-space: nowrap;
}

.site-header nav.navbar .navbar-nav .dropdown-toggle {
    max-width: 185px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-header nav.navbar .navbar-toggler:focus-visible,
.site-header nav.navbar a:focus-visible,
.site-footer a:focus-visible {
    outline: 2px solid #f1c979;
    outline-offset: 3px;
}

/* 2. Pie de página: contraste suficiente sobre el fondo azul noche. */
body .site-footer {
    background-color: #071d2a;
    color: #eef6fb;
}

body .site-footer h6,
body .site-footer strong {
    color: #ffffff;
}

body .site-footer p,
body .site-footer small,
body .site-footer .text-muted {
    color: #c4d4df !important;
    line-height: 1.7;
}

body .site-footer .footer-links a,
body .site-footer .footer-contact a {
    color: #e0ebf3;
}

body .site-footer .footer-links a:hover,
body .site-footer .footer-contact a:hover {
    color: #f3cb80;
}

body .site-footer .footer-contact {
    overflow-wrap: anywhere;
}

/* 3. Portada aprobada: menos espacios vacíos y sin avisos técnicos. */
body #noxva-home .nb-section {
    padding-top: clamp(3rem, 5vw, 4.25rem);
    padding-bottom: clamp(3rem, 5vw, 4.25rem);
}

body #noxva-home .nb-category-note {
    display: none;
}

body #noxva-home #nb-como-funciona {
    scroll-margin-top: 105px;
}

/* 4. Tablets y portátiles: el menú plegable conserva la búsqueda. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .site-header nav.navbar .navbar-search {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: 1 1 auto;
    }
}

@media (max-width: 991.98px) {
    .site-header nav.navbar .navbar-search {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        flex: 1 1 auto;
    }

    .site-header nav.navbar .navbar-search .form-control {
        width: 1%;
        min-width: 0;
    }

    body .site-footer .text-lg-end {
        text-align: left !important;
    }
}

@media (max-width: 575.98px) {
    .site-header nav.navbar > .container {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    .site-header nav.navbar .navbar-brand {
        margin-right: 0.25rem;
        gap: 0.55rem;
    }

    .site-header nav.navbar .brand-mark,
    .site-header nav.navbar .brand-logo-image {
        width: 38px;
        height: 38px;
    }

    .site-header nav.navbar .brand-text small {
        letter-spacing: 0.015em;
    }

    body #noxva-home .nb-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    body #noxva-home .nb-step {
        padding: 1.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .category-card,
    .book-card,
    .author-card,
    .info-card,
    .step-card,
    .mini-book-card {
        transition: none;
    }
}