/* =====================================================================
   CALZADOS DIANA — Sistema de diseño de la tienda
   Marca: fucsia del logo + neutros cálidos de sus fotos (arena, piel).
   Tipografía: Jost (geométrica, de moda, emparenta con el logo).
   Principios: la foto manda, bordes casi rectos, sin degradés ni sombras
   decorativas, el fucsia se usa con intención (marca, mayorista, promo).
   ===================================================================== */
:root {
  /* Identidad real (Instagram): monograma oro rosa sobre rosa empolvado,
     logotipo serif marrón espresso, fotos sobre fondos arena */
  --fucsia: #9a5b45;        /* acento: oro rosa profundo (contraste AA sobre blanco) */
  --fucsia-osc: #7a4432;
  --fucsia-sua: #f7ebe5;
  --rosa: #f3dede;          /* rosa empolvado del monograma */
  --tinta: #2f2420;         /* marrón espresso del logotipo */
  --tinta-2: #5b4a43;
  --gris: #8a7a73;
  --linea: #e9dfd7;
  --arena: #f4ece4;
  --papel: #ffffff;
  --ok: #1d7a46;
  --error: #b42318;
  --r: 4px;               /* radio estándar */
  --r-l: 8px;
  --sp: 16px;             /* unidad de espaciado */
  --ancho: 1320px;
  --f: 'Jost', 'Futura', 'Avenir Next', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --t-xs: 12px; --t-s: 14px; --t-m: 16px; --t-l: 20px; --t-xl: 28px; --t-xxl: clamp(34px, 6vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; font-family: var(--f); font-size: var(--t-m); line-height: 1.5; color: var(--tinta); background: var(--papel); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.01em; line-height: 1.15; }
.serif, .sec-head h2, .hero-txt h1, .ficha-info h1, .mm h3, .vacio h3, .ok-final h3 { font-family: var(--serif); font-weight: 600; letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--fucsia); outline-offset: 2px; }
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.wrap { max-width: var(--ancho); margin: 0 auto; padding: 0 var(--sp); }
.eyebrow { font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; font-weight: 500; color: var(--gris); }
.muted { color: var(--gris); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r);
  border: 1px solid var(--tinta); background: var(--tinta); color: #fff; font-weight: 500; font-size: 15px; letter-spacing: .02em; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn:hover { background: #000; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-sec { background: transparent; color: var(--tinta); }
.btn-sec:hover { background: var(--tinta); color: #fff; }
.btn-marca { background: var(--fucsia); border-color: var(--fucsia); }
.btn-marca:hover { background: var(--fucsia-osc); border-color: var(--fucsia-osc); }
.btn-wa { background: #1f8f4e; border-color: #1f8f4e; }
.btn-block { width: 100%; }
.btn-s { min-height: 38px; padding: 0 14px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; color: inherit; font-size: inherit; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; background: none; border: 0; border-radius: var(--r); position: relative; }
.icon-btn:hover { background: var(--arena); }
.contador { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--fucsia); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }
.contador:empty, .contador[data-n="0"] { display: none; }

/* ---------- Formularios ---------- */
label.lbl { display: block; font-size: 13px; font-weight: 500; margin: 14px 0 6px; color: var(--tinta-2); }
label.lbl small { font-weight: 400; color: var(--gris); }
.campo { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--linea); border-radius: var(--r); background: #fff; font-size: 16px; transition: border-color .15s; }
textarea.campo { padding: 12px 14px; min-height: 80px; resize: vertical; }
.campo:focus { outline: none; border-color: var(--tinta); }
.campo.err { border-color: var(--error); }
.fila2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }

