/* Mercado Diario. Estilo de gran tienda: barra azul marino con buscador, fondo gris claro, tarjetas blancas.
   Azul eléctrico para acciones, verde para envío y confianza, rojo solo para descuentos. */
:root {
  --navy: #0b1b33; --navy-2: #12284a; --blue: #1463ff; --blue-d: #0b4fd6; --blue-soft: #e8f0ff;
  --green: #0a8f5a; --green-soft: #e6f6ee; --red: #e0313c;
  --ink: #0f172a; --muted: #5b6678; --line: #e3e7ee; --bg: #f2f4f8; --card: #ffffff;
  --r: 12px; --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px -16px rgba(15, 23, 42, 0.25);
  --f-head: "Manrope", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); background: var(--navy); z-index: 100; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
.w { max-width: 1240px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: ui-monospace, Menlo, monospace; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; transition: background 0.15s; }
.btn:hover { background: var(--blue-d); }
.btn.big { width: 100%; min-height: 52px; font-size: 16px; }
.btn.ghost { background: var(--blue-soft); color: var(--blue-d); }
.btn.ghost:hover { background: #d6e4ff; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* Cabecera */
.topbar { background: var(--navy-2); color: #c9d4e6; font-size: 12.5px; padding-top: env(safe-area-inset-top, 0px); }
.topbar-in { display: flex; justify-content: center; gap: 28px; padding-block: 7px; }
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 16px; height: 16px; color: #7fb0ff; }
.topbar b { color: #fff; }
.hdr { background: var(--navy); color: #fff; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; }
.hdr-in { display: flex; align-items: center; gap: 20px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; flex: 0 0 auto; }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, #2f7bff, #0b4fd6); display: grid; place-items: center; font-family: var(--f-head); font-weight: 800; font-size: 13px; letter-spacing: 0.02em; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18); }
.logo-txt { font-family: var(--f-head); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.logo-txt b { color: #7fb0ff; font-weight: 800; }
.search { position: relative; flex: 1; display: flex; max-width: 640px; margin-inline: auto; }
.search input { flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 10px 0 0 10px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; }
.search input:focus { outline: 2px solid #7fb0ff; outline-offset: 0; }
.search button { width: 52px; border: 0; border-radius: 0 10px 10px 0; background: var(--blue); color: #fff; display: grid; place-items: center; }
.search button:hover { background: var(--blue-d); }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; color: var(--ink); border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.35); overflow: hidden; z-index: 60; }
.suggest a { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px; text-decoration: none; color: var(--ink); font-size: 14px; }
.suggest a:hover, .suggest a.on { background: var(--blue-soft); }
.suggest img { width: 44px; height: 44px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.suggest .all { display: block; text-align: center; color: var(--blue); font-weight: 600; border-top: 1px solid var(--line); }
.help { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 13px; line-height: 1.2; }
.help small { display: block; color: #9fb2cf; font-size: 11.5px; }
.cart-open { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 0; background: rgba(255, 255, 255, 0.08); color: #fff; height: 44px; padding: 0 14px; border-radius: 10px; font-weight: 600; }
.cart-open:hover { background: rgba(255, 255, 255, 0.16); }
.cart-count { position: absolute; top: 3px; left: 28px; background: #ffb020; color: var(--navy); font-size: 11px; font-weight: 800; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.catnav { background: #fff; border-bottom: 1px solid var(--line); }
.catnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catnav-in::-webkit-scrollbar { display: none; }
.catnav a { flex: 0 0 auto; padding: 11px 12px; font-size: 14px; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.catnav a:hover { color: var(--blue); border-bottom-color: var(--blue); }
@media (max-width: 860px) { .hide-md { display: none !important; } }
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  .hdr-in { flex-wrap: wrap; gap: 10px; padding-block: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .cart-open { margin-left: auto; padding: 0 10px; }
  .topbar-in { justify-content: center; }
}

/* Portada */
.hero-wrap { padding-block: 18px 6px; }
.hero { display: grid; grid-template-columns: 2.1fr 1fr; gap: 14px; }
.hero > * { min-width: 0; }
.hero-main { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 18px; padding: clamp(20px, 3.4vw, 40px); border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #1d5bd8 0%, #0f2f66 45%, var(--navy) 100%); }
.hero-main::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent 30%, #000); pointer-events: none; }
.hero-txt { position: relative; z-index: 1; display: grid; gap: 14px; justify-items: start; }
.tag { display: inline-flex; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); color: #dbe7ff; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; }
.hero h1 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; }
.hero h1 em { font-style: normal; color: #8fc0ff; }
.hero-txt p { color: #c9d6ee; max-width: 42ch; }
.hero-deal { display: grid; gap: 2px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: #c9d6ee; max-width: 100%; }
.hero-deal b { color: #fff; font-family: var(--f-head); font-size: 24px; }
.hero-main .btn { background: #fff; color: var(--navy); }
.hero-img { position: relative; z-index: 1; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.6); }
.hero-img img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; }
.hero-side { display: grid; gap: 14px; }
.side-bn { display: grid; grid-template-columns: 1fr 96px; align-items: center; gap: 10px; padding: 18px; border-radius: 16px; text-decoration: none; color: var(--ink); background: #fff; box-shadow: var(--shadow); min-height: 140px; }
.side-bn small { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; }
.side-bn b { display: block; font-family: var(--f-head); font-size: 20px; margin: 4px 0; }
.side-bn span { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.side-bn img { width: 96px; height: 96px; object-fit: contain; border-radius: 10px; background: #fff; }
.side-bn.green small { color: var(--green); }
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; } .hero-side { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hero-main { grid-template-columns: 1fr; } .hero-img { max-width: 260px; justify-self: center; order: -1; } .hero-side { grid-template-columns: 1fr; } .side-bn { min-height: 0; } }

/* Bloques */
.blk { padding-block: 18px; }
.blk-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.blk-h h2 { font-size: clamp(19px, 2.2vw, 23px); font-weight: 800; }
.blk-h a { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; text-decoration: none; font-size: 14px; white-space: nowrap; }
.cat-tiles { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; }
.cat-tiles a { display: grid; justify-items: center; gap: 6px; text-align: center; background: #fff; border-radius: var(--r); padding: 16px 8px 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform 0.15s; }
.cat-tiles a:hover { transform: translateY(-2px); }
.ct-img { width: 84px; height: 84px; border-radius: 50%; background: var(--bg); overflow: hidden; display: grid; place-items: center; }
.ct-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-tiles b { font-size: 13.5px; line-height: 1.25; }
.cat-tiles small { font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) { .cat-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .ct-img { width: 64px; height: 64px; } .cat-tiles b { font-size: 12.5px; } }

.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feat { display: grid; grid-template-columns: 44% 1fr; gap: 14px; background: #fff; border-radius: var(--r); padding: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-width: 0; }
.feat > * { min-width: 0; }
.feat-img { position: relative; }
.feat-img img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #fff; }
.badge { position: absolute; top: 6px; left: 6px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.feat-b { display: flex; flex-direction: column; gap: 8px; }
.feat h3 { font-size: 15px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feat-price { font-family: var(--f-head); font-size: 22px; }
.feat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.feat li { display: flex; gap: 6px; }
.feat li svg { color: var(--green); flex: 0 0 auto; margin-top: 2px; }
.feat .btn { margin-top: auto; min-height: 38px; font-size: 14px; align-self: start; }
@media (max-width: 1000px) { .feats { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(88%, 420px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .feat { scroll-snap-align: start; } }

/* Tarjetas de producto */
.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 5); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.row .card { scroll-snap-align: start; }
@media (max-width: 1100px) { .row { grid-auto-columns: calc((100% - 36px) / 4); } }
@media (max-width: 860px) { .row { grid-auto-columns: 30%; } }
@media (max-width: 600px) { .row { grid-auto-columns: 46%; gap: 8px; } }
.card { background: var(--card); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-width: 0; transition: box-shadow 0.15s, transform 0.15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 18px 36px -18px rgba(15, 23, 42, 0.35); }
.card-img { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
.card-img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.off { position: absolute; top: 8px; left: 8px; z-index: 1; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 2px 7px; border-radius: 6px; }
.card-b { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card h3 { font-family: var(--f-body); font-size: 13.5px; font-weight: 500; letter-spacing: 0; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.price { display: grid; }
.price s { font-size: 12px; color: var(--muted); }
.price b { font-family: var(--f-head); font-size: 20px; font-weight: 800; }
.ship { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; font-size: 12px; font-weight: 600; color: var(--green); }
.ship svg { width: 15px; height: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.step i { width: 34px; height: 34px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-d); font-style: normal; font-weight: 800; display: grid; place-items: center; margin-bottom: 6px; }
.step span { color: var(--muted); font-size: 14px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.faq-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }
.faq-wrap h2 { font-size: 23px; margin-bottom: 8px; }
@media (max-width: 820px) { .faq-wrap { grid-template-columns: 1fr; } }
.faq details { background: #fff; border-radius: 10px; margin-bottom: 8px; box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 15px 44px 15px 16px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--blue); }
.faq details[open] summary::after { content: "–"; }
.faq details div { padding: 0 16px 16px; color: var(--muted); }

/* Producto */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); padding-block: 14px 10px; }
.crumbs a { color: var(--blue); text-decoration: none; }
.crumbs svg { width: 14px; height: 14px; }
.crumbs span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }
.gallery { display: grid; grid-template-columns: 72px 1fr; gap: 12px; background: #fff; border-radius: 16px; padding: 14px; box-shadow: var(--shadow); }
.gallery > * { min-width: 0; }
.gallery:has(> .main-img:only-child) { grid-template-columns: 1fr; }
.thumbs { display: flex; flex-direction: column; gap: 8px; max-height: 560px; overflow-y: auto; }
.thumbs button { flex: 0 0 72px; height: 72px; border: 2px solid var(--line); border-radius: 8px; padding: 0; background: #fff; overflow: hidden; }
.thumbs button[aria-pressed="true"] { border-color: var(--blue); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.main-img { position: relative; }
.main-img img { width: 100%; aspect-ratio: 1; object-fit: contain; }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; padding: 10px; } .thumbs { flex-direction: row; order: 2; overflow-x: auto; } .thumbs button { flex: 0 0 60px; height: 60px; } }
.buybox { background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; position: sticky; top: 130px; }
@media (max-width: 860px) { .buybox { position: static; } }
.buybox h1 { font-size: clamp(20px, 2.4vw, 25px); font-weight: 800; }
.pdp-price { display: grid; }
.pdp-price s { color: var(--muted); font-size: 14px; }
.pdp-price b { font-family: var(--f-head); font-size: 34px; font-weight: 800; }
.mp-line { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--green); font-weight: 600; }
.lbl { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.lbl svg { width: 18px; height: 18px; color: var(--blue); }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variants button { border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 9px 16px; font-weight: 600; }
.variants button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-d); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.qty button { border: 0; background: none; width: 40px; height: 42px; font-size: 18px; }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }
.shipcalc { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--bg); }
.shipcalc select { width: 100%; font: inherit; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.ship-result { font-size: 14px; margin-top: 8px; }
.ship-result b { color: var(--green); }
.assure { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; color: var(--muted); }
.assure li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; }
.assure svg { color: var(--green); }
.assure b { color: var(--ink); }
.desc-card { margin-top: 18px; }
.desc-card > h2, .prose-card h1 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.desc, .prose-card { background: #fff; border-radius: 16px; padding: clamp(18px, 3vw, 32px); box-shadow: var(--shadow); }
.desc { max-width: none; }
.desc > *, .prose > * { max-width: 75ch; }
.desc, .prose { overflow-wrap: anywhere; color: #1e293b; }
.desc h2, .desc h3, .prose h2, .prose h3 { margin: 20px 0 8px; font-size: 19px; }
.desc h3, .prose h3 { font-size: 16.5px; }
.desc p, .prose p { margin: 0 0 12px; }
.desc ul, .prose ul { padding-left: 20px; margin: 0 0 12px; }
.desc li, .prose li { margin-bottom: 4px; }
.desc img { border-radius: 10px; margin: 12px 0; height: auto; }
.desc table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.desc td, .desc th { border: 1px solid var(--line); padding: 6px 8px; }
.prose-card { margin-block: 4px 24px; }

/* Listados */
.listing > * { min-width: 0; }
.listing { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; padding-bottom: 24px; }
.filters { background: #fff; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); position: sticky; top: 130px; }
.filters h4 { font-size: 15px; margin-bottom: 8px; }
.filters ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.filters a { display: flex; justify-content: space-between; padding: 7px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); font-size: 14px; }
.filters a:hover { background: var(--bg); }
.filters a[aria-current="page"] { background: var(--blue-soft); color: var(--blue-d); font-weight: 600; }
.filters small { color: var(--muted); }
.list-h { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.list-h h1 { font-size: clamp(21px, 2.6vw, 27px); font-weight: 800; }
.list-h p { margin-top: 4px; max-width: 70ch; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort select { font: inherit; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.count { font-size: 13px; margin-bottom: 10px; }
@media (max-width: 860px) { .listing { grid-template-columns: 1fr; } .filters { position: static; } .filters ul { display: flex; gap: 6px; overflow-x: auto; } .filters a { white-space: nowrap; border: 1px solid var(--line); } .filters h4 { display: none; } }

/* Confianza y pie */
.trustbar { background: #fff; border-top: 1px solid var(--line); margin-top: 18px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-block: 22px; }
.trust-grid > div { display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; }
.trust-grid svg { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--blue-soft); color: var(--blue-d); }
.trust-grid b { display: block; font-size: 14px; }
.trust-grid span { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }
.ftr { background: var(--navy); color: #b8c5da; font-size: 14px; }
.ftr-in { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; padding-block: 36px; }
.ftr p { margin-top: 12px; max-width: 36ch; }
.ftr h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.ftr a { color: #b8c5da; text-decoration: none; }
.ftr a:hover { color: #fff; }
.paybadges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.paybadges span { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 6px; padding: 3px 8px; font-size: 12px; color: #fff; }
.copy { border-top: 1px solid #1f3558; padding-block: 14px calc(14px + env(safe-area-inset-bottom, 0px)); font-size: 12px; color: #8597b3; }
@media (max-width: 820px) { .ftr-in { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .ftr-in { grid-template-columns: 1fr; } }
.wa-float { position: fixed; right: max(16px, calc(env(safe-area-inset-right, 0px) + 12px)); bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px)); width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4); z-index: 30; }

/* Carro */
.scrim { position: fixed; inset: 0; background: rgba(11, 27, 51, 0.55); z-index: 80; }
.drawer { position: fixed; z-index: 90; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(105%); transition: transform 0.25s ease; box-shadow: -12px 0 32px -12px rgba(0, 0, 0, 0.3); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--navy); color: #fff; }
.drawer-head h2 { font-size: 18px; }
.drawer-close { width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; font-size: 22px; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 16px; display: grid; gap: 10px; }
.drawer-foot:empty { display: none; }
.li { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; }
.li img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.li .n { font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li .v { font-size: 12px; color: var(--muted); }
.li .r { display: grid; justify-items: end; gap: 4px; }
.li .qty button { width: 30px; height: 30px; font-size: 15px; }
.link { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; font-size: 13px; justify-self: start; }
.totals { display: grid; gap: 4px; font-size: 15px; font-variant-numeric: tabular-nums; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .grand { font-weight: 800; font-size: 18px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.progress { font-size: 13px; color: var(--muted); background: var(--green-soft); border-radius: 8px; padding: 10px 12px; }
.progress b { color: var(--green); }
.track { height: 6px; background: #cdebd9; border-radius: 3px; margin-top: 6px; overflow: hidden; }
.fill { height: 100%; background: var(--green); width: 0; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; display: grid; gap: 14px; justify-items: center; }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px; width: 100%; background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two > * { min-width: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint { color: var(--red); font-size: 14px; min-height: 1em; }
.secure { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--muted); }
.secure svg { width: 15px; height: 15px; color: var(--green); }

/* Barra superior en movimiento */
.ticker { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.topbar:hover .ticker { animation-play-state: paused; }
.ticker-set { display: flex; gap: 44px; padding: 7px 22px; flex-shrink: 0; }
.ticker-set span { white-space: nowrap; }
.topbar { overflow: hidden; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* Carrusel de la portada */
.hero-car { position: relative; min-width: 0; border-radius: 16px; overflow: hidden; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100%; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-track > .hero-main { flex: 0 0 100%; scroll-snap-align: start; border-radius: 0; }
.hero h2 { font-size: clamp(22px, 2.8vw, 34px); font-weight: 800; color: #fff; }
.hc-btn { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0,0,0,.5); }
.hc-btn svg { width: 18px; height: 18px; }
.hc-btn.prev { left: 10px; } .hc-btn.prev svg { rotate: 180deg; }
.hc-btn.next { right: 10px; }
.hc-dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.hc-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s, background .3s; }
.hc-dots button[aria-current="true"] { width: 26px; background: #fff; }
@media (max-width: 600px) { .hc-btn { display: none; } .hero-track > .hero-main { padding-bottom: 36px; } }
@media (prefers-reduced-motion: reduce) { .ticker { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } .ticker-set[aria-hidden] { display: none; } }
@media (min-width: 601px) { .hero-track > .hero-main { padding-inline: 64px; padding-bottom: 44px; } .hero h2 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } }
