/* =========================================================
   Tienda · Salón DMárquez — formato compacto
   Mobile first · misma tipografía que salondmarquez.com
   ========================================================= */
:root {
  --fondo: #FBF6EF;          /* blanco crema de la página */
  --rosa: #F6E6E2;           /* crema rosado de las tarjetas */
  --negro: #1A1A1A;
  --texto: #2A2422;
  --suave: #85766F;
  --linea: #EADCD5;
  --dorado: #C9A227;
  --oro-osc: #7A600A;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', system-ui, sans-serif;
  --cab: 54px;
  --cols: 3;                 /* productos por fila en el teléfono */
  --gap: 10px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.bloqueado { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--dorado); outline-offset: 2px; }

/* ---------- franja superior ---------- */
.aviso-top {
  background: var(--negro); color: #F3E9DC;
  text-align: center; font-size: 10.5px; letter-spacing: .07em;
  padding: 5px 12px;
}
.aviso-top span { color: var(--dorado); margin: 0 3px; }

/* ---------- cabecera ---------- */
.cab {
  position: sticky; top: 0; z-index: 30;
  height: var(--cab);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 12px 0 14px;
  background: rgba(251, 246, 239, .97);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.marca { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.marca img { width: 38px; height: 38px; border-radius: 50%; box-shadow: 0 2px 8px rgba(150, 90, 90, .18); }
.marca-txt { display: flex; flex-direction: column; line-height: 1.05; }
.marca-txt b { font-family: var(--serif); font-weight: 500; font-size: 13.5px; letter-spacing: .2em; color: var(--negro); }
.marca-txt small { font-family: var(--serif); font-style: italic; font-size: 12.5px; color: var(--oro-osc); margin-top: 1px; }
.btn-cesta { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; }
.btn-cesta svg { width: 23px; height: 23px; }
.badge {
  position: absolute; top: 3px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: var(--negro); color: #fff;
  font-size: 10px; font-weight: 500; line-height: 17px; text-align: center;
}
.badge.salto { animation: salto .45s var(--ease); }
@keyframes salto { 40% { transform: scale(1.3); } }

/* ---------- mini hero: carrusel de marcas (corto, la tienda empieza enseguida) ---------- */
.hero {
  position: relative;
  margin: 4px 12px 0;
  height: 188px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(115deg, #F8ECE7 0%, #F4DDD8 55%, #F2D2D2 100%);
}
.hero-pista {
  display: flex; height: 100%;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  transition: opacity .25s;
}
.hero-pista::-webkit-scrollbar { display: none; }
.hero-pista.saltando { opacity: 0; }
.slide {
  flex: 0 0 100%; position: relative;
  display: flex; align-items: center;
  scroll-snap-align: start; scroll-snap-stop: always;
  isolation: isolate;
}
.hero-img { position: absolute; inset: 0 0 0 47%; z-index: -1; overflow: hidden; }
.hero-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 70%) var(--posy, 72%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
  transform: scale(1.06);
  transition: transform 1.6s var(--ease);
}
.slide.activa .hero-img img { transform: none; }
.hero-txt { width: 57%; padding: 0 0 18px 16px; }
.hero-txt > * { opacity: 0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.slide.activa .hero-txt > * { opacity: 1; transform: none; }
.slide.activa .hero-txt > :nth-child(2) { transition-delay: .07s; }
.slide.activa .hero-txt > :nth-child(3) { transition-delay: .14s; }
.slide.activa .hero-txt > :nth-child(4) { transition-delay: .21s; }
.eyebrow { margin: 0 0 6px; font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--oro-osc); }
.hero-titulo {
  margin: 0;
  font-family: var(--serif); font-weight: 500;
  font-size: 23px; line-height: 1.05; color: var(--negro);
}
.hero-titulo em { font-style: italic; }
.hero-sub { margin: 6px 0 0; font-size: 11.5px; line-height: 1.4; color: #5E504A; font-weight: 300; max-width: 15em; }
.hero-ver {
  margin-top: 9px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 500; letter-spacing: .03em; color: var(--negro);
  border-bottom: 1px solid var(--negro); padding-bottom: 1px;
}
.hero-ver svg { width: 13px; height: 13px; stroke-width: 1.8; transition: transform .25s var(--ease); }
.hero-ver:active svg { transform: translateX(3px); }
.hero-puntos { position: absolute; left: 10px; bottom: 6px; display: flex; }
.punto { width: 22px; height: 18px; display: grid; place-items: center; }
.punto::before {
  content: ""; width: 6px; height: 4px; border-radius: 2px;
  background: rgba(26, 26, 26, .22);
  transition: width .35s var(--ease), background .35s;
}
.punto[aria-selected="true"]::before { width: 16px; background: var(--negro); }
.hero-flecha {
  display: none;
  position: absolute; bottom: 14px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, .85); border: 1px solid var(--linea);
  place-items: center;
}
.hero-flecha svg { width: 16px; height: 16px; stroke-width: 1.8; }
.hero-prev { right: 62px; }
.hero-next { right: 18px; }

/* ---------- productos ---------- */
.productos { padding: 16px 12px 30px; max-width: 1280px; margin: 0 auto; scroll-margin-top: var(--cab); }
.prod-cab { display: flex; align-items: baseline; justify-content: space-between; padding: 0 2px; }
.prod-cab h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1; color: var(--negro); }
.prod-sub { margin: 4px 2px 0; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--oro-osc); }
.contador { font-size: 11px; color: var(--suave); }