/* ---------- Barra superior ---------- */
.anuncio { background: var(--tinta); color: #fff; font-size: 13px; letter-spacing: .02em; text-align: center; height: 36px; overflow: hidden; position: relative; }
.anuncio p { margin: 0; height: 36px; line-height: 36px; padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: transform .5s var(--ease); }
.anuncio b { color: var(--rosa); font-weight: 500; }

/* ---------- Encabezado ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--linea); backdrop-filter: saturate(1.4) blur(8px); }
.header .wrap { height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.h-izq, .h-der { display: flex; align-items: center; gap: 2px; }
.h-der { justify-content: flex-end; }
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; color: var(--tinta); }
.brand .b1 { font-size: 9px; letter-spacing: .42em; font-weight: 500; padding-left: .42em; }
.brand .b2 { font-family: var(--serif); font-size: 30px; font-weight: 600; letter-spacing: .14em; padding-left: .14em; margin-top: 2px; }
.brand .cor { width: 9px; height: 8px; fill: var(--fucsia); margin-top: 3px; }
.nav-desk { display: none; }
.buscador { display: none; }

/* ---------- Menú móvil / hojas laterales ---------- */
.hoja { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.hoja.abierta { visibility: visible; }
.hoja-fondo { position: absolute; inset: 0; background: rgba(27,21,23,.45); opacity: 0; transition: opacity .3s; }
.hoja.abierta .hoja-fondo { opacity: 1; }
.hoja-panel { position: absolute; top: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; transition: transform .35s var(--ease); }
.hoja.izq .hoja-panel { left: 0; transform: translateX(-100%); width: min(360px, 88%); }
.hoja.der .hoja-panel { right: 0; transform: translateX(100%); }
.hoja.abajo .hoja-panel { top: auto; left: 0; right: 0; width: 100%; max-height: 88vh; border-radius: 12px 12px 0 0; transform: translateY(100%); }
.hoja.abierta .hoja-panel { transform: none; }
.hoja-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--linea); min-height: 60px; }
.hoja-head h3 { font-size: 18px; }
.hoja-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; overscroll-behavior: contain; }
.hoja-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: #fff; }
.menu-lista { list-style: none; margin: 8px 0; padding: 0; }
.menu-lista a, .menu-lista button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px 0; border: 0; border-bottom: 1px solid var(--linea); background: none; font-size: 17px; text-align: left; }
.menu-lista .dest { color: var(--fucsia); }
.menu-sec { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--arena); }
.hero-media { display: grid; grid-template-columns: 1fr; }
.hero-media figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--arena); }
.hero-media figure:nth-child(2) { display: none; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px var(--sp) 30px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0)); }
.hero-txt .eyebrow { color: rgba(255,255,255,.85); }
.hero-txt h1 { font-size: var(--t-xxl); font-weight: 500; margin: 8px 0 16px; line-height: 1.02; }
.hero-txt .btn { background: #fff; color: var(--tinta); border-color: #fff; }
.hero-txt .btn:hover { background: var(--fucsia); border-color: var(--fucsia); color: #fff; }
.hero-acciones { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-acciones .btn-sec { color: #fff; border-color: rgba(255,255,255,.8); background: transparent; }

/* ---------- Secciones ---------- */
.sec { padding: 40px 0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sec-head h2 { font-size: var(--t-xl); }
.sec-head a, .sec-head button { font-size: 14px; color: var(--tinta-2); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; white-space: nowrap; }
.sec-arena { background: var(--arena); }

/* categorías */
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 2px; }
.cats::-webkit-scrollbar { display: none; }
.cat { scroll-snap-align: start; position: relative; display: block; }
.cat figure { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: var(--arena); border-radius: var(--r); }
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat:hover img { transform: scale(1.04); }
.cat span { display: block; margin-top: 8px; font-size: 15px; font-weight: 500; }
.cat small { color: var(--gris); font-size: 13px; }

/* carril horizontal de productos */
.carril { display: grid; grid-auto-flow: column; grid-auto-columns: 66%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carril::-webkit-scrollbar { display: none; }
.carril > * { scroll-snap-align: start; }

/* ---------- Tarjeta de producto ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
.prod { display: flex; flex-direction: column; position: relative; }
.prod-foto { position: relative; aspect-ratio: 4 / 5; background: var(--arena); overflow: hidden; border-radius: var(--r); }
.prod-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s; }
.prod-foto img.alt { opacity: 0; }
.prod:hover .prod-foto img.alt { opacity: 1; }
.marca-sup { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.etq { background: #fff; color: var(--tinta); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 4px 7px; border-radius: 2px; }
.etq.promo { background: var(--fucsia); color: #fff; }
.prod-info { padding: 10px 2px 0; display: flex; flex-direction: column; gap: 4px; }
.prod-nombre { font-size: 15px; font-weight: 500; line-height: 1.25; }
.prod-meta { font-size: 13px; color: var(--gris); line-height: 1.3; }
.precios { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; }
.p-unidad { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.p-unidad b { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.p-unidad s { font-size: 13px; color: var(--gris); }
.p-unidad small, .p-mayor small { font-size: 12px; color: var(--gris); }
.p-mayor { font-size: 13px; color: var(--fucsia); font-weight: 500; font-variant-numeric: tabular-nums; }
.prod.agotado .prod-foto img { filter: grayscale(.6); opacity: .65; }
.sin-foto { position: absolute; inset: 0; display: grid; place-items: center; color: #b9aba3; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Mayor y menor ---------- */
.mm { display: grid; gap: 1px; background: var(--linea); border: 1px solid var(--linea); border-radius: var(--r-l); overflow: hidden; }
.mm > div { background: #fff; padding: 22px 20px; }
.mm h3 { font-size: 20px; margin: 6px 0 6px; }
.mm p { margin: 0; color: var(--tinta-2); font-size: 15px; }
.mm .ej { margin-top: 12px; font-size: 14px; color: var(--gris); }
.mm .ej b { color: var(--tinta); font-weight: 600; }
.mm .may { background: var(--rosa); }
.mm .may h3 { color: var(--tinta); }

/* beneficios / info */
.info-grid { display: grid; gap: 22px; }
.info-it { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.info-it .ico { width: 26px; height: 26px; color: var(--fucsia); }
.info-it h3 { font-size: 16px; font-weight: 500; margin-bottom: 2px; }
.info-it p { margin: 0; font-size: 14px; color: var(--tinta-2); }

/* clientas */
.clientas { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.clientas img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--arena); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-weight: 300; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq .resp { padding: 0 0 18px; color: var(--tinta-2); font-size: 15px; white-space: pre-line; }

/* ---------- Catálogo + filtros ---------- */
.barra-filtros { position: sticky; top: 64px; z-index: 30; background: #fff; border-bottom: 1px solid var(--linea); }
.barra-filtros .wrap { display: flex; align-items: center; gap: 8px; height: 54px; }
.tabs { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; flex: 1; height: 100%; align-items: stretch; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: 0; background: none; padding: 0; white-space: nowrap; font-size: 15px; color: var(--gris); border-bottom: 2px solid transparent; }
.tab.on { color: var(--tinta); border-bottom-color: var(--tinta); }
.tab.liq { color: var(--fucsia); }
.btn-filtros { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--linea); background: #fff; border-radius: var(--r); height: 38px; padding: 0 12px; font-size: 14px; flex: 0 0 auto; }
.res-catalogo { font-size: 13px; color: var(--gris); margin: 16px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 48px; height: 42px; padding: 0 14px; border: 1px solid var(--linea); background: #fff; border-radius: var(--r); font-size: 15px; transition: border-color .15s; }
.chip:hover { border-color: var(--tinta); }
.chip.on { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.chip:disabled { color: #c9bfbb; text-decoration: line-through; cursor: not-allowed; background: #faf8f6; }
.filtro-tit { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin: 22px 0 10px; font-weight: 500; }
.vacio { padding: 56px 16px; text-align: center; color: var(--tinta-2); }
.vacio h3 { font-size: 20px; margin-bottom: 8px; }
.esqueleto { background: var(--arena); border-radius: var(--r); aspect-ratio: 4 / 5; animation: pulso 1.4s ease-in-out infinite; }
@keyframes pulso { 50% { opacity: .55; } }

/* ---------- Ficha de producto ---------- */
.ficha { padding-bottom: 110px; }
.migas { font-size: 13px; color: var(--gris); padding: 14px var(--sp); display: flex; gap: 6px; flex-wrap: wrap; }
.migas a:hover { text-decoration: underline; }
.galeria { position: relative; }
.gal-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--arena); }
.gal-track::-webkit-scrollbar { display: none; }
.gal-track figure { margin: 0; aspect-ratio: 4 / 5; scroll-snap-align: start; cursor: zoom-in; }
.gal-track img { width: 100%; height: 100%; object-fit: cover; }
.gal-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.gal-dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.6); transition: width .2s; }
.gal-dots i.on { background: #fff; width: 18px; }
.gal-thumbs { display: none; }
.ficha-info { padding: 20px var(--sp) 0; }
.ficha-info h1 { font-size: 26px; font-weight: 500; margin: 4px 0 12px; }
.f-precios { border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); padding: 14px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-precios > div { display: flex; flex-direction: column; gap: 2px; }
.f-precios .lab { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.f-precios .val { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.f-precios .val s { font-size: 15px; font-weight: 400; color: var(--gris); margin-left: 6px; }
.f-precios .may .val { color: var(--fucsia); }
.f-precios .nota { font-size: 12.5px; color: var(--gris); }
.promo-linea { margin-top: 10px; font-size: 14px; color: var(--fucsia); font-weight: 500; }
.sel-tit { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 10px; font-size: 14px; }
.sel-tit b { font-weight: 500; }
.colores { display: flex; flex-wrap: wrap; gap: 8px; }
.color-op { height: 42px; padding: 0 14px; border: 1px solid var(--linea); background: #fff; border-radius: var(--r); font-size: 15px; }
.color-op.on { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.color-op:disabled { color: #c9bfbb; text-decoration: line-through; }
.talles { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; }
.talle { border: 1px solid var(--linea); border-radius: var(--r); padding: 8px 4px 6px; text-align: center; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.talle .t { font-size: 17px; font-weight: 500; }
.talle .st { font-size: 11px; color: var(--gris); min-height: 14px; }
.talle .st.poco { color: var(--fucsia); }
.talle.off { background: #faf8f6; }
.talle.off .t { color: #c9bfbb; text-decoration: line-through; }
.talle.sel { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--linea); border-radius: var(--r); height: 32px; background: #fff; }
.stepper button { width: 28px; height: 30px; border: 0; background: none; font-size: 16px; }
.stepper span { min-width: 18px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.hint { margin: 12px 0 0; font-size: 13.5px; color: var(--tinta-2); }
.hint b { color: var(--fucsia); font-weight: 500; }
.acordeon { margin-top: 24px; border-top: 1px solid var(--linea); }
.acordeon details { border-bottom: 1px solid var(--linea); }
.acordeon summary { list-style: none; padding: 16px 0; cursor: pointer; display: flex; justify-content: space-between; font-weight: 500; }
.acordeon summary::-webkit-details-marker { display: none; }
.acordeon summary::after { content: '+'; font-weight: 300; font-size: 20px; line-height: 1; }
.acordeon details[open] summary::after { content: '–'; }
.acordeon .resp { padding-bottom: 16px; color: var(--tinta-2); font-size: 15px; white-space: pre-line; }
.compra-fija { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--linea); padding: 10px var(--sp) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.compra-fija .res { flex: 1; font-size: 13px; color: var(--tinta-2); line-height: 1.25; }
.compra-fija .res b { display: block; font-size: 16px; color: var(--tinta); }
.compra-fija .btn { flex: 0 0 auto; }

/* lightbox (zoom) */
.zoom { position: fixed; inset: 0; z-index: 200; background: #fff; display: none; }
.zoom.abierta { display: block; }
.zoom-area { position: absolute; inset: 0; overflow: auto; display: grid; place-items: center; cursor: zoom-in; -webkit-overflow-scrolling: touch; }
.zoom-area img { max-width: 100%; max-height: 100%; object-fit: contain; }
.zoom-area.ampliada { cursor: zoom-out; place-items: start; }
.zoom-area.ampliada img { max-width: none; max-height: none; width: 220%; }
.zoom .cerrar { position: absolute; top: 10px; right: 10px; z-index: 2; background: #fff; }
.zoom .nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: rgba(255,255,255,.9); }
.zoom .nav.prev { left: 8px; } .zoom .nav.next { right: 8px; }

/* ---------- Carrito ---------- */
.progreso { padding: 14px 0 6px; }
.progreso p { margin: 0 0 8px; font-size: 14px; }
.progreso p b { font-weight: 600; }
.barra { height: 4px; background: var(--linea); border-radius: 2px; overflow: hidden; }
.barra i { display: block; height: 100%; background: var(--fucsia); transition: width .4s var(--ease); }
.progreso small { display: block; margin-top: 8px; color: var(--gris); font-size: 12.5px; }
.progreso.ok p { color: var(--ok); }
.progreso.ok .barra i { background: var(--ok); }
.linea { display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.linea img, .linea .ph { width: 76px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--arena); }
.linea .n { font-size: 15px; font-weight: 500; line-height: 1.25; }
.linea .d { font-size: 13px; color: var(--gris); margin: 2px 0 6px; }
.linea .pr { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.linea .pr s { font-weight: 400; font-size: 13px; color: var(--gris); margin-left: 4px; }
.linea .et { font-size: 12px; color: var(--fucsia); }
.linea .err { font-size: 12px; color: var(--error); }
.linea .der { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.quitar { background: none; border: 0; font-size: 12.5px; color: var(--gris); text-decoration: underline; padding: 0; }
.totales { display: grid; gap: 6px; font-size: 14px; margin-bottom: 14px; }
.totales > div { display: flex; justify-content: space-between; gap: 10px; }
.totales .tot { font-size: 18px; font-weight: 600; padding-top: 6px; border-top: 1px solid var(--linea); margin-top: 4px; }
.totales .ahorro { color: var(--ok); }
.recos { margin-top: 22px; }
.recos h4 { font-size: 14px; font-weight: 500; margin-bottom: 10px; }
.recos .carril { grid-auto-columns: 40%; }
.recos .prod-nombre { font-size: 13px; }
.recos .p-unidad b { font-size: 14px; }
.aviso { background: var(--arena); border-radius: var(--r); padding: 12px 14px; font-size: 13.5px; color: var(--tinta-2); margin-top: 10px; }
.aviso.fuerte { background: #fff6e0; }
.op-entrega { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; align-items: start; border: 1px solid var(--linea); border-radius: var(--r); padding: 13px 14px; margin-top: 8px; cursor: pointer; font-size: 15px; }
.op-entrega input { margin-top: 3px; accent-color: var(--tinta); }
.op-entrega small { display: block; font-size: 12.5px; color: var(--gris); }
.op-entrega:has(input:checked) { border-color: var(--tinta); box-shadow: inset 0 0 0 1px var(--tinta); }
.op-entrega .c { font-size: 14px; font-weight: 500; white-space: nowrap; }
.gratis { color: var(--ok); }
.form-tit { font-size: 15px; font-weight: 500; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--linea); }
.ok-final { text-align: center; padding: 24px 0 8px; }
.ok-final h3 { font-size: 24px; margin: 10px 0 6px; }
.codigo { font-size: 26px; letter-spacing: .18em; font-weight: 600; border: 1px dashed var(--tinta); padding: 10px; margin: 12px 0; border-radius: var(--r); font-variant-numeric: tabular-nums; }
.check-ok { width: 54px; height: 54px; border-radius: 27px; background: var(--fucsia-sua); color: var(--fucsia); display: inline-grid; place-items: center; }

/* seguimiento */
.dlg { border: 0; padding: 0; width: min(520px, 94vw); border-radius: var(--r-l); }
.dlg::backdrop { background: rgba(27,21,23,.45); }
.dlg-body { padding: 24px; position: relative; }
.dlg-body .cerrar { position: absolute; top: 8px; right: 8px; }
.timeline { list-style: none; padding: 0; margin: 18px 0 0; }
.timeline li { display: flex; gap: 12px; align-items: center; padding: 7px 0; color: #b5aaa6; font-size: 15px; }
.timeline li i { width: 10px; height: 10px; border-radius: 5px; border: 1.5px solid currentColor; }
.timeline li.hecho { color: var(--tinta); }
.timeline li.hecho i { background: var(--fucsia); border-color: var(--fucsia); }

/* buscador */
.busq-res { display: grid; gap: 0; }
.busq-it { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.busq-it img, .busq-it .ph { width: 56px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--arena); }

/* ---------- Footer ---------- */
.footer { background: var(--tinta); color: #d8cfcb; padding: 48px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer .brand { color: #fff; align-items: flex-start; }
.footer .lema { margin: 12px 0 0; color: #b3a7a3; }
.f-cols { display: grid; gap: 30px; margin-top: 30px; }
.f-cols h4 { color: #fff; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 12px; }
.f-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.f-cols a:hover, .f-cols button:hover { color: #fff; }
.f-cols button { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; text-align: left; }
.f-legal { margin-top: 36px; padding-top: 18px; border-top: 1px solid #3a3034; font-size: 13px; color: #9d918d; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

.wa-flot { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; width: 54px; height: 54px; border-radius: 27px; background: #1f8f4e; display: grid; place-items: center; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.wa-flot svg { width: 28px; height: 28px; fill: #fff; }
body.en-ficha .wa-flot { display: none; }

.toast { position: fixed; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translate(-50%, -20px); background: var(--tinta); color: #fff; padding: 12px 18px; border-radius: var(--r); font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 300; max-width: 92vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--error); }

/* ---------- Escritorio ---------- */
@media (min-width: 760px) {
  :root { --sp: 28px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 36px 20px; }
  .cats { grid-auto-columns: 23%; }
  .carril { grid-auto-columns: 31%; }
  .mm { grid-template-columns: 1fr 1fr; }
  .info-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
  .clientas { grid-auto-columns: 23%; }
  .f-cols { grid-template-columns: repeat(3, 1fr); }
  .sec { padding: 64px 0; }
  .hero-media { grid-template-columns: 1fr 1fr; }
  .hero-media figure { aspect-ratio: 4 / 5; max-height: 82vh; width: 100%; }
  .hero-media figure:nth-child(2) { display: block; }
  .hero-txt { padding: 40px var(--sp) 48px; background: linear-gradient(0deg, rgba(0,0,0,.5), rgba(0,0,0,0) 70%); }
}
@media (min-width: 1024px) {
  .header .wrap { grid-template-columns: auto 1fr auto; height: 72px; gap: 32px; }
  .h-izq { display: none; }
  .brand { align-items: flex-start; }
  .brand .b2 { font-size: 32px; }
  .nav-desk { display: flex; gap: 24px; font-size: 15px; white-space: nowrap; overflow: hidden; justify-content: center; }
  .nav-desk a:hover { color: var(--fucsia); }
  .nav-desk .dest { color: var(--fucsia); }
  .buscador { display: block; width: 240px; }
  .buscador input { width: 100%; height: 40px; border: 1px solid var(--linea); border-radius: var(--r); padding: 0 12px; font-size: 14px; background: #fff; }
  .h-der .busc-btn { display: none; }
  .barra-filtros { top: 72px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .carril { grid-auto-columns: 23.5%; }
  .ficha-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; max-width: var(--ancho); margin: 0 auto; padding: 0 var(--sp); align-items: start; }
  .galeria { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
  .gal-thumbs { display: flex; flex-direction: column; gap: 8px; }
  .gal-thumbs button { padding: 0; border: 1px solid transparent; background: var(--arena); border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
  .gal-thumbs button.on { border-color: var(--tinta); }
  .gal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .gal-dots { display: none; }
  .ficha-info { position: sticky; top: 96px; padding: 0; }
  .ficha-info h1 { font-size: 32px; }
  .migas { padding: 18px var(--sp); max-width: var(--ancho); margin: 0 auto; }
  .compra-fija { position: static; border: 0; padding: 20px 0 0; }
  .ficha { padding-bottom: 0; }
  body.en-ficha .wa-flot { display: grid; }
  .hoja.abajo .hoja-panel { left: auto; right: 0; top: 0; width: 420px; max-height: none; border-radius: 0; transform: translateX(100%); }
  .hoja.abajo.abierta .hoja-panel { transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
