/* ============================================================
   COSAS PERDIDAS · TIENDA
   Paleta del Canva: lavanda #7d80da, rosa #ffc0f3, crema #fff8ed,
   rubor #fff3f3, malva #e1a2d5 y texto verde grisáceo #3e4d3d.
   ============================================================ */
:root {
  --lavanda: #7d80da; --lavanda-fuerte: #5d60c2; --rosa: #ffc0f3; --crema: #fff8ed; --rubor: #fff3f3; --malva: #e1a2d5; --flor: #e6adec;
  --bg: #fff8ed; --surface: #ffffff; --surface-2: #fff3f3; --ink: #3e4d3d; --muted: #6b7569; --line: #efe2d6;
  --barra: #7d80da; --barra-ink: #fff8ed;
  --prim: #5d60c2; --prim-ink: #ffffff; --prim-hover: #4f52b3;
  --acento: #ffc0f3; --acento-ink: #3e4d3d;
  --oferta: #c2417f; --vendido: #8a8f88;
  --toast-bg: #3e4d3d; --toast-ink: #fff8ed;
  --sombra: 0 1px 2px rgba(62, 77, 61, .06), 0 8px 24px -12px rgba(62, 77, 61, .18);
  --sombra-alta: 0 18px 50px -18px rgba(45, 40, 80, .45);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-ui: 180ms; --dur-pulsar: 120ms;
  --r: 22px;
  --f-titulo: 'Fraunces', 'Cooper Black', Georgia, serif;
  --f-texto: 'Quicksand', 'Avenir Next', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1c1a29; --surface: #26233a; --surface-2: #2f2b46; --ink: #fff3f3; --muted: #c4bdd3; --line: #3a3552;
    --barra: #34336a; --barra-ink: #fff8ed;
    --prim: #a9abf2; --prim-ink: #1c1a29; --prim-hover: #bfc1f7;
    --acento: #e1a2d5; --acento-ink: #1c1a29;
    --oferta: #ff9fd0; --vendido: #8e889e;
    --toast-bg: #fff3f3; --toast-ink: #1c1a29;
    --sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1c1a29; --surface: #26233a; --surface-2: #2f2b46; --ink: #fff3f3; --muted: #c4bdd3; --line: #3a3552;
  --barra: #34336a; --barra-ink: #fff8ed;
  --prim: #a9abf2; --prim-ink: #1c1a29; --prim-hover: #bfc1f7;
  --acento: #e1a2d5; --acento-ink: #1c1a29;
  --oferta: #ff9fd0; --vendido: #8e889e;
  --toast-bg: #fff3f3; --toast-ink: #1c1a29;
  --sombra: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.55 var(--f-texto); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
button, select, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--lavanda); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 800; font-variation-settings: 'SOFT' 100, 'WONK' 1; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
.saltar { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--prim); color: var(--prim-ink); padding: 10px 14px; border-radius: 10px; }
.saltar:focus { left: 8px; }

/* Flor del Canva, como máscara para poder teñirla */
.flor, .flor-mini, .flor-pie { display: inline-block; background: var(--flor); -webkit-mask: url(../img/flor.svg) center / contain no-repeat; mask: url(../img/flor.svg) center / contain no-repeat; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15.5px; text-decoration: none;
  transition: background-color var(--dur-ui) ease, transform var(--dur-pulsar) var(--ease-out), box-shadow var(--dur-ui) ease; }
.btn:active { transform: scale(.97); }
.btn-prim { background: var(--prim); color: var(--prim-ink); }
.btn-sec { background: var(--acento); color: var(--acento-ink); }
.btn-ig { width: 100%; color: #fff; background: linear-gradient(115deg, #7d80da, #c56bc0 55%, #f08aa6); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn-prim:hover { background: var(--prim-hover); }
  .btn-sec:hover { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--acento-ink) 20%, transparent); }
  .btn-ig:hover { box-shadow: 0 10px 26px -10px #c56bc0; }
}
.btn-icono { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; transition: background-color var(--dur-ui) ease, transform var(--dur-pulsar) var(--ease-out); }
.btn-icono:active { transform: scale(.94); }