.filtros {
  position: sticky; top: var(--cab); z-index: 20;
  display: flex; gap: 6px;
  margin: 4px -12px 6px; padding: 8px 12px;
  overflow-x: auto; scrollbar-width: none;
  background: var(--fondo);
}
.filtros::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 30px; padding: 0 13px;
  border-radius: 999px; border: 1px solid var(--linea); background: #fff;
  font-size: 12px; color: var(--texto);
  display: inline-flex; align-items: center; gap: 5px;
  transition: background .25s, color .25s, border-color .25s;
}
.chip small { font-size: 10px; color: var(--suave); transition: color .25s; }
.chip[aria-pressed="true"] { background: var(--negro); border-color: var(--negro); color: #FBF6EF; }
.chip[aria-pressed="true"] small { color: #C9B9A8; }

.grilla {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 18px var(--gap);
  transition: opacity .2s;
}
.grilla.cambiando { opacity: 0; }

.tarjeta {
  position: relative; display: flex; flex-direction: column;
  cursor: pointer; text-align: left;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.tarjeta.visible { opacity: 1; transform: none; }
.t-foto {
  position: relative; aspect-ratio: 1 / 1;
  border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 1px 2px rgba(120, 70, 70, .06);
}
.t-foto img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.t-mas {
  position: absolute; right: 6px; bottom: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, .92); color: var(--negro);
  display: grid; place-items: center;
  box-shadow: 0 2px 8px rgba(80, 40, 40, .14);
  transition: transform .2s var(--ease);
}
.t-mas svg { width: 13px; height: 13px; stroke-width: 2; }
.t-mas:active { transform: scale(.86); }
.t-nombre {
  margin: 2px 1px 0;
  font-size: 12px; line-height: 1.28; font-weight: 400; color: var(--texto);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.t-precio { margin: 3px 1px 0; font-size: 13.5px; font-weight: 500; color: var(--negro); }
.t-precio small { font-size: 9px; font-weight: 400; color: var(--suave); margin-left: 2px; letter-spacing: .04em; }
@media (hover: hover) {
  .tarjeta:hover .t-foto img { transform: scale(1.05); }
}

/* ---------- pie: recogida en el salón y vuelta a la web principal ---------- */
.pie { background: linear-gradient(180deg, #F7EBE6 0%, #F2DCD7 100%); color: var(--texto); }
.pie-cuerpo { max-width: 1100px; margin: 0 auto; padding: 18px 20px 30px; text-align: center; }
.pie-arte { width: 190px; margin: 0 auto -6px; }
.pie-arte img { width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
.pie-marca { margin: 0; font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: .03em; color: var(--negro); line-height: 1.1; }
.pie-by { margin: 0 0 16px; font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--oro-osc); }
.pie-recogida { margin: 0 auto 18px; max-width: 300px; font-size: 12.5px; line-height: 1.5; color: #5E504A; }
.pie-recogida b { display: block; margin-bottom: 4px; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; color: var(--oro-osc); }
.pie-recogida p { margin: 0; }
.pie-recogida a { display: inline-block; margin-top: 6px; color: var(--negro); text-underline-offset: 3px; }
.pie-servicios { height: 46px; padding: 0 22px; text-decoration: none; }
.pie-servicios svg { width: 16px; height: 16px; stroke-width: 1.8; }
.pie-links { display: flex; justify-content: center; gap: 20px; margin-top: 18px; font-size: 12.5px; }
.pie-links a { text-decoration: none; border-bottom: 1px solid rgba(122, 96, 10, .45); padding-bottom: 2px; }
.pie-legal { position: relative; background: var(--negro); color: #A89A90; text-align: center; font-size: 11px; padding: 16px 56px 92px; }
.pie-legal p { margin: 6px 0 0; }
.legal-links { display: flex; justify-content: center; gap: 8px; font-size: 11.5px; }
.legal-links a { color: #D9CCC0; text-decoration: none; }
.legal-links span { color: #6E625A; }
.llave {
  position: absolute; right: 14px; top: 12px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  color: #6E625A; transition: color .25s, background .25s;
}
.llave svg { width: 15px; height: 15px; stroke-width: 1.5; }
.llave:hover, .llave:focus-visible { color: var(--dorado); background: rgba(255, 255, 255, .05); }

/* ---------- barra de cesta (móvil) ---------- */
.barra-cesta {
  position: fixed; z-index: 40;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  height: 50px; padding: 0 18px 0 8px; border-radius: 999px;
  background: var(--negro); color: #FBF6EF;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 12px 30px rgba(26, 26, 26, .28);
  font-size: 13.5px; font-weight: 500;
  animation: barra .45s var(--ease) both;
}
.barra-cesta[hidden] { display: none; }
@keyframes barra { from { opacity: 0; transform: translateY(20px); } }
.bc-izq { display: flex; align-items: center; gap: 10px; }
.bc-num {
  min-width: 34px; height: 34px; border-radius: 17px; padding: 0 8px;
  background: var(--dorado); color: var(--negro);
  display: grid; place-items: center; font-size: 13px;
}
.toast {
  position: fixed; z-index: 60; left: 50%; bottom: calc(74px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: #fff; color: var(--negro);
  border: 1px solid var(--linea); border-radius: 999px;
  padding: 8px 16px; font-size: 12.5px; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(26, 26, 26, .12);
  transition: opacity .25s, transform .35s var(--ease);
}
.toast.ver { opacity: 1; transform: translate(-50%, 0); }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .03em;
  transition: transform .2s var(--ease), background .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: default; }
.btn-negro { background: var(--negro); color: #FBF6EF; }
.btn-claro { background: #fff; color: var(--negro); border: 1px solid var(--negro); }

/* ---------- ventanas ---------- */
.ficha, .cesta { position: fixed; inset: 0; z-index: 50; }
.ficha[hidden], .cesta[hidden] { display: none; }
.velo { position: absolute; inset: 0; background: rgba(26, 20, 18, .42); opacity: 0; transition: opacity .35s; }
.abierta .velo { opacity: 1; }

/* ---------- ficha compacta ---------- */
.ficha-caja {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 86%;
  background: var(--fondo);
  border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .42s var(--ease);
}
.abierta .ficha-caja { transform: none; }
.asa { display: block; width: 38px; height: 4px; border-radius: 2px; background: #DCCBC3; margin: 8px auto 0; flex: none; }
.cerrar {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; border: 1px solid var(--linea);
  display: grid; place-items: center;
}
.cerrar svg { width: 16px; height: 16px; stroke-width: 1.8; }
.ficha-scroll { overflow-y: auto; overscroll-behavior: contain; padding: 12px 16px 6px; }
.ficha-top { display: grid; grid-template-columns: 41% 1fr; gap: 14px; align-items: center; padding-right: 26px; }
.ficha-foto { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; display: grid; place-items: center; }
.ficha-foto img { width: 100%; height: 100%; object-fit: contain; }
.f-marca { margin: 0; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--oro-osc); }
.f-nombre { margin: 3px 0 6px; font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 1.12; color: var(--negro); }
.f-precio { margin: 0; font-size: 17px; font-weight: 500; }
.f-precio small { font-size: 11.5px; font-weight: 400; color: var(--suave); }
.f-cuerpo { margin-top: 12px; }
.f-desc { margin: 0 0 8px; font-size: 13px; color: #4A3F3A; }
.f-lista { list-style: none; margin: 0 0 10px; padding: 0; }
.f-lista li { position: relative; padding-left: 14px; margin-bottom: 5px; color: #4A3F3A; font-weight: 300; font-size: 13px; line-height: 1.45; }
.f-lista li::before { content: ""; position: absolute; left: 1px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--dorado); }
.f-caja { background: var(--rosa); border-radius: 10px; padding: 9px 12px; margin: 0 0 10px; font-size: 12.5px; line-height: 1.45; }
.f-caja b { display: block; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; color: var(--oro-osc); margin-bottom: 2px; }
.f-aviso { border-left: 2px solid var(--dorado); padding: 1px 0 1px 10px; margin: 0 0 10px; font-size: 12.5px; color: #5E504A; }
.f-incluye h4 { margin: 8px 0 3px; font-size: 13px; font-weight: 500; color: var(--negro); }
.f-opc-tit { margin: 12px 0 6px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--suave); }
.f-opciones { display: flex; flex-direction: column; gap: 6px; }
.opcion {
  text-align: left; padding: 8px 12px;
  border: 1px solid var(--linea); border-radius: 10px; background: #fff;
  font-size: 13px; transition: border-color .2s, background .2s;
}
.opcion small { display: block; color: var(--suave); font-size: 11.5px; font-weight: 300; margin-top: 1px; line-height: 1.35; }
.opcion[aria-pressed="true"] { border-color: var(--negro); background: var(--rosa); }
.f-duda { display: inline-block; margin: 2px 0 4px; font-size: 12px; color: var(--suave); text-decoration: none; }
.f-duda u { color: var(--oro-osc); text-underline-offset: 3px; }

.ficha-acciones {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--linea);
}
.cantidad {
  flex: none; display: flex; align-items: center;
  height: 44px; border: 1px solid var(--linea); border-radius: 999px; background: #fff;
}
.cantidad button { width: 32px; height: 100%; font-size: 17px; color: var(--negro); }
.cantidad button:disabled { color: #CBBDB6; cursor: default; }
.cantidad output { min-width: 18px; text-align: center; font-weight: 500; font-size: 13.5px; }
.ficha-acciones .btn { flex: 1; padding: 0 10px; }
.ficha-acciones .btn-negro { flex: 1.25; }

/* al abrir desde una tarjeta, la ficha aparece en su sitio y la foto vuela */
.ficha.vuelo .ficha-caja { transform: none; opacity: 0; transition: opacity .3s ease; }
.ficha.vuelo.abierta .ficha-caja { opacity: 1; }
.foto-vuelo {
  position: fixed; z-index: 70; pointer-events: none;
  display: grid; place-items: center; overflow: hidden;
  border-radius: 10px;
  transition: left .42s var(--ease), top .42s var(--ease), width .42s var(--ease), height .42s var(--ease), border-radius .42s, opacity .2s;
}
.foto-vuelo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- cesta ---------- */
.cesta-caja {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 86%;
  background: var(--fondo);
  border-radius: 20px 20px 0 0;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform .42s var(--ease);
}
.abierta .cesta-caja { transform: none; }
.cesta-cab { display: flex; align-items: center; justify-content: space-between; padding: 16px 14px 6px 18px; }
.cesta-cab h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 23px; }
.cerrar-plano { position: static; }
.cesta-lista { overflow-y: auto; padding: 0 14px; flex: 1; }
.item { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--linea); }
.item-foto { width: 56px; height: 56px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; }
.item-foto img { width: 100%; height: 100%; object-fit: contain; }
.item-nombre { margin: 0; font-size: 12.5px; line-height: 1.3; color: var(--negro); }
.item-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 5px; }
.item-ctrl .cantidad { height: 30px; }
.item-ctrl .cantidad button { width: 28px; font-size: 15px; }
.item-quitar { font-size: 11.5px; color: var(--suave); text-decoration: underline; text-underline-offset: 3px; }
.item-precio { font-weight: 500; font-size: 13px; white-space: nowrap; align-self: start; padding-top: 2px; }
.cesta-vacia { text-align: center; padding: 26px 10px 36px; color: var(--suave); }
.cesta-vacia p { margin: 0 0 14px; }
.cesta-pie { padding: 12px 14px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); }
.cesta-pie[hidden] { display: none; }
.cesta-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.cesta-total b { font-size: 19px; font-weight: 500; }
.cesta-nota { margin: 4px 0 10px; font-size: 12px; color: var(--suave); }
.btn-wa { width: 100%; height: 48px; font-size: 14px; }
.btn-wa svg { width: 19px; height: 19px; }

/* =========================================================
   Pantallas más grandes
   ========================================================= */
@media (min-width: 560px) {
  :root { --cols: 4; --gap: 14px; }
  .t-nombre { font-size: 12.5px; }
  .t-precio { font-size: 14px; }
  .t-mas { width: 30px; height: 30px; }
  .t-mas svg { width: 14px; height: 14px; }
  .hero { height: 220px; }
  .hero-titulo { font-size: 32px; }
  .hero-sub { font-size: 13px; max-width: 20em; }
  .hero-ver { font-size: 12.5px; }
  .eyebrow { font-size: 10px; }
  .slide { --pos: 60% !important; }
}
@media (min-width: 960px) {
  :root { --cab: 66px; --cols: 5; --gap: 18px; }
  .aviso-top { font-size: 11.5px; padding: 6px; }
  .cab { padding: 0 max(24px, calc((100vw - 1280px) / 2 + 24px)); }
  .marca img { width: 44px; height: 44px; }
  .marca-txt b { font-size: 16px; }
  .marca-txt small { font-size: 14px; }
  .hero { max-width: 1232px; margin: 10px auto 0; height: 260px; border-radius: 20px; }
  .hero-img { inset: 0 0 0 38%; }
  .hero-img img { object-position: 50% var(--posy, 100%); }
  .hero-txt { width: 50%; padding: 0 0 10px 56px; }
  .hero-titulo { font-size: 44px; }
  .hero-titulo em { white-space: nowrap; }
  .hero-sub { font-size: 14.5px; }
  .hero-ver { font-size: 13.5px; margin-top: 14px; }
  .hero-puntos { left: 50px; bottom: 12px; }
  .hero-flecha { display: grid; }
  .productos { padding: 26px 24px 50px; }
  .prod-cab h2 { font-size: 28px; }
  .filtros { margin: 8px -24px 12px; padding: 10px 24px; }
  .chip { height: 34px; font-size: 13px; padding: 0 16px; }
  .grilla { row-gap: 22px; }
  .t-foto { border-radius: 12px; }
  .t-mas { width: 32px; height: 32px; right: 8px; bottom: 8px; }
  .t-nombre { font-size: 13.5px; margin-top: 9px; }
  .t-precio { font-size: 14.5px; }
  .pie-cuerpo { display: grid; grid-template-columns: 320px 1fr; align-items: end; gap: 56px; text-align: left; padding: 30px 40px 0; }
  .pie-arte { width: 100%; margin: 0; }
  .pie-info { padding-bottom: 46px; }
  .pie-marca { font-size: 38px; }
  .pie-by { font-size: 21px; }
  .pie-recogida { margin: 0 0 22px; max-width: 360px; font-size: 13.5px; }
  .pie-links { justify-content: flex-start; }
  .pie-legal { padding-bottom: 14px; }
  .barra-cesta { display: none; }
  .toast { bottom: 28px; }

  /* ficha como ventana centrada */
  .ficha-caja, .ficha.vuelo .ficha-caja {
    left: 50%; top: 50%; right: auto; bottom: auto;
    width: 680px; max-height: min(620px, calc(100% - 60px));
    border-radius: 20px;
    transform: translate(-50%, -48%); opacity: 0;
    transition: transform .4s var(--ease), opacity .3s;
  }
  .abierta .ficha-caja, .ficha.vuelo.abierta .ficha-caja { transform: translate(-50%, -50%); opacity: 1; }
  .asa { visibility: hidden; }
  .ficha-scroll { padding: 10px 28px 6px; }
  .ficha-top { grid-template-columns: 250px 1fr; gap: 24px; }
  .f-nombre { font-size: 27px; }
  .ficha-acciones { padding: 14px 28px 20px; }
  .ficha-acciones .cantidad { height: 46px; }

  /* cesta como panel lateral */
  .cesta-caja {
    left: auto; top: 0; bottom: 0; right: 0;
    width: 400px; max-height: none;
    border-radius: 20px 0 0 20px;
    transform: translateX(100%);
  }
  .abierta .cesta-caja { transform: none; }
}
@media (min-width: 1200px) {
  :root { --cols: 6; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tarjeta, .hero-txt > * { opacity: 1; transform: none; }
}

/* =========================================================
   Estados de producto, carga, cookies y páginas legales
   ========================================================= */
.t-marca { margin: 8px 1px 0; font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--oro-osc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-etiqueta {
  position: absolute; left: 6px; top: 6px;
  padding: 3px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--oro-osc);
  font-size: 8.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
}
.t-etiqueta.agotado { color: var(--negro); }
.sin-stock .t-foto img { opacity: .5; filter: saturate(.6); }
.sin-stock .t-precio { color: var(--suave); }
.vacio { grid-column: 1 / -1; text-align: center; color: var(--suave); padding: 30px 0; }
.solo-lector { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.esqueleto { pointer-events: none; }
.esqueleto .t-foto, .e-linea {
  background: linear-gradient(100deg, #F3E4E0 30%, #FAF1EE 50%, #F3E4E0 70%) 0 0 / 300% 100%;
  animation: brillo 1.4s linear infinite;
}
.e-linea { display: block; height: 9px; border-radius: 5px; margin-top: 9px; width: 85%; }
.e-linea.corta { width: 45%; margin-top: 6px; }
@keyframes brillo { from { background-position: 100% 0; } to { background-position: 0 0; } }

.f-agotado { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--rosa); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; color: var(--negro); vertical-align: middle; }
.f-avisame { display: none; flex: 1; text-decoration: none; }
.f-avisame svg { width: 17px; height: 17px; }
.ficha.es-agotado .ficha-acciones .cantidad,
.ficha.es-agotado #fAgregar,
.ficha.es-agotado #fComprar { display: none; }
.ficha.es-agotado .f-avisame { display: inline-flex; }

.item-agotado .item-foto, .item-agotado .item-nombre { opacity: .5; }
.item-nota { display: block; font-size: 11px; color: var(--oro-osc); margin-top: 2px; }

/* aviso de cookies */
.cookies {
  position: fixed; z-index: 45;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 10px;
  padding: 14px 16px;
  background: #fff; border: 1px solid var(--linea); border-radius: 16px;
  box-shadow: 0 14px 34px rgba(60, 30, 30, .14);
  font-size: 12.5px; line-height: 1.45; color: var(--texto);
  animation: barra .45s var(--ease) both;
}
.cookies[hidden] { display: none; }
body.con-barra .cookies { bottom: calc(74px + env(safe-area-inset-bottom)); }
.cookies p { margin: 0; }
.cookies a { color: var(--oro-osc); text-underline-offset: 3px; }
.cookies-btns { display: flex; gap: 8px; }
.cookies-btns .btn { flex: 1; height: 40px; font-size: 12.5px; background: #fff; color: var(--negro); border: 1px solid var(--negro); }

/* páginas legales */
.doc { max-width: 720px; margin: 0 auto; padding: 22px 18px 40px; }
.doc h1 { margin: 6px 0 4px; font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.05; color: var(--negro); }
.doc .fecha { margin: 0 0 22px; font-size: 12px; color: var(--suave); }
.doc h2 { margin: 26px 0 8px; font-family: var(--serif); font-weight: 500; font-size: 22px; color: var(--negro); }
.doc h3 { margin: 18px 0 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; color: var(--oro-osc); }
.doc p, .doc li { font-size: 14px; line-height: 1.6; color: #4A3F3A; }
.doc ul { padding-left: 18px; }
.volver { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--negro); text-decoration: none; border-bottom: 1px solid var(--negro); padding-bottom: 1px; }
.volver svg { width: 14px; height: 14px; stroke-width: 1.8; }
@media (min-width: 960px) {
  .cookies { left: auto; right: 24px; bottom: 24px; width: 380px; }
  .doc { padding-top: 40px; }
  .doc h1 { font-size: 46px; }
  .prod-sub { font-size: 16px; }
  .t-marca { font-size: 10px; margin-top: 11px; }
  .t-etiqueta { font-size: 10px; left: 10px; top: 10px; padding: 4px 9px; }
  .pie-legal { padding-bottom: 16px; }
}
