/* AMS Celular — estilos. Pensado primero para el celular.
   Identidad del logo oficial (Karbe Diseño): turquesa #0097A2 y azul marino #033E76. */
:root {
  --navy: #033E76;
  --navy-2: #022C55;
  --teal: #0097A2;
  --teal-dark: #00737B;      /* turquesa para texto pequeño (contraste AA sobre blanco) */
  --teal-soft: #E3F4F5;
  --ink: #0F1B2A;
  --ink-2: #3D4A5C;
  --muted: #687385;
  --line: #E3E8EE;
  --bg: #FFFFFF;
  --soft: #F4F7F9;
  --wa: #25D366;
  --wa-dark: #128C7E;
  --ok: #0F7B45;
  --warn: #B45309;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(3, 62, 118, .08);
  --max: 1240px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ================= encabezado ================= */
.topbar { background: var(--navy); color: #fff; font-size: .78rem; text-align: center; padding: 6px 16px; }
.header { position: sticky; top: 0; z-index: 30; background: #fff; box-shadow: 0 1px 0 var(--line); }
.head-row { display: flex; align-items: center; gap: 10px; min-height: 58px; }
.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 38px; width: auto; }
.head-actions { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; text-decoration: none; color: var(--navy); }
.icon-btn:hover { background: var(--soft); }
.icon-btn svg { width: 24px; height: 24px; }
.badge-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--teal); color: #fff; font-size: .7rem; font-weight: 800; line-height: 19px; text-align: center; }

/* buscador con sugerencias */
.search-box { position: relative; padding: 0 0 10px; }
.search { display: flex; align-items: center; background: var(--soft); border: 1.5px solid transparent; border-radius: 12px; overflow: hidden; }
.search:focus-within { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px var(--teal-soft); }
.search svg { flex: 0 0 20px; width: 20px; height: 20px; margin-left: 12px; color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 46px; padding: 0 10px; border: 0; background: transparent; font-size: 1rem; outline: none; }
.search input::-webkit-search-cancel-button { display: none; }
.search button { flex: 0 0 auto; height: 46px; padding: 0 18px; border: 0; background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; }
.suggest { position: absolute; left: 0; right: 0; top: 50px; z-index: 50; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(3, 62, 118, .18); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.suggest a { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 12px; text-decoration: none; border-bottom: 1px solid var(--soft); }
.suggest a:hover, .suggest a[aria-selected="true"] { background: var(--teal-soft); }
.suggest .s-img { width: 44px; height: 44px; border-radius: 8px; background: var(--soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.suggest .s-img img { width: 100%; height: 100%; object-fit: contain; }
.suggest .s-img svg { width: 20px; height: 20px; color: var(--muted); }
.suggest .s-name { font-size: .9rem; line-height: 1.25; overflow-wrap: anywhere; }
.suggest .s-name small { display: block; color: var(--muted); font-size: .75rem; }
.suggest .s-price { font-weight: 800; white-space: nowrap; }
.suggest a.s-all { display: block; padding: 12px; text-align: center; font-weight: 700; color: var(--teal-dark); }
.suggest .s-empty { padding: 14px; color: var(--muted); font-size: .9rem; }

/* fila de categorías */
.cat-strip { border-top: 1px solid var(--line); background: #fff; }
.cat-strip .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.cat-strip .wrap::-webkit-scrollbar { display: none; }
.cat-strip a { flex: 0 0 auto; padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--ink-2); background: var(--soft); white-space: nowrap; }
.cat-strip a:hover, .cat-strip a[aria-current="page"] { background: var(--navy); color: #fff; }

/* ================= botones ================= */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; text-decoration: none; cursor: pointer; font-size: 1rem; text-align: center; line-height: 1.2; }
.btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-dark); }
.btn-line { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-ghost-w { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-w:hover { background: #fff; color: var(--navy); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--teal-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
.link:hover { text-decoration: underline; }

/* ================= portada: mosaicos ================= */
.tiles { display: grid; gap: 12px; padding: 12px 0 0; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; border-radius: 22px; overflow: hidden; padding: 30px 20px 0; min-height: 440px; text-decoration: none; }
.tile-dark { background: radial-gradient(120% 80% at 50% 0%, #0A5597 0%, var(--navy) 55%, #021F3B 100%); color: #fff; }
.tile-light { background: linear-gradient(180deg, #F4F7F9 0%, #E9F1F4 100%); color: var(--ink); }
.tile-teal { background: linear-gradient(180deg, #E3F4F5 0%, #CBEBED 100%); color: var(--ink); }
.tile .t-kicker { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); }
.tile-dark .t-kicker { color: #6FD6DD; }
.tile h2 { margin: 6px 0 4px; font-size: clamp(1.7rem, 7vw, 2.8rem); line-height: 1.08; letter-spacing: -.02em; max-width: 16em; }
.tile .t-sub { margin: 0 0 4px; font-size: 1rem; opacity: .85; }
.tile .t-price { margin: 4px 0 16px; font-size: 1.05rem; font-weight: 700; }
.tile .t-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 18px; }
.tile .t-cta .btn { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.tile .t-img { margin-top: auto; width: 100%; max-width: 420px; height: 240px; display: flex; align-items: flex-end; justify-content: center; }
.tile .t-img img { max-height: 100%; width: auto; object-fit: contain; border-radius: 14px 14px 0 0; mix-blend-mode: multiply; }
.tile-dark .t-img img { mix-blend-mode: normal; background: #fff; border-radius: 16px 16px 0 0; padding: 14px 14px 0; }
.tile-skel { background: var(--soft); min-height: 440px; border-radius: 22px; }

/* insignias de confianza */
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 18px 0 6px; }
.trust div { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--soft); font-size: .84rem; line-height: 1.25; color: var(--ink-2); min-width: 0; }
.trust svg { flex: 0 0 26px; width: 26px; height: 26px; color: var(--teal); }
.trust strong { display: block; color: var(--ink); font-size: .9rem; }

.section { padding: 34px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; font-size: clamp(1.35rem, 5.4vw, 2rem); letter-spacing: -.015em; color: var(--ink); }

/* círculos de categorías */
.cat-circles { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.cat-circle { scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; text-align: center; font-size: .8rem; font-weight: 600; line-height: 1.2; color: var(--ink-2); overflow-wrap: anywhere; }
.cat-circle span.c-img { width: 80px; height: 80px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: border-color .15s; }
.section-soft .cat-circle span.c-img { border-color: transparent; }
.cat-circle img { width: 74%; height: 74%; object-fit: contain; }
.cat-circle svg { width: 32px; height: 32px; color: var(--navy); }
.cat-circle:hover span.c-img { border-color: var(--teal); }

/* rieles de productos (deslizables en el celular) */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }

/* marcas */
.brands { display: flex; flex-wrap: wrap; gap: 8px; }
.brand-chip { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; font-weight: 700; font-size: .86rem; color: var(--navy); letter-spacing: .02em; }
.brand-chip:hover { border-color: var(--navy); }

/* ================= tarjetas de producto ================= */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: var(--shadow); border-color: #cfd8e2; }
.card-img { position: relative; aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; padding: 12px; text-decoration: none; }
.card-img img { width: 100%; height: 100%; object-fit: contain; }
.card-tags { position: absolute; top: 8px; left: 8px; display: flex; flex-wrap: wrap; gap: 4px; z-index: 1; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .02em; }
.tag-ok { background: var(--teal-soft); color: var(--teal-dark); }
.tag-used { background: #FFF4E0; color: #8A4B00; }
.noimg { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; background: var(--soft); border-radius: 12px; color: var(--muted); font-size: .74rem; text-align: center; padding: 8px; }
.noimg img { width: 40%; height: auto; opacity: .3; filter: grayscale(1); }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.card-brand { font-size: .7rem; font-weight: 800; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .05em; overflow-wrap: anywhere; }
.card-name { font-size: .9rem; line-height: 1.3; font-weight: 500; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-name::after { content: ""; position: absolute; inset: 0; }   /* toda la tarjeta abre el producto */
.card-price { margin-top: auto; padding-top: 6px; font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.card-price small { font-size: .68rem; font-weight: 700; color: var(--muted); margin-left: 3px; }
.stock { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700; color: var(--ok); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.low { color: var(--warn); }
.card-add { position: relative; z-index: 2; margin-top: 8px; min-height: 40px; padding: 0 12px; font-size: .88rem; }

/* ================= catálogo ================= */
.page-title { margin: 18px 0 2px; font-size: clamp(1.5rem, 6vw, 2.2rem); letter-spacing: -.015em; }
.cat-layout { display: grid; gap: 18px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 10px; }
.toolbar .btn { min-height: 44px; padding: 0 16px; font-size: .92rem; }
.toolbar select, .filters select, .filters input { height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: .95rem; max-width: 100%; min-width: 0; }
.toolbar select { flex: 1 1 160px; }
.result-info { width: 100%; color: var(--muted); font-size: .88rem; }
.active-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--navy); font-size: .82rem; font-weight: 700; border: 0; cursor: pointer; }
.chip::after { content: "×"; font-size: 1rem; line-height: 1; }
.filters { display: grid; gap: 16px; }
.filters h3 { margin: 0 0 6px; font-size: .95rem; }
.filters select { width: 100%; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-row input { width: 100%; }
.sheet-bg { position: fixed; inset: 0; background: rgba(3, 25, 50, .45); z-index: 60; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; background: #fff; border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 86vh; overflow-y: auto; box-shadow: 0 -10px 40px rgba(0,0,0,.18); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.sheet-head h2 { margin: 0; font-size: 1.2rem; }
.side { display: none; }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 26px 0 10px; flex-wrap: wrap; }
.pager span { color: var(--muted); font-size: .9rem; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty.full { grid-column: 1 / -1; }
.skeleton { background: linear-gradient(90deg, var(--soft) 0%, #eaeff3 50%, var(--soft) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; border-radius: var(--radius); aspect-ratio: 3 / 5; }
@keyframes sk { to { background-position: -200% 0; } }

/* ================= ficha de producto ================= */
.crumbs { margin: 14px 0 8px; font-size: .84rem; color: var(--muted); overflow-wrap: anywhere; }
.crumbs a { color: var(--muted); }
.product { display: grid; gap: 20px; padding-bottom: 30px; }
.gallery { position: relative; min-width: 0; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; aspect-ratio: 1 / 1; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 18px; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: #c9d2dc; }
.dots span.on { background: var(--navy); width: 18px; border-radius: 4px; }
.thumbs { display: none; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: 0 0 68px; width: 68px; height: 68px; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 5px; cursor: pointer; }
.thumbs button[aria-current="true"] { border: 2px solid var(--navy); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.p-info { min-width: 0; }
.p-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.p-brand { font-size: .8rem; font-weight: 800; color: var(--teal-dark); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; }
.p-name { margin: 4px 0 8px; font-size: clamp(1.45rem, 5.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.015em; overflow-wrap: anywhere; }
.p-price { font-size: clamp(2.1rem, 9vw, 2.7rem); font-weight: 800; letter-spacing: -.02em; margin: 8px 0 0; line-height: 1.1; }
.p-price small { font-size: .9rem; color: var(--muted); font-weight: 700; margin-left: 4px; letter-spacing: 0; }
.p-price-note { color: var(--muted); font-size: .84rem; margin: 2px 0 12px; }
.p-meta { color: var(--muted); font-size: .84rem; margin: 2px 0 10px; overflow-wrap: anywhere; }
.opt { margin: 16px 0 4px; }
.opt h3 { margin: 0 0 8px; font-size: .92rem; }
.opt h3 span { font-weight: 500; color: var(--muted); }
.opt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-list a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; font-size: .9rem; background: #fff; }
.opt-list a:hover { border-color: var(--navy); }
.opt-list a[aria-current="true"] { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.opt-list a.off { opacity: .45; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); flex: 0 0 18px; }
.p-actions { display: grid; gap: 10px; margin: 20px 0 14px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; justify-self: start; }
.qty button { width: 44px; height: 44px; border: 0; background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--navy); }
.qty output { min-width: 34px; text-align: center; font-weight: 800; }
.info-box { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 10px 0; }
.info-box div { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.info-box div:last-child { border-bottom: 0; }
.info-box svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--teal); }
.info-box strong { display: block; color: var(--ink); }
.p-h2 { font-size: 1.1rem; margin: 22px 0 6px; }
.p-desc { white-space: pre-line; color: var(--ink-2); overflow-wrap: anywhere; font-size: .95rem; }
.note { font-size: .8rem; color: var(--muted); }
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; box-shadow: 0 -6px 20px rgba(0,0,0,.06); }
.buybar .bb-price { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.buybar .btn { flex: 1; min-height: 46px; padding: 0 12px; font-size: .92rem; }
.buybar .btn-wa { flex: 0 0 46px; padding: 0; }
body.has-buybar .wa-float { display: none; }
body.has-buybar .footer { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }

/* ================= pedido (carrito rápido) ================= */
.drawer-bg { position: fixed; inset: 0; background: rgba(3, 25, 50, .45); z-index: 60; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 61; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.15); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.2rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 16px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); display: grid; gap: 10px; }
.line { display: grid; grid-template-columns: 60px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 60px; height: 60px; border-radius: 10px; background: var(--soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.line-img img { width: 100%; height: 100%; object-fit: contain; }
.line-img svg { width: 24px; height: 24px; color: var(--muted); }
.line-name { font-size: .88rem; line-height: 1.3; overflow-wrap: anywhere; text-decoration: none; }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.line .qty button { width: 34px; height: 34px; }
.line-del { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .8rem; padding: 6px 0; }
.total { display: flex; justify-content: space-between; font-weight: 800; font-size: 1.1rem; }

/* ================= contacto y pie ================= */
.contact { display: grid; gap: 12px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; min-width: 0; }
.contact-card svg { flex: 0 0 24px; width: 24px; height: 24px; color: var(--teal); margin-top: 2px; }
.contact-card h3 { margin: 0 0 2px; font-size: .95rem; }
.contact-card p, .contact-card a { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.pending { display: inline-block; padding: 2px 8px; border-radius: 6px; background: #FEF3C7; color: #92400E; font-size: .76rem; font-weight: 800; }
.footer { background: var(--soft); color: var(--ink-2); padding: 34px 0 calc(96px + env(safe-area-inset-bottom)); font-size: .88rem; border-top: 1px solid var(--line); }
.footer .wrap { display: grid; gap: 22px; }
.footer .f-logo { height: 46px; width: auto; }
.footer p { margin: 0 0 6px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--navy); text-decoration: underline; }
.f-h { color: var(--ink); font-weight: 800; }
.f-about { margin-top: 12px !important; max-width: 30em; }
.legal { border-top: 1px solid var(--line); padding-top: 14px; font-size: .76rem; color: var(--muted); }

/* botón flotante de WhatsApp */
.wa-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 58px; min-width: 58px; padding: 0 18px 0 16px; border-radius: 29px; background: var(--wa); color: #fff; font-weight: 800; text-decoration: none; box-shadow: 0 8px 24px rgba(18, 140, 126, .4); border: 0; cursor: pointer; }
.wa-float:hover { background: var(--wa-dark); }
.wa-float svg { width: 28px; height: 28px; }

.toast { position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 70; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .92rem; box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }

/* ================= pantallas más grandes ================= */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .rail { grid-auto-columns: 31%; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .contact { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles .tile:first-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .head-row { min-height: 70px; gap: 24px; }
  .logo img { height: 46px; }
  .head-row .search-box { flex: 1; max-width: 640px; padding: 0; }
  .search-mobile { display: none; }
  .tiles { gap: 14px; padding-top: 14px; }
  .tile { min-height: 520px; padding-top: 44px; }
  .tile .t-img { height: 300px; max-width: 520px; }
  .tiles .tile:first-child { min-height: 580px; }
  .tiles .tile:first-child .t-img { height: 340px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .rail { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: visible; }
  .rail > :nth-child(n+6) { display: none; }
  .cat-circles { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); overflow: visible; }
  .cat-circle span.c-img { width: 96px; height: 96px; }
  .section { padding: 54px 0; }
  .contact { grid-template-columns: repeat(3, 1fr); }
  .cat-layout { grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
  .side { display: block; position: sticky; top: 130px; }
  .filters-btn { display: none !important; }
  .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .gallery { position: sticky; top: 140px; }
  .thumbs { display: flex; }
  .dots { display: none; }
  .p-actions { grid-template-columns: auto 1fr; align-items: center; }
  .p-actions .btn-wa { grid-column: 1 / -1; }
  .buybar { display: none; }
  body.has-buybar .wa-float { display: inline-flex; }
  body.has-buybar .footer, .footer { padding-bottom: 40px; }
  .footer .wrap { grid-template-columns: 2fr 1fr 1fr 1.3fr; }
  .legal { grid-column: 1 / -1; }
}
@media (max-width: 899px) {
  .head-row .search-box { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ================= ASI Movistar, tiendas e Instagram ================= */
.asi { border-radius: 22px; padding: 28px 22px; color: #fff; background: radial-gradient(110% 120% at 100% 0%, #0A7F8A 0%, rgba(10,127,138,0) 55%), linear-gradient(135deg, var(--navy) 0%, #022A51 100%); }
.asi-kicker { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #6FD6DD; }
.asi h2 { margin: 6px 0 6px; font-size: clamp(1.7rem, 7vw, 2.6rem); line-height: 1.1; letter-spacing: -.02em; }
.asi p { margin: 0 0 10px; opacity: .92; }
.asi-list { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; }
.asi-list li { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.asi-list li::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #6FD6DD; }
.asi-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.asi-mini { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--teal-soft); color: var(--ink-2); font-size: .92rem; }
.asi-mini .link { background: none; border: 0; padding: 0; cursor: pointer; font-size: inherit; }
.sub { margin: 4px 0 0; color: var(--muted); }
.cities { display: grid; gap: 22px; }
.city h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1.1rem; color: var(--navy); }
.city h3 svg { width: 22px; height: 22px; color: var(--teal); }
.stores { display: grid; gap: 12px; }
.store { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.store h4 { margin: 0 0 8px; font-size: 1rem; }
.store p { margin: 0 0 6px; font-size: .9rem; color: var(--ink-2); overflow-wrap: anywhere; }
.store .btn { margin-top: 8px; min-height: 42px; font-size: .9rem; }
.ig-band { display: grid; gap: 14px; justify-items: start; padding: 22px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.ig-band > svg { width: 40px; height: 40px; color: var(--teal); }
.ig-band h2 { margin: 0 0 4px; font-size: clamp(1.3rem, 5vw, 1.7rem); }
.ig-band p { margin: 0; color: var(--ink-2); }
@media (min-width: 600px) {
  .stores { grid-template-columns: 1fr 1fr; }
  .asi-list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .asi { padding: 46px 48px; }
  .cities { grid-template-columns: 1fr 1fr; gap: 28px; }
  .ig-band { grid-template-columns: auto 1fr auto; align-items: center; padding: 26px 32px; }
}
.asi > div { max-width: 640px; }
.asi-icons li::before { display: none; }
.asi-icons li svg { flex: 0 0 22px; width: 22px; height: 22px; color: #6FD6DD; }
.asi-note { font-size: .85rem; opacity: .85; margin: -6px 0 16px !important; }
.store-soon { background: var(--teal-soft); border-style: dashed; border-color: var(--teal); }
.soon { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; background: var(--teal); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
@media (min-width: 900px) { .asi > div { max-width: 760px; } }

/* ASI Movistar compacto (sección secundaria: no compite con los productos) */
.section-tight { padding: 22px 0; }
.asi-compact { display: grid; gap: 12px; padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 14px; background: #fff; }
.asi-c-head h2 { margin: 0 0 2px; font-size: 1.1rem; color: var(--navy); }
.asi-c-head p { margin: 0; font-size: .88rem; color: var(--ink-2); }
.asi-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.asi-chips li { padding: 5px 10px; border-radius: 999px; background: var(--soft); font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.asi-c-btn { justify-self: start; min-height: 40px; padding: 0 16px; font-size: .88rem; }
@media (min-width: 900px) { .asi-compact { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .asi-chips { grid-column: 1; } .asi-c-btn { grid-column: 2; grid-row: 1 / span 2; } }
.store .zona { display: flex; align-items: center; gap: 5px; color: var(--teal-dark); font-weight: 700; font-size: .85rem; }
.store .zona svg { width: 15px; height: 15px; }
