:root {
    --ink: #2c211c;
    --wine: #8d1d2c;
    --wine-dark: #64141e;
    --brown: #6a3b2a;
    --cream: #fbf6ef;
    --paper: #f4ebe1;
    --surface: #ffffff;
    --muted: #6d5c54;
    --line: #eadfd2;
    --gold: #b8893d;
    --ok: #2f7a45;
    --bad: #9b2c2c;
    --radius: 10px;
    --font: "Poppins", sans-serif;
    --serif: "Poppins", sans-serif;
}

html { scroll-behavior: smooth; }
body {
    background:
        radial-gradient(circle at 12px 12px, rgba(184, 137, 61, .18) 1.2px, transparent 1.4px) 0 0 / 28px 28px,
        var(--paper);
    color: var(--ink);
    font-family: var(--font);
    overflow-x: hidden;
}
html { overflow-x: hidden; }
a:hover,
a:focus { text-decoration: none; }

.container {
    width: 100%;
    max-width: 1400px !important;
    padding-left: 24px;
    padding-right: 24px;
}

.page-wrap { padding-top: 32px; padding-bottom: 48px; }

img { max-width: 100%; }

/* Buttons */
.btn-card,
.btn-buy,
.featured-card__meta a,
.section-head a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: .02em;
}
.btn-card {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--wine);
    color: var(--wine);
    background: #fff;
    border-radius: 4px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.btn-card:hover { background: var(--wine); color: #fff; text-decoration: none; }
.btn-buy {
    width: 100%;
    padding: 12px 16px;
    background: #128c4a;
    color: #fff;
    border-radius: 4px;
    gap: 8px;
}
.btn-buy:hover { color: #fff; background: #0f7a40; }
.btn-ghost {
    border: 1px solid var(--wine);
    color: var(--wine);
    border-radius: 4px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.btn-ghost:hover { background: var(--wine); color: #fff; text-decoration: none; }

.stock { font-size: 12px; font-weight: 600; }
.stock.is-on { color: var(--ok); }
.stock.is-off { color: var(--bad); }

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 36px 0 14px;
    padding-bottom: 12px;
    position: relative;
}
.section-head:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--wine) 0 72px, var(--gold) 72px 148px, #eadfd2 148px, #eadfd2);
}
.section-head h1,
.section-head h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    color: var(--brown);
    position: relative;
    padding-left: 52px;
}
.section-head h1:before,
.section-head h2:before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: 8px;
    height: 8px;
    background: var(--wine);
    transform: rotate(45deg);
    box-shadow: 16px 0 0 var(--gold);
}
.section-head a,
.shelf-link { color: var(--wine); font-weight: 600; text-decoration: none; }
.shelf-link:hover { color: var(--wine-dark); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--wine); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover { color: var(--wine-dark); }
.crumbs__sep { color: var(--gold); font-size: 12px; display: inline-flex; }
.page-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.catalog-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    margin-left: auto;
    min-width: 0;
}
.catalog-tools form {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0;
}
.catalog-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 400;
    white-space: nowrap;
}
.catalog-field select {
    height: 38px;
    min-width: 150px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    color: #2c211c;
    font: inherit;
    font-size: 14px;
}
.catalog-field select.is-short { min-width: 72px; width: 72px; }
.catalog-field select:focus,
.catalog-field select:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: #d9d9d9;
}
.pick { position: relative; display: inline-flex; }
.pick select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}
.pick__face {
    position: relative;
    height: 38px;
    min-width: 150px;
    padding: 0 32px 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    background: #fff;
    color: #2c211c;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.pick__face:focus,
.pick__face:focus-visible {
    outline: none;
    box-shadow: none;
    border-color: #d9d9d9;
}
.pick__face::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #6b7280;
    border-bottom: 1.5px solid #6b7280;
    transform: translateY(-70%) rotate(45deg);
}
.pick.is-short .pick__face { min-width: 72px; width: 72px; padding-right: 26px; }
.pick__menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 40;
    min-width: 100%;
    padding: 6px;
    background: #fff;
    border: 1px solid #e6d5c4;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(44, 33, 28, .12);
}
.pick__item {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #2c211c;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}
.pick__item:hover,
.pick__item.is-on,
.pick__item:focus,
.pick__item:focus-visible {
    outline: none;
    background: #fbf6ef;
    color: var(--wine);
}
.view-switch {
    display: inline-flex;
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.view-switch a {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #8a7a72;
    font-size: 16px;
}
.view-switch a + a { border-left: 1px solid #d9d9d9; }
.view-switch a.is-on,
.view-switch a:hover { color: var(--wine); background: #fbf6ef; }
.book-grid.is-list { grid-template-columns: 1fr; gap: 12px; }
.book-grid.is-list .book-card { flex-direction: row; align-items: center; }
.book-grid.is-list .book-card:hover { transform: none; }
.book-grid.is-list .book-card__cover {
    width: 86px;
    flex: 0 0 86px;
    aspect-ratio: 318 / 450;
    height: auto;
    margin: 12px 0 12px 12px;
}
.book-grid.is-list .book-card__body {
    flex-direction: row;
    align-items: center;
    gap: 18px;
}
.book-grid.is-list .book-card__title { flex: 1.4; min-height: 0; -webkit-line-clamp: 1; }
.book-grid.is-list .book-card__author { flex: 1; margin: 0; }
.book-grid.is-list .book-card__price { margin: 0; font-size: 20px; white-space: nowrap; }
.book-grid.is-list .book-card__foot { margin: 0; padding: 0; }
.filters__empty {
    margin: 8px 0 24px;
    color: #8a7a72;
    font-weight: 300;
}
.cantidad { margin: 0; color: var(--muted); font-size: 14px; }

/* Equal book cards */
.book-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}
.book-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    background: #fff;
    border: 1px solid #e6d5c4;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(74, 32, 24, .07);
    transition: transform .22s ease, box-shadow .22s ease;
}
.book-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px rgba(109, 30, 40, .16);
}
.book-card__cover {
    display: block;
    aspect-ratio: 318 / 450;
    margin: 12px 12px 0;
    border-radius: 10px;
    background: #fbf6ef;
    overflow: hidden;
    position: relative;
}
.book-card__cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.book-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 14px 14px;
}
.book-card__title {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 600;
    color: var(--brown);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 38px;
}
.book-card__author {
    margin: 6px 0 0;
    font-size: 13px;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-synthesis: none;
    color: #8a7a72;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.book-card__price {
    margin: 10px 0 0;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    color: var(--wine);
}
.book-card__foot {
    margin-top: auto;
    padding-top: 12px;
}
.btn-card.is-on {
    background: #128c4a;
    border-color: #128c4a;
    color: #fff;
}
.btn-card.is-on:hover { background: #0d6b38; color: #fff; text-decoration: none; }
.btn-card.is-off {
    background: #fff;
    border-color: #e10600;
    color: #e10600;
}
.btn-card.is-off:hover { background: #e10600; border-color: #e10600; color: #fff; text-decoration: none; }

/* Featured last books */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.featured-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px;
    min-height: 210px;
}
.featured-card__cover {
    display: block;
    height: 170px;
    background: #efeae3;
    overflow: hidden;
}
.featured-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.featured-card__body { display: flex; flex-direction: column; min-width: 0; }
.featured-card__body h3 {
    font-size: 18px;
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.3;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 46px;
}
.featured-card__body p {
    color: #8a7a72;
    font-size: 14px;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-synthesis: none;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.featured-card__meta {
    margin-top: auto;
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.featured-card__meta a {
    border: 1px solid var(--wine);
    color: var(--brown);
    padding: 6px 10px;
    border-radius: 4px;
}
.featured-card__meta a:hover { background: var(--wine); color: #fff; }

/* Topics */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.topic-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px;
    text-decoration: none;
    color: inherit;
    min-height: 110px;
    min-width: 0;
    overflow: hidden;
}
.topic-card img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 6px;
}
.topic-card > div { min-width: 0; }
.topic-card h3 {
    font-size: 16px;
    margin: 0 0 4px;
    color: var(--wine);
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.topic-card p { margin: 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Product page */
.product {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 280px;
    gap: 32px;
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px;
}
.product__cover {
    background: transparent;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    min-height: 0;
}
.product__cover img {
    display: block;
    width: min(318px, 100%);
    height: auto;
    aspect-ratio: 318 / 450;
    object-fit: contain;
    object-position: center;
    background: #fbf6ef;
}
.product__info { align-self: start; min-width: 0; }
.product__info h1 { font-family: var(--serif); font-size: 32px; line-height: 1.25; margin: 0 0 8px; color: var(--brown); }
.product__author { color: #8a7a72; font-weight: 400; margin-bottom: 14px; }
.contenedor-texto {
    position: relative;
    width: 100%;
    max-width: none;
    max-height: 7.8em;
    overflow: hidden;
}
.contenedor-texto p { width: 100%; margin: 0; line-height: 1.65; color: #3d332e; }
.contenedor-texto p + p { margin-top: 0.85em; }
.contenedor-texto.is-long:not(.active)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2.6em;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}
.contenedor-texto.active { max-height: none; }
.read-more {
    display: inline-flex;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--wine);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    text-decoration: none;
}
.read-more:hover,
.read-more:focus,
.read-more:focus-visible,
.read-more:active {
    color: var(--wine-dark);
    text-decoration: none;
    outline: none;
    box-shadow: none;
}
.product__specs {
    display: grid;
    grid-template-columns: 1fr;
    margin: 22px 0 0;
    border-top: 1px solid var(--line);
}
.product__specs > div {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    align-items: baseline;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}
.product__specs dt {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 600;
}
.product__specs dd { margin: 0; font-weight: 600; color: var(--ink); }
.product__buy {
    align-self: start;
    background: #fffdf9;
    border: 1px solid #ead9c6;
    border-radius: 14px;
    padding: 22px 20px 18px;
    box-shadow: 0 12px 28px rgba(92, 21, 32, .06);
}
.buy-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.product__buy .label { margin: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
.stock-pill {
    font-size: 12px;
    font-weight: 500;
    border-radius: 999px;
    padding: 4px 10px;
}
.stock-pill.is-on { color: #0d6b38; background: #e7f6ee; }
.stock-pill.is-off { color: #e10600; background: #fdecec; }
.product__buy .amount {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 700;
    line-height: .9;
    margin: 14px 0 6px;
    color: var(--wine);
}
.product__buy .amount small {
    font-size: 18px;
    font-weight: 500;
    margin-top: 6px;
}
.buy-tax {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 400;
    color: #8a7a72;
}
.buy-facts {
    list-style: none;
    margin: 0 0 16px;
    padding: 12px 0 0;
    border-top: 1px solid #ead9c6;
}
.buy-facts li {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 8px 0;
    border-bottom: 1px solid #f3e6d8;
    font-size: 13px;
    font-weight: 400;
    color: #3d332e;
    line-height: 1.4;
}
.buy-facts span:first-child {
    color: var(--wine);
    font-weight: 500;
}
.buy-facts span:last-child {
    min-width: 0;
    color: #3d332e;
    font-weight: 400;
}
.buy-help {
    margin: 10px 0 0;
    font-size: 12px;
    font-weight: 400;
    color: #8a7a72;
    text-align: center;
}

.hero-banner,
.hero-banner .carousel,
.hero-banner .carousel-inner,
.hero-banner .carousel-item,
.promo-banner .carousel,
.promo-banner .carousel-inner,
.promo-banner .carousel-item {
    height: auto;
}
.hero-banner img,
.promo-banner img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    display: block;
    object-fit: contain;
    object-position: center;
}
.promo-banner {
    width: 100%;
    max-width: 1400px;
    margin: 18px auto;
    padding-left: 24px;
    padding-right: 24px;
}

.site-footer {
    background: linear-gradient(180deg, #5c1520, #3d1016);
    color: #f6ebe3;
    padding: 42px 0 0;
    margin-top: 48px;
}
.site-footer h3,
.site-footer h4 {
    color: #ffd371;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: .04em;
    margin: 0 0 14px;
}
.site-footer h3 { font-family: var(--serif); font-size: 22px; }
.site-footer p {
    font-weight: 300;
    font-size: 14px;
    line-height: 1.6;
    color: #f0ddd2;
    max-width: 340px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li {
    border-top: 1px solid rgba(255, 255, 255, .16);
}
.site-footer li a {
    display: block;
    padding: 11px 0;
    color: #f6ebe3;
    font-weight: 300;
    font-size: 14px;
    text-decoration: none;
}
.site-footer a,
.site-footer a:link,
.site-footer a:visited {
    color: #f6ebe3;
    text-decoration: none;
}
.site-footer a:hover,
.site-footer a:focus { color: var(--gold); text-decoration: none; }
.footer-social a,
.footer-social a:link,
.footer-social a:visited {
    color: #f6ebe3;
    border: 1px solid rgba(255,255,255,.28);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 400;
}

.shelf { position: relative; }
.shelf-tools { display: flex; align-items: center; gap: 8px; }
.shelf-nav {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--wine);
    background: #fff;
    color: var(--wine);
    cursor: pointer;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.shelf-nav:hover { background: var(--wine); color: #fff; transform: scale(1.06); }
.shelf-nav.swiper-button-disabled { opacity: .35; cursor: default; transform: none; }
.product + .shelf { margin-top: 28px; }
.book-swiper { overflow: hidden; margin: 6px 0 8px; }
.book-swiper .swiper-slide { height: auto; display: flex; }
.book-swiper .book-card { height: 100%; }

.featured-card { border-top: 3px solid var(--wine); }
.featured-card__cover { background: linear-gradient(180deg, #f7efe4, #efe2d2); }
.featured-card__meta a { border-color: var(--wine); color: var(--wine); }
.featured-card__meta a:hover { background: var(--wine); }
.book-card__price { color: var(--wine) !important; }
.topic-card { border-bottom: 3px solid transparent; transition: border-color .2s ease, transform .2s ease; }
.topic-card:hover { border-bottom-color: var(--gold); transform: translateY(-3px); }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.16);
    margin-top: 28px;
    padding: 16px 0;
    text-align: center;
    font-size: 13px;
    font-weight: 300;
}
.footer-bottom p { max-width: none; margin: 0; }

.whatsapp-fab {
    position: fixed; right: 18px; bottom: 18px; z-index: 40;
    width: 52px; height: 52px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex;
    align-items: center; justify-content: center; font-size: 26px;
    text-decoration: none !important;
}

.modal-header { background: var(--wine); color: #fff; }
.modal-header .close { color: #fff; opacity: .85; text-shadow: none; }
.btn-warning { background: var(--wine) !important; border-color: var(--wine) !important; color: #fff !important; }

.miss { text-align: center; }
.miss__kicker {
    margin: 0 0 8px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 500;
    color: var(--gold);
}
.miss__code {
    margin: 0;
    font-size: clamp(96px, 18vw, 180px);
    line-height: .85;
    font-weight: 700;
    color: var(--wine);
    letter-spacing: -.04em;
}
.miss h2 {
    margin: 12px 0 10px;
    font-size: 28px;
    font-weight: 500;
    color: var(--brown);
}
.miss__lead {
    max-width: 640px;
    margin: 0 auto 22px;
    font-weight: 400;
    line-height: 1.6;
    color: #5c514c;
}
.miss__search {
    display: flex;
    justify-content: center;
    max-width: 560px;
    margin: 0 auto 18px;
}
.miss__search input {
    flex: 1;
    min-width: 0;
    border: 1px solid #e4d3c4;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    padding: 12px 14px;
    outline: none;
}
.miss__search button {
    border: 0;
    background: var(--wine);
    color: #fff;
    border-radius: 0 6px 6px 0;
    padding: 0 18px;
    font-weight: 500;
}
.miss__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.miss__btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 6px;
    background: var(--wine);
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.miss__btn--ghost { background: #fff; color: var(--wine); border: 1px solid var(--wine); }
.miss__btn:hover { color: #fff; background: var(--wine-dark); }
.miss__btn--ghost:hover { color: #fff; }
.miss__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    text-align: left;
}
.miss__card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--wine);
    border-radius: 10px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
}
.miss__card span { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); }
.miss__card strong { display: block; margin: 6px 0 4px; color: var(--brown); font-weight: 500; }
.miss__card em { font-style: normal; font-weight: 300; color: #6d5e56; font-size: 14px; }
.miss__card:hover { border-color: var(--wine); }
@media (max-width: 768px) {
    .miss__grid { grid-template-columns: 1fr; }
}

.pager {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 8px;
}
.pager a,
.pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid #e4d3c4;
    border-radius: 8px;
    background: #fff;
    color: var(--brown);
    text-decoration: none;
    font-weight: 500;
}
.pager a:hover { border-color: var(--wine); color: var(--wine); }
.pager .is-on { background: var(--wine); border-color: var(--wine); color: #fff; }
.pager .is-off { color: #b7a89e; background: #f7f1ea; }

.legal-page { padding-top: 56px; padding-bottom: 72px; }
.info-contact { max-width: 860px; }
.info-contact h1,
.contacto h1,
.info-contact h3,
.contacto h3 {
    font-family: var(--serif);
    color: var(--brown);
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 22px;
}
.info-contact p,
.info-contact li {
    font-weight: 400;
    line-height: 1.7;
    color: #3d332e;
}
.info-contact ul { padding-left: 18px; }

@media (max-width: 1200px) {
    .book-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
    .catalog-tools,
    .catalog-tools form { flex-wrap: wrap; justify-content: flex-start; }
    .book-grid.is-list .book-card__body { flex-wrap: wrap; }
    .book-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .featured-grid { grid-template-columns: 1fr; }
    .product { grid-template-columns: 1fr; align-items: stretch; }
    .product__cover { min-height: 0; justify-content: flex-start; }
    .product__cover img { max-width: 220px; }
    .product__buy { align-self: stretch; }
}
@media (max-width: 575px) {
    .container { padding-left: 14px; padding-right: 14px; }
    .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .section-head h1, .section-head h2 { font-size: 22px; }
    .featured-grid { min-width: 0; }
    .featured-card {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 12px;
        padding: 12px;
        min-height: 0;
    }
    .featured-card__meta { flex-wrap: wrap; }
    .hero-banner, .promo-banner, main, .shelf { max-width: 100%; overflow: hidden; }
    .topic-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .topic-card {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 8px;
        min-height: 0;
    }
    .topic-card img { width: 100%; height: 96px; }
    .topic-card h3 { font-size: 14px; }
    .topic-card p { font-size: 12px; }
}
