/* Becral — hoja de estilos (sin compilación, lista para hosting compartido) */
:root {
    --yellow: #ffd200;
    --yellow-dark: #f0c400;
    --yellow-soft: #fff6c7;
    --navy: #1b2a5e;
    --navy-dark: #121d44;
    --blue: #2340a8;
    --ink: #161a24;
    --muted: #5d6475;
    --line: #e3e5ea;
    --bg: #f5f6f8;
    --white: #fff;
    --green: #0b7a3b;
    --red: #b3261e;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(22,26,36,.06), 0 4px 14px rgba(22,26,36,.06);
    --shadow-hover: 0 2px 4px rgba(22,26,36,.08), 0 12px 28px rgba(22,26,36,.12);
    --wrap: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: 1.9rem; line-height: 1.2; margin: .5rem 0 1rem; font-weight: 800; }
h2 { font-size: 1.35rem; margin: 1.5rem 0 .75rem; font-weight: 800; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.main { padding-top: 1.25rem; padding-bottom: 4rem; min-height: 50vh; }
.muted { color: var(--muted); font-size: .9rem; }
.icon { flex-shrink: 0; vertical-align: middle; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--white); padding: .5rem 1rem; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Franja de balizamiento amarilla y negra */
.stripe { height: 8px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px); }