/* ---------- Barra ---------- */
.barra { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left)) 10px max(16px, env(safe-area-inset-left)); background: var(--barra); color: var(--barra-ink); }
.marca { text-decoration: none; }
.marca-txt { font-family: var(--f-titulo); font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 2px; }
.flor-mini { width: .55em; height: .55em; transform: rotate(-11deg); margin: 0 .12em; }
.barra-acc { display: flex; align-items: center; gap: 6px; }
.enlace-ig { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 999px; transition: background-color var(--dur-ui) ease; }
.barra .btn-icono:hover, .enlace-ig:hover { background: rgba(255, 255, 255, .14); }
.btn-carrito { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--crema); color: #3e4d3d; transition: transform var(--dur-pulsar) var(--ease-out); }
.btn-carrito:active { transform: scale(.94); }
.burbuja { position: absolute; top: -3px; right: -3px; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--rosa); color: #3e4d3d; font-size: 12px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--barra); animation: insignia 260ms var(--ease-out); }
.burbuja[hidden], .velo[hidden] { display: none; }
.i-luna { display: none; }
:root[data-theme="dark"] .i-sol { display: none; }
:root[data-theme="dark"] .i-luna { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sol { display: none; } :root:not([data-theme="light"]) .i-luna { display: block; } }
@media (max-width: 640px) { .enlace-ig span { display: none; } }

/* ---------- Portada (bloques crema / rosa como en el Canva) ---------- */
.portada { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(78vh, 680px); }
.portada-txt { padding: clamp(36px, 7vw, 96px) clamp(16px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; gap: 20px; background: var(--bg); }
.sello { margin: 0; text-transform: uppercase; letter-spacing: .22em; font-size: 12.5px; font-weight: 700; color: var(--lavanda); }
:root[data-theme="dark"] .sello { color: var(--prim); }
.portada h1 { font-size: clamp(38px, 6.2vw, 76px); color: var(--ink); text-wrap: balance; }
.portada h1 em { font-style: italic; color: var(--lavanda); }
:root[data-theme="dark"] .portada h1 em { color: var(--rosa); }
.portada-sub { margin: 0; max-width: 46ch; font-size: 17.5px; color: var(--muted); text-wrap: pretty; }
.portada-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.contador { font-size: 15px; color: var(--muted); }
.contador b { font-family: var(--f-titulo); font-size: 26px; color: var(--ink); font-variant-numeric: tabular-nums; margin-right: 4px; }
.collage { position: relative; background: var(--rosa); overflow: hidden; min-height: 420px; }
:root[data-theme="dark"] .collage { background: #3b2f4f; }
.collage img { position: absolute; width: 46%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 26px; box-shadow: var(--sombra-alta); border: 6px solid var(--crema); animation: flota 7s ease-in-out infinite; }
.collage .c1 { left: 6%; top: 12%; --g: -6deg; }
.collage .c2 { right: 5%; top: 6%; --g: 5deg; animation-delay: -2.4s; }
.collage .c3 { left: 30%; bottom: 4%; --g: -1deg; animation-delay: -4.6s; z-index: 1; }
.collage .flor { position: absolute; animation: gira 18s linear infinite; }
.f1 { width: 74px; height: 74px; right: 10%; bottom: 14%; }
.f2 { width: 38px; height: 38px; left: 8%; bottom: 10%; animation-duration: 12s !important; }
.f3 { width: 28px; height: 28px; left: 48%; top: 6%; animation-direction: reverse !important; }
@media (max-width: 820px) {
  .portada { grid-template-columns: 1fr; }
  .collage { min-height: 340px; }
  .collage img { width: 40%; }
}

/* ---------- Cinta de marcas ---------- */
.cinta { background: var(--surface-2); border-block: 1px solid var(--line); overflow: hidden; padding: 14px 0; }
.cinta-pista { display: flex; align-items: center; gap: 28px; width: max-content; animation: cinta 32s linear infinite; }
.cinta span { font-family: var(--f-titulo); font-weight: 700; font-size: 22px; white-space: nowrap; color: var(--ink); }
.cinta i { width: 18px; height: 18px; background: var(--malva); -webkit-mask: url(../img/flor.svg) center / contain no-repeat; mask: url(../img/flor.svg) center / contain no-repeat; }

/* ---------- Catálogo ---------- */
.catalogo { padding: clamp(40px, 6vw, 72px) max(16px, 4vw); max-width: 1320px; margin: 0 auto; }
.cat-cabeza { display: grid; gap: 18px; margin-bottom: 28px; }
.cat-cabeza h2 { font-size: clamp(32px, 4.4vw, 50px); }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 2px; margin: -2px; scrollbar-width: none; }
.filtros::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; font-size: 14.5px;
  transition: background-color var(--dur-ui) ease, border-color var(--dur-ui) ease, color var(--dur-ui) ease, transform var(--dur-pulsar) var(--ease-out); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--prim); border-color: var(--prim); color: var(--prim-ink); }
.chip small { opacity: .7; margin-left: 4px; font-weight: 700; }
@media (hover: hover) and (pointer: fine) { .chip:not([aria-pressed="true"]):hover { border-color: var(--lavanda); } }
.cat-ajustes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cat-ajustes select { min-height: 40px; padding: 0 36px 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237d80da' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 14px center no-repeat; appearance: none; font-weight: 600; font-size: 14.5px; }
.interruptor { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; cursor: pointer; user-select: none; }
.interruptor input { position: absolute; opacity: 0; pointer-events: none; }
.interruptor span { width: 42px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background-color var(--dur-ui) ease; }
.interruptor span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform 200ms var(--ease-out); }
.interruptor input:checked + span { background: var(--prim); }
.interruptor input:checked + span::after { transform: translateX(16px); }
.interruptor input:focus-visible + span { outline: 3px solid var(--lavanda); outline-offset: 2px; }

.rejilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(14px, 2vw, 26px); }
.tarjeta { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r); box-shadow: var(--sombra); overflow: hidden;
  animation: sube 380ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.t-foto { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.t-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 320ms ease, transform 600ms var(--ease-out); }
.t-foto .alt { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .tarjeta:hover .t-foto img { transform: scale(1.04); }
  .tarjeta:hover .t-foto .alt { opacity: 1; }
}
.etiquetas { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 1; }
.etq { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: var(--crema); color: #3e4d3d; }
.etq.oferta { background: var(--oferta); color: #fff; }
.etq.apartado { background: var(--lavanda); color: #fff; }
.etq.vendido { background: #3e4d3d; color: #fff8ed; }
.t-cuerpo { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.t-marca { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.t-nombre { font-family: var(--f-titulo); font-weight: 700; font-size: 20px; line-height: 1.15; }
.t-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.precio { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.precio s { color: var(--muted); font-weight: 600; font-size: 14px; margin-left: 6px; }
.precio .rebajado { color: var(--oferta); }
.precio.consulta { font-size: 14.5px; color: var(--muted); }
.t-agregar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: var(--acento-ink); flex-shrink: 0;
  transition: transform var(--dur-pulsar) var(--ease-out), background-color var(--dur-ui) ease; }
.t-agregar:active { transform: scale(.9); }
.t-agregar.en { background: var(--prim); color: var(--prim-ink); }
.t-agregar[disabled] { opacity: .35; cursor: not-allowed; }
.tarjeta.es-vendido .t-foto img { filter: grayscale(.85); opacity: .75; }
.vacio { grid-column: 1 / -1; text-align: center; padding: 60px 16px; color: var(--muted); }
.vacio b { display: block; font-family: var(--f-titulo); font-size: 26px; color: var(--ink); margin-bottom: 6px; }
.esqueleto { aspect-ratio: 4 / 6.2; border-radius: var(--r); background: linear-gradient(100deg, var(--surface-2) 40%, var(--surface) 50%, var(--surface-2) 60%) 0 0 / 300% 100%; animation: brillo 1.4s linear infinite; }

/* ---------- Pasos ---------- */
.pasos { max-width: 1120px; margin: 0 auto clamp(48px, 7vw, 90px); padding: clamp(28px, 4vw, 48px) max(16px, 4vw); background: var(--surface-2); border-radius: 32px; width: calc(100% - 32px); }
.pasos h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 22px; }
.pasos ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.pasos li { display: grid; gap: 4px; color: var(--muted); font-size: 15px; }
.pasos li span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--lavanda); color: #fff; font-family: var(--f-titulo); font-weight: 800; font-size: 19px; margin-bottom: 6px; }
.pasos li b { color: var(--ink); font-size: 17px; }

/* ---------- Pie (con la flor que abre el panel) ---------- */
.pie { display: grid; justify-items: center; gap: 6px; padding: 40px 16px 56px; background: var(--barra); color: var(--barra-ink); text-align: center; font-size: 14.5px; }
.pie p { margin: 0; font-family: var(--f-titulo); font-size: 20px; }
.pie a { opacity: .85; }
.flor-pie { width: 34px; height: 34px; background: var(--rosa); transition: transform 300ms var(--ease-out); user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.flor-pie.toque { transform: rotate(72deg) scale(1.1); }

/* ---------- Ficha de producto ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(30, 26, 50, .55); backdrop-filter: blur(4px); }
.ficha { width: min(1040px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 28px; background: var(--surface); display: none; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); overflow: hidden; }
.ficha[open] { display: grid; animation: abre 260ms var(--ease-out); }
.ficha[open]::backdrop { animation: funde 200ms ease; }
.ficha.cerrando { animation: cierra 180ms ease forwards; }
.ficha-galeria { background: var(--surface-2); display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 0; }
.foto-grande { position: relative; overflow: hidden; cursor: zoom-in; min-height: 0; }
.foto-grande img { width: 100%; height: 100%; max-height: calc(100dvh - 140px); object-fit: cover; aspect-ratio: 4 / 5; }
.foto-grande img.entra { animation: funde 220ms ease; }
.miniaturas { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: thin; }
.miniaturas button { flex-shrink: 0; width: 62px; height: 72px; border-radius: 12px; overflow: hidden; opacity: .6; outline-offset: 2px; transition: opacity var(--dur-ui) ease, transform var(--dur-pulsar) var(--ease-out); }
.miniaturas button[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2.5px var(--prim); }
.miniaturas button:active { transform: scale(.95); }
.miniaturas img { width: 100%; height: 100%; object-fit: cover; }
.ficha-info { padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.ficha-marca { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ficha-info h3 { font-size: clamp(28px, 3.4vw, 40px); padding-right: 36px; }
.ficha-precio { margin: 0; font-size: 22px; font-weight: 700; }
.ficha-precio s { font-size: 16px; color: var(--muted); margin-left: 8px; }
.ficha-precio .rebajado { color: var(--oferta); }
.ficha-precio .pct { font-size: 13px; vertical-align: middle; margin-left: 8px; padding: 4px 9px; border-radius: 999px; background: var(--oferta); color: #fff; }
.ficha-desc { margin: 0; color: var(--muted); font-size: 16px; text-wrap: pretty; }
.ficha-datos { margin: 4px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.ficha-datos dt { color: var(--muted); }
.ficha-datos dd { margin: 0; font-weight: 600; }
.ficha-acc { display: grid; gap: 10px; margin-top: auto; padding-top: 14px; }
.cerrar { position: absolute; top: 12px; right: 12px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); box-shadow: var(--sombra);
  transition: transform var(--dur-pulsar) var(--ease-out); }
.cerrar:active { transform: scale(.92); }
@media (max-width: 760px) {
  .ficha { grid-template-columns: 1fr; overflow-y: auto; width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .ficha[open] { display: block; animation: sube-hoja 300ms var(--ease-out); }
  .foto-grande img { max-height: 62dvh; }
  .ficha-acc { position: sticky; bottom: 0; background: var(--surface); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

/* ---------- Visor ---------- */
.visor { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; background: rgba(20, 17, 32, .96); color: #fff; }
.visor[open] { display: grid; place-items: center; animation: funde 200ms ease; }
.visor img { max-width: 100%; max-height: 100dvh; object-fit: contain; touch-action: pan-y; user-select: none; }
.visor img.entra { animation: aterriza 220ms var(--ease-out); }
.visor .cerrar { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; top: max(14px, env(safe-area-inset-top)); }
.visor-btn { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 34px; line-height: 1; display: grid; place-items: center; padding-bottom: 4px;
  transition: background-color var(--dur-ui) ease, transform var(--dur-pulsar) var(--ease-out); }
.visor-btn:active { transform: scale(.92); }
.visor-btn:hover { background: rgba(255, 255, 255, .24); }
.visor-btn.ant { left: 14px; } .visor-btn.sig { right: 14px; }
.visor-cuenta { position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 0; right: 0; margin: 0; text-align: center; font-size: 14px; opacity: .8; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .visor-btn { display: none; } }

/* ---------- Carrito ---------- */
.velo { position: fixed; inset: 0; z-index: 40; background: rgba(30, 26, 50, .45); opacity: 0; transition: opacity 240ms ease; }
.velo.visible { opacity: 1; }
.carrito { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--surface); box-shadow: var(--sombra-alta); display: flex; flex-direction: column;
  transform: translateX(104%); transition: transform 320ms var(--ease-out); visibility: hidden; }
.carrito.abierto { transform: none; visibility: visible; }
.car-cabeza { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 12px 22px; }
.car-cabeza h2 { font-size: 28px; }
.car-cabeza .cerrar { position: static; box-shadow: none; background: var(--surface-2); }
.car-lista { list-style: none; margin: 0; padding: 4px 18px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.car-item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--surface-2); animation: sube 260ms var(--ease-out); }
.car-item img { width: 72px; height: 84px; object-fit: cover; border-radius: 12px; }
.car-item b { display: block; font-size: 15px; line-height: 1.25; }
.car-item small { color: var(--muted); font-size: 14px; }
.car-quitar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease; }
.car-quitar:hover { background: var(--surface); color: var(--oferta); }
.car-vacio { text-align: center; color: var(--muted); padding: 40px 12px; }
.car-vacio .flor { width: 54px; height: 54px; margin-bottom: 10px; }
.car-pie { padding: 16px 20px max(20px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.car-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 16px; }
.car-total b { font-family: var(--f-titulo); font-size: 28px; font-variant-numeric: tabular-nums; }
.car-nota { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- Avisos (toasts apilados con acción) ---------- */
.toasts { position: fixed; z-index: 60; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; width: min(420px, calc(100vw - 32px)); }
.toast-i { pointer-events: auto; display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 12px 12px 14px; border-radius: 16px;
  background: var(--toast-bg); color: var(--toast-ink); box-shadow: var(--sombra-alta); font-size: 14px; line-height: 1.4;
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out); }
.toast-i.visible { opacity: 1; transform: none; }
.toast-i.saliendo { opacity: 0; transform: translateY(8px) scale(.98); transition-duration: 180ms; }
.ti-punto { width: 10px; height: 10px; border-radius: 50%; background: var(--rosa); flex-shrink: 0; }
.toast-i.error .ti-punto { background: #ff7076; }
.ti-txt { flex: 1; min-width: 0; }
.ti-accion { font-weight: 700; font-size: 13.5px; padding: 7px 12px; border-radius: 10px; color: inherit; background: color-mix(in srgb, currentColor 14%, transparent); min-height: 36px; flex-shrink: 0;
  transition: background-color var(--dur-ui) ease, transform var(--dur-pulsar) var(--ease-out); }
.ti-accion:hover { background: color-mix(in srgb, currentColor 22%, transparent); }
.ti-accion:active { transform: scale(.96); }
.ti-cerrar { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; opacity: .65; flex-shrink: 0; }
.ti-cerrar:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }

/* ---------- Movimiento ---------- */
.foto-vuela { position: fixed; z-index: 70; object-fit: cover; pointer-events: none; transform-origin: center; box-shadow: var(--sombra-alta); }
[data-revela] { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
[data-revela].revelado { opacity: 1; transform: none; }
.sacudir { animation: sacudir 400ms var(--ease-out); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.tema-cambiando * { transition: none !important; }

@keyframes sube { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes funde { from { opacity: 0; } to { opacity: 1; } }
@keyframes insignia { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes aterriza { from { opacity: .6; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes abre { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes cierra { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes sube-hoja { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes flota { 0%, 100% { transform: translateY(0) rotate(var(--g)); } 50% { transform: translateY(-12px) rotate(calc(var(--g) * -.4)); } }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes cinta { to { transform: translateX(-50%); } }
@keyframes brillo { to { background-position: -300% 0; } }
@keyframes sacudir { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-revela] { opacity: 1; transform: none; }
}

/* ============================================================
   MENÚ DE CATEGORÍAS, VISTA LISTA / CUADRÍCULA Y PEDIDO
   ============================================================ */
.menu-cat { position: sticky; top: 66px; z-index: 10; display: grid; gap: 8px; margin: 0 calc(-1 * max(16px, 4vw)); padding: 10px max(16px, 4vw);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.filtros.sub { padding-left: 14px; border-left: 3px solid var(--malva); }
.filtros.sub .chip { min-height: 36px; font-size: 14px; background: var(--surface-2); }
.filtros.sub .chip[aria-pressed="true"] { background: var(--malva); border-color: var(--malva); color: #3e4d3d; }
.filtros[hidden] { display: none; }
.filtros.sub.abre { animation: sube 240ms var(--ease-out); }
.ajustes-der { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ajustes-der select[hidden] { display: none; }
.vista { display: inline-flex; padding: 3px; gap: 2px; border-radius: 13px; border: 1.5px solid var(--line); background: var(--surface); }
.vista button { width: 38px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); transition: background-color var(--dur-ui) ease, color var(--dur-ui) ease, transform var(--dur-pulsar) var(--ease-out); }
.vista button:active { transform: scale(.94); }
.vista button[aria-pressed="true"] { background: var(--prim); color: var(--prim-ink); }
.t-talla { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Cuadrícula de dos en dos en el celular */
@media (max-width: 640px) {
  .rejilla:not(.en-lista) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rejilla:not(.en-lista) .t-cuerpo { padding: 10px 11px 12px; }
  .rejilla:not(.en-lista) .t-nombre { font-size: 15.5px; }
  .rejilla:not(.en-lista) .t-marca { font-size: 10.5px; letter-spacing: .1em; }
  .rejilla:not(.en-lista) .t-talla { display: none; }
  .rejilla:not(.en-lista) .precio { font-size: 15px; }
  .rejilla:not(.en-lista) .precio s { display: block; margin: 0; font-size: 12.5px; }
  .rejilla:not(.en-lista) .t-agregar { width: 38px; height: 38px; }
  .rejilla:not(.en-lista) .etiquetas { top: 8px; left: 8px; }
  .rejilla:not(.en-lista) .etq { font-size: 11px; padding: 4px 8px; }
  .cat-ajustes { align-items: flex-start; }
}

/* Vista de lista: foto a la izquierda, datos a la derecha */
.rejilla.en-lista { grid-template-columns: 1fr; gap: 12px; max-width: 860px; margin: 0 auto; }
.rejilla.en-lista .tarjeta { flex-direction: row; }
.rejilla.en-lista .t-foto { width: clamp(118px, 26vw, 200px); flex-shrink: 0; aspect-ratio: 4 / 5; }
.rejilla.en-lista .t-cuerpo { padding: 14px 16px; justify-content: center; }
.rejilla.en-lista .etiquetas { top: 8px; left: 8px; }
.rejilla.en-lista .esqueleto { aspect-ratio: auto; height: 160px; }

.ficha-envio { margin: 0; font-size: 14px; color: var(--muted); text-align: center; }

/* Ventana del pedido por Instagram */
.pedido { width: min(440px, calc(100vw - 24px)); border-radius: 28px; background: var(--surface); padding: 30px 24px 22px; text-align: center; }
.pedido[open] { display: grid; gap: 14px; animation: abre 260ms var(--ease-out); }
.pedido.cerrando { animation: cierra 180ms ease forwards; }
.pedido h3 { font-size: 27px; }
.pedido-flor { width: 46px; height: 46px; margin: 0 auto; animation: gira 14s linear infinite; }
.pedido-txt { margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); text-align: left; white-space: pre-wrap; font: 600 14.5px/1.5 var(--f-texto); max-height: 30vh; overflow: auto; user-select: all; }
.pedido-pasos { margin: 0; padding-left: 22px; text-align: left; display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.pedido-pasos b { color: var(--ink); }
.btn-texto { min-height: 40px; font-weight: 700; font-size: 14.5px; color: var(--prim); border-radius: 12px; }
.btn-texto:hover { background: var(--surface-2); }
@media (max-width: 640px) {
  .ajustes-der { width: 100%; flex-wrap: nowrap; }
  .ajustes-der select { flex: 1; min-width: 0; padding-right: 30px; background-position: right 10px center; }
  .menu-cat { top: 62px; }
}

/* ============================================================
   MOSAICO DE CATEGORÍAS (foto grande con el nombre encima)
   ============================================================ */
.mosaico-sec { max-width: 1320px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) max(16px, 4vw) 0; }
.mosaico-cabeza { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; min-height: 44px; }
.mosaico-cabeza h2 { font-size: clamp(30px, 4vw, 46px); }
.mosaico-volver { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px 0 8px; border-radius: 999px; background: var(--surface-2); font-weight: 700; font-size: 14.5px;
  transition: background-color var(--dur-ui) ease, transform var(--dur-pulsar) var(--ease-out); animation: sube 220ms var(--ease-out); }
.mosaico-volver:active { transform: scale(.96); }
.mosaico-volver[hidden] { display: none; }
.mosaico { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.mosaico.sub { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.m-cuadro { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; isolation: isolate; color: #fff; text-align: center;
  box-shadow: var(--sombra); animation: sube 360ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); transition: transform var(--dur-pulsar) var(--ease-out); }
.m-cuadro:active { transform: scale(.98); }
.m-cuadro img, .m-ilus { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; transition: transform 700ms var(--ease-out); }
.m-cuadro img { object-fit: cover; }
.m-cuadro::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30, 26, 50, .08), rgba(30, 26, 50, .42)); transition: background-color var(--dur-ui) ease; }
.m-ilus { display: grid; place-items: center; background: radial-gradient(circle at 25% 20%, rgba(255, 255, 255, .55), transparent 55%), var(--fondo); color: #3e4d3d; }
.m-ilus svg { width: 46%; height: 46%; opacity: .35; }
.m-nombre { font-family: var(--f-titulo); font-weight: 900; font-variation-settings: 'SOFT' 100, 'WONK' 1; text-transform: uppercase; letter-spacing: .02em; line-height: 1;
  font-size: clamp(20px, 3.4vw, 40px); padding: 0 10px; text-shadow: 0 2px 18px rgba(30, 26, 50, .45); }
.m-cuenta { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255, 248, 237, .92); color: #3e4d3d; font-size: 12.5px; font-weight: 700; }
.m-cuadro.sin-foto .m-cuenta { background: #3e4d3d; color: #fff8ed; }
@media (hover: hover) and (pointer: fine) {
  .m-cuadro:hover img, .m-cuadro:hover .m-ilus { transform: scale(1.06); }
  .m-cuadro:hover::after { background-color: rgba(125, 128, 218, .18); }
}
@media (max-width: 640px) {
  .mosaico, .mosaico.sub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .m-cuadro { aspect-ratio: 1 / 1; border-radius: 14px; }
  .m-cuenta { left: 8px; bottom: 8px; font-size: 11px; padding: 4px 9px; }
}
.m-cuadro.sin-foto { color: #3e4d3d; }
.m-cuadro.sin-foto::after { background: none; }
.m-cuadro.sin-foto .m-nombre { text-shadow: none; }
.m-cuadro.sin-foto .m-ilus svg { opacity: .22; }
@media (max-width: 640px) { .m-nombre { font-size: clamp(15px, 4.6vw, 22px); } }

/* El menú de categorías no debe ensanchar la página en el celular */
.cat-cabeza { grid-template-columns: minmax(0, 1fr); }
.menu-cat, .menu-cat .filtros, .cat-ajustes { min-width: 0; max-width: 100vw; }
html, body { overflow-x: clip; }

/* ---------- Celulares chicos (320–380 px) ---------- */
@media (max-width: 380px) {
  .barra { padding-left: 12px; padding-right: 12px; gap: 6px; }
  .marca-txt { font-size: 21px; }
  .barra-acc { gap: 2px; }
  .barra .btn-icono { width: 38px; height: 38px; }
  .btn-carrito { width: 42px; height: 42px; }
  .portada-txt { padding-left: 16px; padding-right: 16px; }
  .portada h1 { font-size: 34px; }
  .sello { letter-spacing: .14em; font-size: 11.5px; }
  .catalogo, .mosaico-sec { padding-left: 12px; padding-right: 12px; }
  .menu-cat { margin: 0 -12px; padding: 10px 12px; }
  .rejilla:not(.en-lista) { gap: 8px; }
  .rejilla:not(.en-lista) .t-nombre { font-size: 14.5px; }
  .rejilla:not(.en-lista) .t-agregar { width: 34px; height: 34px; }
  .chip { padding: 0 13px; font-size: 14px; }
  .pasos { width: calc(100% - 24px); }
}
/* Teléfono acostado: que la ficha y el visor no queden cortados */
@media (max-height: 500px) and (orientation: landscape) {
  .portada { min-height: auto; }
  .collage { min-height: 300px; }
  .foto-grande img { max-height: 80dvh; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .ficha[open] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; overflow: hidden; }
  .ficha-galeria { height: 100dvh; }
  .foto-grande img { height: 100%; max-height: none; aspect-ratio: auto; }
  .ficha-info { height: 100dvh; overflow-y: auto; padding: 18px 20px; }
  .ficha-acc { position: static; }
  .pedido { max-height: calc(100dvh - 16px); overflow-y: auto; }
}
.ficha-desc { white-space: pre-line; }

/* ============================================================
   RESEÑAS
   ============================================================ */
.resenas { max-width: 1120px; margin: 0 auto clamp(48px, 7vw, 90px); padding: 0 max(16px, 4vw); }
.res-cabeza { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.res-cabeza h2 { font-size: clamp(28px, 3.6vw, 40px); }
.res-resumen { margin: 8px 0 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.res-resumen b { color: var(--ink); font-size: 18px; }
.res-lista { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; }
.res-tarjeta { scroll-snap-align: start; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 22px; background: var(--surface); box-shadow: var(--sombra); animation: sube 360ms var(--ease-out) both; animation-delay: calc(var(--i, 0) * 50ms); }
.res-texto { margin: 0; font-size: 15.5px; line-height: 1.55; text-wrap: pretty; flex: 1; }
.res-pie { margin: 0; font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: baseline; }
.res-pie b { color: var(--ink); }
.res-pie span { margin-left: auto; font-size: 12.5px; }
.res-vacio { grid-column: 1 / -1; margin: 0; padding: 28px 20px; text-align: center; color: var(--muted); background: var(--surface-2); border-radius: 22px; }
.estrellas { display: inline-flex; gap: 3px; }
.estrellas i, .elegir-estrellas button { width: 17px; height: 17px; background: var(--line); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.2 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.2 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.estrellas i.llena, .elegir-estrellas button.llena { background: #f2b33d; }
@media (max-width: 640px) { .res-lista { grid-auto-columns: 82%; } }

/* Formularios en ventana (reseña y seguimiento) */
.form-dlg { text-align: left; }
.form-dlg h3 { text-align: center; }
.form-res { display: grid; gap: 12px; }
.form-res label, .form-seguir { display: grid; gap: 6px; font-size: 14px; font-weight: 700; }
.form-dlg input, .form-dlg select, .form-dlg textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font: 600 16px var(--f-texto); color: var(--ink); }
.form-dlg textarea { resize: vertical; font-weight: 500; line-height: 1.45; }
.form-dlg input:focus, .form-dlg select:focus, .form-dlg textarea:focus { outline: none; border-color: var(--lavanda); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lavanda) 22%, transparent); }
.form-nota { margin: -6px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.elegir-estrellas { display: flex; justify-content: center; gap: 6px; }
.elegir-estrellas button { width: 40px; height: 40px; transition: transform var(--dur-pulsar) var(--ease-out), background-color var(--dur-ui) ease; }
.elegir-estrellas button:active { transform: scale(.88); }
.contador-txt { justify-self: end; font-weight: 600; color: var(--muted); font-size: 12px; }
.trampa { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   SIGUE TU PEDIDO
   ============================================================ */
.form-seguir { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.form-seguir input { text-transform: uppercase; letter-spacing: .08em; text-align: center; font-weight: 700; }
#seguirResultado { display: grid; gap: 14px; }
.seg-aviso { margin: 0; text-align: center; color: var(--muted); font-size: 14.5px; }
.seg-cabeza { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; border-top: 1px solid var(--line); }
.seg-cabeza span { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.seg-cabeza b { font-family: var(--f-titulo); font-size: 22px; letter-spacing: .03em; }
.seg-prod { margin: -6px 0 0; color: var(--muted); font-size: 14.5px; }
.linea { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.linea li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; padding: 8px 0; color: var(--muted); font-size: 15px; animation: sube 280ms var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); }
.linea li:not(:last-child)::after { content: ''; position: absolute; left: 10px; top: 28px; bottom: -10px; width: 2px; background: var(--line); }
.linea .punto { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); z-index: 1; }
.linea li.hecho { color: var(--ink); }
.linea li.hecho .punto { background: var(--lavanda); border-color: var(--lavanda); }
.linea li.hecho:not(:last-child)::after { background: var(--lavanda); }
.linea li.actual { color: var(--ink); }
.linea li.actual .punto { border-color: var(--lavanda); background: var(--rosa); box-shadow: 0 0 0 5px color-mix(in srgb, var(--lavanda) 20%, transparent); }
.linea li.actual b { font-weight: 800; }
.linea small { font-size: 12.5px; }
.seg-guia { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.seg-guia span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.seg-guia b { font-size: 17px; letter-spacing: .04em; word-break: break-all; }
.seg-rastrear { width: 100%; }
.seg-nota { margin: -6px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

.pie-enlaces { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.pie-enlaces a { opacity: .9; font-weight: 600; }
.pasos li a { color: var(--prim); font-weight: 700; }
.form-dlg { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }

/* Botón secundario de la portada: Rastrear mi pedido */
.btn-borde { background: transparent; color: var(--prim); box-shadow: inset 0 0 0 2px var(--prim); }
@media (hover: hover) and (pointer: fine) { .btn-borde:hover { background: color-mix(in srgb, var(--prim) 10%, transparent); } }
.portada-cta .contador { flex-basis: 100%; }
@media (max-width: 380px) { .portada-cta .btn { padding: 0 16px; font-size: 15px; } }

.seg-prep { margin: 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--rosa) 35%, var(--surface)); font-size: 14.5px; }
/* Botón Rastrear relleno de color */
.btn-borde { background: var(--acento); color: var(--acento-ink); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .btn-borde:hover { background: color-mix(in srgb, var(--acento) 82%, var(--prim)); } }

/* Políticas */
.politicas section { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.politicas h4 { margin: 0; font-family: var(--f-titulo); font-size: 18px; }
.politicas p { margin: 0; white-space: pre-line; color: var(--muted); font-size: 15px; line-height: 1.55; }
.politicas .pol-devol { background: color-mix(in srgb, var(--rosa) 35%, var(--surface)); }
.ficha-envio a, .car-nota a { color: var(--prim); font-weight: 700; }

/* ============================================================
   MEJORAS: buscador, favoritos y compartir
   ============================================================ */
.ajustes-izq { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-width: 0; }
.buscador { position: relative; display: flex; align-items: center; flex: 1 1 220px; min-width: 0; }
.buscador svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.buscador input { width: 100%; min-height: 42px; padding: 0 14px 0 38px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: 600 15px var(--f-texto); color: var(--ink);
  transition: border-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease; }
.buscador input:focus { outline: none; border-color: var(--lavanda); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lavanda) 22%, transparent); }
.n-favs { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--rosa); color: #3e4d3d; font-size: 12px; text-align: center; }
.n-favs:empty { display: none; }
.t-fav { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 248, 237, .92); color: #3e4d3d;
  box-shadow: 0 2px 10px rgba(30, 26, 50, .12); transition: transform var(--dur-pulsar) var(--ease-out), color var(--dur-ui) ease; }
.t-fav:active { transform: scale(.88); }
.t-fav.activo { color: var(--oferta); }
.t-fav.activo svg, #fichaFav.activo svg { fill: currentColor; }
.ficha-mini { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.ficha-mini .btn-texto { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; }
#fichaFav.activo { color: var(--oferta); }
@media (max-width: 640px) {
  .rejilla:not(.en-lista) .t-fav { width: 32px; height: 32px; top: 6px; right: 6px; }
  .rejilla:not(.en-lista) .t-fav svg { width: 16px; height: 16px; }
  .buscador { flex-basis: 100%; }
}