/* Barra superior */
.topbar { background: var(--navy-dark); color: #dfe4f2; font-size: .82rem; }
.topbar-row { display: flex; align-items: center; gap: 1.5rem; padding-top: 7px; padding-bottom: 7px; }
.topbar-row > span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar .icon { color: var(--yellow); }
.topbar-contact { margin-left: auto; display: flex; gap: 1.25rem; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; }
.topbar a:hover { text-decoration: underline; }

/* Cabecera */
.header { background: var(--white); position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 1.5rem; padding-top: 14px; padding-bottom: 14px; }
.logo-link { text-decoration: none; flex-shrink: 0; }
.logo { display: inline-flex; align-items: baseline; gap: .5rem; background: var(--yellow); padding: .4rem .9rem .45rem; border-radius: 6px; color: var(--navy); }
.logo-mark { font-weight: 800; font-size: 1.75rem; letter-spacing: -.04em; line-height: 1; }
.logo-c { display: inline-block; background: var(--blue); color: var(--yellow); padding: .12em .1em .06em; margin: 0 .04em; line-height: .8; border-radius: 3px; }
.logo-sub { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.logo-small .logo-mark { font-size: 1.35rem; }
.search { flex: 1; display: flex; align-items: center; position: relative; max-width: 620px; }
.search-icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input { flex: 1; min-width: 0; height: 48px; padding: 0 1rem 0 2.75rem; border: 2px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; font: inherit; font-size: .95rem; background: var(--bg); transition: border-color .15s, background .15s; }
.search input:focus { outline: 0; border-color: var(--navy); background: var(--white); }
.search button { height: 48px; padding: 0 1.4rem; border: 0; background: var(--navy); color: var(--white); border-radius: 0 999px 999px 0; font: inherit; font-weight: 700; cursor: pointer; }
.search button:hover { background: var(--blue); }
.header-help { display: flex; align-items: center; gap: .6rem; text-decoration: none; margin-left: auto; color: var(--navy); font-weight: 800; white-space: nowrap; }
.header-help small { display: block; font-weight: 500; color: var(--muted); font-size: .75rem; line-height: 1.1; }
.cart-link { position: relative; display: flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 700; white-space: nowrap; padding: .6rem 1rem; border-radius: 999px; background: var(--yellow); color: var(--navy); }
.cart-link:hover { background: var(--yellow-dark); }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; height: 1.5rem; padding: 0 .4rem; background: var(--navy); color: var(--white); border-radius: 999px; font-size: .8rem; }

/* Menú de categorías */
.nav { background: var(--navy); color: var(--white); }
.nav-row { display: flex; align-items: stretch; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; font-weight: 700; padding: .75rem 1.1rem; background: var(--yellow); color: var(--navy); white-space: nowrap; display: flex; align-items: center; gap: .5rem; height: 100%; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--yellow-dark); }
.nav-panel { position: absolute; left: 20px; right: 20px; top: 100%; background: var(--white); color: var(--ink); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.18); padding: 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.25rem 1.5rem; max-height: 72vh; overflow: auto; z-index: 30; }
.nav-col a { display: block; text-decoration: none; padding: .18rem 0; font-size: .88rem; color: var(--muted); }
.nav-col a:hover { color: var(--blue); }
.nav-col .nav-top { color: var(--navy); font-weight: 800; font-size: .95rem; margin-bottom: .25rem; padding-bottom: .3rem; border-bottom: 2px solid var(--yellow); }
.nav-quick-list { display: flex; overflow: hidden; flex-wrap: wrap; height: 46px; }
.nav-quick { white-space: nowrap; text-decoration: none; padding: 0 1rem; font-size: .9rem; font-weight: 600; color: #e6eaf6; display: flex; align-items: center; height: 46px; }
.nav-quick:hover { color: var(--yellow); background: rgba(255,255,255,.06); }

/* Avisos */
.alert { padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 500; }
.alert-ok { background: #e7f5ec; color: var(--green); border: 1px solid #c4e6d0; }
.alert-error { background: #fbeaea; color: var(--red); border: 1px solid #f0c9c6; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.3rem; border: 2px solid var(--navy); border-radius: 999px; background: var(--white); color: var(--navy); text-decoration: none; font: inherit; font-weight: 700; cursor: pointer; text-align: center; transition: background .15s, transform .1s, box-shadow .15s; }
.btn:hover { background: var(--bg); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn-primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); box-shadow: 0 6px 16px rgba(240,196,0,.35); }
.btn-dark { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-dark); }
.btn-light { background: rgba(255,255,255,.7); border-color: rgba(27,42,94,.25); }
.btn-light:hover { background: var(--white); border-color: var(--navy); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-small { padding: .3rem .7rem; font-size: .85rem; }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; margin-top: .6rem; }
.link-btn { background: none; border: 0; color: var(--red); cursor: pointer; font: inherit; font-size: .85rem; text-decoration: underline; padding: 0; }

/* Portada */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; align-items: center; background: linear-gradient(120deg, var(--yellow) 0%, #ffe14d 100%); border-radius: 16px; padding: 3rem 3rem 3.5rem; margin-top: .5rem; }
.eyebrow { display: inline-block; margin: 0 0 .75rem; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--navy); background: rgba(255,255,255,.55); padding: .25rem .7rem; border-radius: 999px; }
.hero h1 { font-size: 2.6rem; line-height: 1.1; margin: 0 0 1rem; color: var(--navy-dark); letter-spacing: -.025em; }
.hero-lead { font-size: 1.1rem; color: #3a3520; max-width: 560px; margin: 0 0 1.5rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; transform: rotate(-3deg); }
.hero-tile { position: relative; background: var(--white); border-radius: 14px; padding: 1rem; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(27,42,94,.18); }
.hero-tile:nth-child(2), .hero-tile:nth-child(4) { transform: translateY(1.5rem); }
.hero-tile img { padding: 1rem; }
.hero-stripe { position: absolute; left: 0; right: 0; bottom: 0; }

.trust { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.trust li { display: flex; gap: .85rem; align-items: center; background: var(--white); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.trust .icon { color: var(--navy); background: var(--yellow-soft); border-radius: 10px; padding: 8px; width: 44px; height: 44px; }
.trust strong { display: block; font-size: .95rem; }
.trust span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; }

.section-head { display: flex; align-items: end; justify-content: space-between; margin: 2.75rem 0 1rem; }
.section-head h2 { margin: 0; font-size: 1.6rem; position: relative; padding-bottom: .4rem; }
.section-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 4px; border-radius: 2px; background: var(--yellow); }
.section-title { margin-top: 2rem; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.cat-tile { background: var(--white); border-radius: var(--radius); text-decoration: none; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.cat-tile:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.cat-img { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, #fafbfc, #eef0f4); }
.cat-img img, .card-img img, .hero-tile img, .gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; padding: inherit; }
.cat-img img { padding: 14px; transition: transform .25s; }
.cat-tile:hover .cat-img img { transform: scale(1.05); }
.cat-initial { width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 800; font-size: 1.8rem; display: flex; align-items: center; justify-content: center; }
.cat-body { padding: .8rem 1rem 1rem; border-top: 3px solid var(--yellow); flex: 1; }
.cat-body strong { display: block; font-size: .95rem; line-height: 1.3; color: var(--navy-dark); }
.cat-body span { display: block; font-size: .8rem; color: var(--muted); margin-top: .2rem; }

.help-band { margin-top: 3rem; background: var(--navy); color: #e6eaf6; border-radius: 16px; padding: 2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.help-band h2 { color: var(--white); margin: 0 0 .3rem; }
.help-band p { margin: 0; }
.help-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.help-band .btn-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.help-band .btn-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* Rejilla de productos */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.card { background: var(--white); border-radius: var(--radius); text-decoration: none; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-img { position: relative; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: var(--white); }
.card-img img { padding: 1.25rem; transition: transform .25s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-tag { position: absolute; left: .6rem; top: .6rem; background: var(--yellow-soft); color: #6b5500; font-size: .72rem; font-weight: 700; padding: .15rem .5rem; border-radius: 999px; }
.card-body { padding: .85rem 1rem 1rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: .9rem; font-weight: 600; line-height: 1.35; margin: 0 0 .75rem; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card-price { font-weight: 800; font-size: 1.2rem; color: var(--navy-dark); }
.card-price small { display: block; font-weight: 500; font-size: .72rem; color: var(--muted); line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.card-go { width: 34px; height: 34px; border-radius: 50%; background: var(--bg); color: var(--navy); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.card:hover .card-go { background: var(--yellow); }
.no-img { color: #aab; font-size: .85rem; }

/* Categoría */
.crumbs { font-size: .85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; color: var(--blue); }
.cat-head { background: var(--white); border-radius: var(--radius); padding: 1.5rem 1.75rem; margin: .75rem 0 1rem; box-shadow: var(--shadow); border-left: 6px solid var(--yellow); }
.cat-head h1 { margin: 0 0 .5rem; color: var(--navy-dark); }
.lead { color: var(--muted); max-width: 900px; }
details.lead summary { cursor: pointer; list-style: none; }
details.lead summary::-webkit-details-marker { display: none; }
details.lead summary::after { content: " Leer más"; color: var(--blue); font-weight: 600; white-space: nowrap; }
details.lead[open] summary { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 0; }
.chip { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--navy); transition: background .15s, border-color .15s; }
.chip:hover { border-color: var(--navy); background: var(--yellow-soft); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.toolbar select { font: inherit; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); margin-left: .3rem; }
.empty { color: var(--muted); padding: 2rem 0; }
.pagination { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin-top: 2.5rem; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 .75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--white); text-decoration: none; box-shadow: var(--shadow); font-weight: 600; }
.pagination a:hover { background: var(--yellow-soft); }
.pagination .current { background: var(--navy); color: var(--white); }
.pagination .disabled { color: #bbb; box-shadow: none; background: transparent; }

/* Ficha de producto */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; margin-top: 1rem; align-items: start; }
.gallery { position: sticky; top: 150px; }
.gallery-main { position: relative; background: var(--white); border-radius: 14px; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 2.5rem; box-shadow: var(--shadow); }
.thumbs { display: flex; gap: .6rem; margin-top: .75rem; flex-wrap: wrap; }
.thumb { width: 76px; height: 76px; padding: 6px; border: 2px solid transparent; background: var(--white); border-radius: 10px; cursor: pointer; box-shadow: var(--shadow); }
.thumb:hover, .thumb.on { border-color: var(--yellow); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.buybox { background: var(--white); border-radius: 14px; padding: 2rem; box-shadow: var(--shadow); }
.buybox h1 { font-size: 1.55rem; margin-top: 0; color: var(--navy-dark); }
.meta { color: var(--muted); font-size: .85rem; margin-top: -.5rem; }
.short { font-size: .95rem; color: #3b4150; }
.short p { margin: .3rem 0; }
.price-box { margin: 1.25rem 0; padding: 1rem 1.25rem; background: var(--bg); border-radius: 10px; display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.price { font-size: 2.2rem; font-weight: 800; color: var(--navy-dark); line-height: 1; }
.price-note { color: var(--muted); font-size: .85rem; }
.options { border: 0; padding: 0; margin: 0 0 1.1rem; }
.options legend { font-weight: 800; margin-bottom: .5rem; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--navy); }
.opt { display: inline-flex; margin: 0 .4rem .4rem 0; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { padding: .5rem .9rem; border: 2px solid var(--line); border-radius: 8px; font-size: .9rem; background: var(--white); transition: border-color .15s, background .15s; }
.opt:hover span { border-color: #b9bfcc; }
.opt input:checked + span { border-color: var(--navy); background: var(--yellow-soft); font-weight: 700; color: var(--navy-dark); box-shadow: inset 0 0 0 1px var(--navy); }
.opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 1px; }
.opt-block { display: flex; }
.opt-block span { flex: 1; }
.unavailable { color: var(--red); font-size: .9rem; }
.qty-row { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; }
.qty-row label { display: flex; flex-direction: column; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; gap: .3rem; }
.qty-row input { width: 92px; height: 52px; padding: 0 .75rem; font: inherit; font-size: 1.05rem; border: 2px solid var(--line); border-radius: 10px; text-align: center; }
.qty-row .btn { flex: 1; min-height: 52px; }
.buy-perks { list-style: none; padding: 1rem 0 0; margin: 1.25rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .45rem; font-size: .9rem; color: #3b4150; }
.buy-perks li { display: flex; gap: .6rem; align-items: center; }
.buy-perks .icon { color: var(--green); }
.description { background: var(--white); border-radius: 14px; padding: 2rem; margin-top: 2rem; box-shadow: var(--shadow); }
.description h2 { margin-top: 0; }

/* Carrito y pedido */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 1.5rem; align-items: start; }
.cart-line { display: grid; grid-template-columns: 72px 1fr auto auto auto; gap: 1rem; align-items: center; background: var(--white); border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: .6rem; box-shadow: var(--shadow); }
.cart-thumb { width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; }
.cart-thumb img { max-height: 100%; object-fit: contain; }
.cart-info a { font-weight: 700; text-decoration: none; color: var(--navy-dark); }
.cart-info a:hover { color: var(--blue); }
.cart-qty { display: flex; gap: .4rem; align-items: center; }
.cart-qty input { width: 70px; padding: .4rem; font: inherit; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.cart-total { font-weight: 800; white-space: nowrap; }
.summary { background: var(--white); border-radius: 14px; padding: 1.5rem; position: sticky; top: 150px; box-shadow: var(--shadow); border-top: 5px solid var(--yellow); }
.summary h2 { margin-top: 0; }
.totals { margin: 0; }
.totals div { display: flex; justify-content: space-between; padding: .35rem 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; }
.totals .grand { border-top: 2px solid var(--navy); margin-top: .4rem; padding-top: .7rem; font-size: 1.25rem; font-weight: 800; color: var(--navy-dark); }
.totals .grand dt { color: var(--navy-dark); }
.hint { font-size: .85rem; color: var(--green); }
.mini-lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.mini-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.checkout-form fieldset { background: var(--white); border: 0; border-radius: 14px; padding: 1.25rem 1.5rem 1rem; margin: 0 0 1rem; box-shadow: var(--shadow); }
.checkout-form legend { font-weight: 800; padding: .3rem .8rem; background: var(--navy); color: var(--white); border-radius: 999px; font-size: .9rem; }
.checkout-form label { display: flex; flex-direction: column; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .8rem; }
.checkout-form input:not([type=radio]):not([type=checkbox]), .checkout-form textarea { font: inherit; font-weight: 400; color: var(--ink); padding: .65rem .8rem; border: 1.5px solid #cfd3dc; border-radius: 8px; margin-top: .25rem; transition: border-color .15s; }
.checkout-form input:focus, .checkout-form textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(35,64,168,.15); }
.checkout-form .opt { flex-direction: row; color: var(--ink); font-size: 1rem; font-weight: 400; }
.checkout-form .check { flex-direction: row; gap: .5rem; align-items: flex-start; color: var(--ink); font-size: .9rem; font-weight: 400; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.row3 { display: grid; grid-template-columns: 1fr 2fr 2fr; gap: 0 1rem; }
.done { background: var(--white); border-radius: 14px; padding: 2rem; max-width: 780px; box-shadow: var(--shadow); }
.bank { background: var(--yellow-soft); border: 1px solid var(--yellow); border-radius: var(--radius); padding: 1rem 1.25rem; }
.bank h2 { margin-top: 0; }

/* Pie */
.footer { background: var(--navy-dark); color: #b9c1d9; font-size: .9rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-top: 2.5rem; }
.footer h3 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 .9rem; }
.footer p { margin: 0 0 .75rem; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer .logo { margin-bottom: 1rem; }
.footer-small { font-size: .8rem; }
.pay-logos { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.pay-logos span { background: var(--white); color: var(--navy); font-weight: 800; font-size: .78rem; padding: .3rem .6rem; border-radius: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.1rem; padding-bottom: 1.25rem; font-size: .8rem; }

/* Pantallas medianas y móvil */
@media (max-width: 1080px) {
    .header-help { display: none; }
    .cart-link { margin-left: auto; }
    .trust { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .product, .cart-layout, .hero { grid-template-columns: 1fr; }
    .hero { padding: 2rem 1.5rem 2.75rem; }
    .hero-art { display: none; }
    .gallery, .summary { position: static; }
    .cart-line { grid-template-columns: 56px 1fr; }
    .cart-qty, .cart-total { grid-column: 2; }
    .row2, .row3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    .hide-sm { display: none !important; }
    .header-row { flex-wrap: wrap; gap: .75rem; padding-top: 10px; padding-bottom: 10px; }
    .search { order: 3; flex-basis: 100%; max-width: none; }
    .search input, .search button { height: 44px; }
    .cart-text { display: none; }
    .logo-mark { font-size: 1.45rem; }
    .hero h1 { font-size: 1.75rem; }
    .hero-lead { font-size: 1rem; }
    .trust { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
    .card-img img { padding: .75rem; }
    .gallery-main { padding: 1.25rem; }
    .card-body { padding: .7rem; }
    .card-go { display: none; }
    .nav-quick-list { display: none; }
    .nav-menu { flex: 1; }
    .nav-panel { left: 0; right: 0; grid-template-columns: 1fr 1fr; padding: 1rem; }
    .buybox, .description, .cat-head { padding: 1.25rem; }
    .help-band { padding: 1.5rem; }
    .footer-grid { grid-template-columns: 1fr; }
    h1 { font-size: 1.5rem; }
}

/* ========== Panel de administración ========== */
.adm { background: #f2f2f0; }
.adm-bar { background: var(--white); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1.5rem; padding: .6rem 16px; flex-wrap: wrap; }
.adm-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.adm-nav a { text-decoration: none; padding: .4rem .75rem; border-radius: 6px; font-weight: 500; }
.adm-nav a:hover { background: var(--bg); }
.adm-nav a.on { background: var(--yellow); }
.adm-logout { margin-left: auto; display: flex; gap: .75rem; align-items: center; }
.adm-main { max-width: 1280px; margin: 0 auto; padding: 1.25rem 16px 4rem; }
.adm-main h1 { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.adm-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; }
.adm-card h2 { margin-top: 0; font-size: 1.1rem; }
.adm-card h3 { font-size: 1rem; margin: 1.5rem 0 .5rem; }
.adm-cols { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; align-items: start; }
.adm-login { max-width: 380px; margin: 3rem auto; }
.adm-form label, .adm-login label, .inline-form label { display: flex; flex-direction: column; font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }
.adm input:not([type=checkbox]):not([type=radio]):not([type=file]), .adm select, .adm textarea { font: inherit; color: var(--ink); padding: .5rem .65rem; border: 1px solid #ccc; border-radius: 6px; margin-top: .2rem; background: var(--white); }
.adm textarea { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }
.adm label.check { flex-direction: row; gap: .5rem; align-items: center; color: var(--ink); font-size: .9rem; margin-bottom: .4rem; }
.adm .btn { border-radius: 8px; }
.cat-checks { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: .5rem; }
.sticky-save { position: sticky; bottom: 0; background: rgba(242,242,240,.95); padding: .75rem 0; margin-bottom: 1rem; border-top: 1px solid var(--line); }
.filters { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.filters input[type=search] { min-width: 260px; }
.inline-form { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; margin-top: 1rem; }
.inline-form label { margin-bottom: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.kpi { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-decoration: none; display: flex; flex-direction: column; gap: .25rem; }
.kpi span { color: var(--muted); font-size: .85rem; }
.kpi strong { font-size: 1.6rem; }
.kpi small { font-size: .9rem; color: var(--muted); font-weight: 400; }
.kpi-hot { border-left: 5px solid var(--yellow); }
.tbl-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.adm-card .tbl-wrap { border: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { padding: .55rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.tbl th { background: #fafafa; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.tbl tbody tr:hover { background: #fcfcf6; }
.tbl .num { text-align: right; white-space: nowrap; }
.tbl a { font-weight: 500; }
.tbl-img { width: 48px; }
.tbl-img img { width: 40px; height: 40px; object-fit: contain; }
.in-sm { width: 140px; padding: .3rem .45rem !important; margin: 0 !important; }
.in-num { width: 110px; text-align: right; }
.st { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #eee; white-space: nowrap; }
.st-pending, .st-awaiting_transfer { background: #fff3c4; color: #7a5b00; }
.st-paid { background: #dff3e6; color: var(--green); }
.st-processing { background: #e2ecfb; color: #1d4f9a; }
.st-shipped { background: #e9e2fb; color: #4b2a99; }
.st-cancelled { background: #f6e0de; color: var(--red); }
.adm-totals { max-width: 360px; margin-left: auto; margin-top: 1rem; }
.note { background: #fff8d6; border-radius: 6px; padding: .75rem; }
.adm-images { display: flex; flex-wrap: wrap; gap: .75rem; }
.adm-image { width: 150px; border: 2px solid var(--line); border-radius: var(--radius); padding: .5rem; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; font-size: .85rem; }
.adm-image.is-cover { border-color: var(--yellow); }
.adm-image img { width: 100%; height: 120px; object-fit: contain; }
.link-plain { color: var(--ink); }
@media (max-width: 860px) { .adm-cols { grid-template-columns: 1fr; } .adm-logout { margin-left: 0; } }
.adm-bar .logo-link { text-decoration: none; }
.adm-logout a.on { font-weight: 700; text-decoration: underline; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 1rem; align-items: start; }
.settings-grid .adm-card { margin-bottom: 0; }
.settings-warnings { margin-bottom: 1rem; border-left: 5px solid var(--yellow); }
.settings-warnings ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.field-help { margin: -.5rem 0 .75rem; font-size: .8rem; }
.adm-form input:not([type=checkbox]):not([type=radio]):not([type=file]) { width: 100%; }
.install { max-width: 620px; margin: 0 auto; padding: 2rem 16px 4rem; }
.install-head { text-align: center; margin-bottom: 1.5rem; }
.install-head h1 { margin: 1rem 0 .25rem; }
.install .adm-card { margin-bottom: 1rem; }
.req-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; font-size: .92rem; }
.req-list .ok { color: var(--green); }
.req-list .ko { color: var(--red); font-weight: 700; }
.install-wait { text-align: center; margin-top: .75rem; }
@media (max-width: 640px) { .settings-grid { grid-template-columns: 1fr; } }
/* Pagos */
.pay-again { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1rem 0 1.5rem; }
.paid-ok { background: #e7f5ec; color: var(--green); padding: .75rem 1rem; border-radius: var(--radius); font-weight: 600; }

/* Páginas de información */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a { color: #b9c1d9; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.page-content { background: var(--white); border-radius: 14px; padding: 2.25rem 2.5rem; max-width: 880px; margin-top: 1rem; box-shadow: var(--shadow); }
.page-content h1 { margin-top: 0; color: var(--navy-dark); }
.rich h2 { font-size: 1.2rem; margin-top: 1.75rem; }
.rich h3 { font-size: 1.05rem; margin-top: 1.25rem; }
.rich p, .rich li { line-height: 1.7; }
.rich table { border-collapse: collapse; width: 100%; margin: 1rem 0; font-size: .9rem; display: block; overflow-x: auto; }
.rich th, .rich td { border: 1px solid var(--line); padding: .5rem .65rem; text-align: left; vertical-align: top; }
.rich th { background: #fafafa; }
.rich a { color: var(--blue); }
.page-updated { margin-top: 2rem; font-size: .8rem; }
.totals .tax-line { font-size: .85rem; color: var(--muted); padding-top: 0; }
@media (max-width: 640px) { .page-content { padding: 1.25rem; } }

/* Cuenta de cliente */
.account-link { display: flex; align-items: center; gap: .4rem; text-decoration: none; color: var(--navy); font-weight: 700; white-space: nowrap; padding: .5rem .6rem; border-radius: 999px; }
.account-link:hover { background: var(--bg); }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; max-width: 900px; margin: 2rem auto; align-items: start; }
.auth-wrap.auth-single { grid-template-columns: 1fr; max-width: 480px; }
.auth-card { background: var(--white); border-radius: 14px; padding: 1.75rem; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; margin: 0 0 1.25rem; color: var(--navy); }
.auth-card h2 { margin-top: 0; color: var(--navy); }
.auth-side .buy-perks { border-top: 0; margin-top: 0; padding-top: 0; margin-bottom: 1rem; }
.auth-links { text-align: center; font-size: .9rem; margin: 1rem 0 0; }
.account-head h1 { color: var(--navy); margin: 1.5rem 0 1rem; }
.account-nav { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1.25rem; border-bottom: 2px solid var(--line); }
.account-nav a { display: flex; align-items: center; gap: .4rem; padding: .6rem 1rem; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.account-nav a.on { color: var(--navy); border-color: var(--yellow); }
.account-nav form { margin-left: auto; }
.link-plain-btn { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; padding: .6rem 0; }
.verify-note { display: flex; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.verify-note form { flex-shrink: 0; }
.account-panel { background: var(--white); border-radius: 14px; padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 2rem; }
.account-panel h2 { color: var(--navy); font-size: 1.15rem; }
.account-panel > h2:first-child { margin-top: 0; }
.order-list { display: grid; gap: .5rem; }
.order-row { display: grid; grid-template-columns: 1.3fr 1fr auto 7rem 34px; gap: 1rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.order-row:hover { border-color: var(--navy); }
.order-row:hover .card-go { background: var(--yellow); }
.order-num small { display: block; color: var(--muted); }
.order-total { font-weight: 800; text-align: right; }
.order-summary-head { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; background: var(--bg); border-radius: 10px; padding: 1rem; margin-bottom: 1.25rem; }
.order-summary-head span.muted { display: block; font-size: .8rem; margin-bottom: .2rem; }
.danger-zone { background: var(--white); border-radius: 14px; padding: 1rem 1.5rem; box-shadow: var(--shadow); }
.danger-zone summary { cursor: pointer; color: var(--red); font-weight: 700; }
.btn-danger { background: var(--red); border-color: var(--red); color: var(--white); }
.account-invite, .checkout-login { background: var(--white); border: 2px dashed var(--yellow); border-radius: 14px; padding: 1rem 1.25rem; margin: 1rem 0; }
.account-invite h2 { margin-top: 0; color: var(--navy); font-size: 1.1rem; }
@media (max-width: 860px) {
    .auth-wrap { grid-template-columns: 1fr; }
    .account-text { display: none; }
    .order-summary-head { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .order-row { grid-template-columns: 1fr auto; }
    .order-row .order-items, .order-row .card-go { display: none; }
    .verify-note { flex-direction: column; align-items: stretch; }
}

/* Estados nuevos y API */
.st-delivery_note_printed { background: #fdebd3; color: #8a4b00; }
.st-delivered { background: #d5efe0; color: #08572a; }
.st-refunded { background: #ececec; color: #555; }
.adm-dates { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; margin: 1rem 0 0; font-size: .85rem; }
.adm-dates dt { color: var(--muted); }
.adm-dates dd { margin: 0; font-weight: 600; }
.token-new { border: 2px solid var(--green); }
.token-box { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; background: var(--bg); border-radius: 8px; padding: .75rem 1rem; margin: .5rem 0; }
.token-box code { font-size: 1rem; word-break: break-all; user-select: all; }
.api-docs { max-width: 900px; }
.api-docs pre { background: #1b2a5e; color: #f2f4f8; padding: 1rem; border-radius: 8px; overflow-x: auto; font-size: .85rem; }
.api-docs code { font-size: .88em; }
.api-docs table { border-collapse: collapse; width: 100%; margin: .75rem 0; font-size: .9rem; }
.api-docs th, .api-docs td { border: 1px solid var(--line); padding: .4rem .6rem; text-align: left; vertical-align: top; }
.api-docs h2 { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }

/* Blog */
.blog-head { margin: 1rem 0 1.25rem; }
.blog-head h1 { margin: 0 0 .25rem; color: var(--navy-dark); }
.blog-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.blog-tabs a { padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); text-decoration: none; font-size: .88rem; font-weight: 600; color: var(--navy); }
.blog-tabs a:hover { border-color: var(--navy); }
.blog-tabs a.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.blog-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.blog-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.blog-card-img { aspect-ratio: 16 / 9; background: var(--bg); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 1rem 1.15rem 1.25rem; }
.blog-card-body h2 { font-size: 1.05rem; line-height: 1.35; margin: .25rem 0 .5rem; color: var(--navy-dark); }
.blog-card-body p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.blog-card-body .blog-meta { margin: 0; }
.blog-meta { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.blog-meta a { color: var(--blue); text-decoration: none; }
.blog-post { max-width: 880px; }
.blog-post h1 { margin-top: .25rem; }
.blog-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin: .5rem 0 1.25rem; }
.rich img { max-width: 100%; height: auto; }
.video-link { display: inline-block; padding: .65rem 1.1rem; border-radius: 8px; background: var(--navy); color: var(--white) !important; font-weight: 700; text-decoration: none; }
.video-link:hover { background: var(--navy-dark); }
.blog-cats { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.adm-preview { display: block; max-width: 100%; max-height: 160px; border-radius: 8px; margin: .35rem 0 .5rem; }
.adm-form .field { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; display: flex; flex-direction: column; gap: .25rem; }
.adm-danger { max-width: 520px; }
.adm-danger .check { display: flex; gap: .5rem; align-items: center; margin: .5rem 0 .75rem; font-size: .9rem; }
.filters select { max-width: 240px; }
.th-sort { color: inherit; text-decoration: none; white-space: nowrap; }
.th-sort:hover { text-decoration: underline; }
.stock-out { color: var(--red); font-weight: 700; }
.adm-section { margin: 2rem 0 .25rem; font-size: 1.3rem; }
.payload { max-width: 520px; max-height: 320px; overflow: auto; font-size: .75rem; background: var(--bg); padding: .5rem; border-radius: 6px; white-space: pre-wrap; word-break: break-all; }