/* Isidora e Isabel — tienda
   Dirección: catálogo de especímenes. Cada producto sobre un azulejo de color plano. */

:root {
  --bg: #FBF8F7;
  --surface: #F3ECEA;
  --ink: #2B1B21;
  --muted: #6B5960;
  --accent: #B03F58;
  --accent-hover: #962F48;
  --accent-ink: #FFFFFF;
  --f1: #F6DDE3; /* rosa */
  --f2: #EEE2E6; /* malva grisado */
  --f3: #DFEAE2; /* salvia */
  --f4: #E0E8F0; /* celeste */

  --display: 'Besley', Georgia, serif;
  --text: 'Libre Franklin', system-ui, sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-hero: clamp(2.75rem, 1.4rem + 5.6vw, 6.5rem);

  --margen: clamp(16px, 3.4vw, 48px);
  --radio: 999px;
  --tile: 14px;
  --hueco-seccion: clamp(88px, 12vw, 180px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-rapido: 160ms;
  --t-medio: 320ms;

  color-scheme: light;
}

/* ---------- Estilos que elige el cliente ---------- */
/* Rosa: polvo rosado, oro rosa y gypsophila */
:root, [data-estilo="rosa"] {
  --bg: #F7E4E3; --surface: #FBEFEE; --ink: #2E161D; --muted: #5A3A43;
  --accent: #B03F58; --accent-hover: #962F48; --accent-ink: #FFFFFF;
  --f1: #F2D2D4; --f2: #F8E9E4; --f3: #EFD9CF; --f4: #F5DEE4;
  --velo: rgba(247, 228, 227, 0.74);
}
/* Eucalipto: mármol, piedra blanca y jade */
[data-estilo="eucalipto"] {
  --bg: #ECECE6; --surface: #F5F4EF; --ink: #18201A; --muted: #3F4B43;
  --accent: #4C6B55; --accent-hover: #3B5644; --accent-ink: #FFFFFF;
  --f1: #DFE7DE; --f2: #F1EEE6; --f3: #D6E0D7; --f4: #E9E6DD;
  --velo: rgba(236, 236, 230, 0.8);
}
/* Crema: lino, algodón, dorado suave */
[data-estilo="crema"] {
  --bg: #F4ECE3; --surface: #FAF5EF; --ink: #261D14; --muted: #554636;
  --accent: #8A6A3A; --accent-hover: #6F552E; --accent-ink: #FFFFFF;
  --f1: #EFE4D6; --f2: #F7F1E9; --f3: #E4EBE4; --f4: #EDE3DA;
  --velo: rgba(244, 236, 227, 0.74);
}

/* Fotos de fondo: tres capas fijas que se cruzan al cambiar de estilo */
.fondo-fotos { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--bg); transition: background-color 600ms ease; }
.fondo-foto {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0; transition: opacity 700ms cubic-bezier(0.23, 1, 0.32, 1);
}
.fondo-foto::after { content: ''; position: absolute; inset: 0; background: var(--velo); }
.fondo-foto[data-foto="rosa"] { background-image: url("../img/fondos/rosa.jpg"); }
.fondo-foto[data-foto="eucalipto"] { background-image: url("../img/fondos/eucalipto.jpg"); }
.fondo-foto[data-foto="crema"] { background-image: url("../img/fondos/crema.jpg"); }
:root:not([data-estilo]) .fondo-foto[data-foto="rosa"],
[data-estilo="rosa"] .fondo-foto[data-foto="rosa"],
[data-estilo="eucalipto"] .fondo-foto[data-foto="eucalipto"],
[data-estilo="crema"] .fondo-foto[data-foto="crema"] { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .fondo-foto, .fondo-fotos { transition: none; } }

/* Selector de estilo */
.estilos { display: flex; align-items: center; gap: 6px; }
.estilo {
  width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.8); /* taste-skill-ignore: borde de muestra */
  transition: transform var(--t-rapido) var(--ease-out), box-shadow var(--t-rapido) ease;
}
.estilo:active { transform: scale(0.9); }
.estilo[aria-pressed="true"] { box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px var(--ink); /* taste-skill-ignore: estado elegido */ }
@media (hover: hover) and (pointer: fine) { .estilo:hover { transform: scale(1.08); } }
.estilo[data-elegir="rosa"] { background-color: #F2CFD2; background-image: url("../img/fondos/rosa.jpg"); }
.estilo[data-elegir="eucalipto"] { background-color: #A9BDA8; background-image: url("../img/fondos/eucalipto.jpg"); }
.estilo[data-elegir="crema"] { background-color: #EADCC8; background-image: url("../img/fondos/crema.jpg"); }

/* Los colores acompañan el cambio de estilo */
.barra, .filtros, .chip, .como, .cupon, .pie-tarjeta, .especimen-tile, .podio-base, .boton, .contador, .ficha img, dialog {
  transition-property: background-color, color, transform, opacity;
  transition-duration: 500ms, 500ms, var(--t-rapido), 500ms;
  transition-timing-function: ease, ease, var(--ease-out), ease;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 0.98; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--f1); color: var(--ink); }

.oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radio); z-index: 100; }
.saltar:focus { top: 12px; }

/* ---------- Fondo: mariposas del logo ---------- */
.fondo-mariposas { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mp {
  position: absolute; left: var(--x); top: var(--y);
  width: calc(56px * var(--s)); height: calc(45px * var(--s));
  color: var(--accent); opacity: 0.13;
  animation: vuelo var(--d) cubic-bezier(0.77, 0, 0.175, 1) infinite alternate;
  will-change: transform;
}
.mp svg { width: 100%; height: 100%; display: block; fill: currentColor; transform: rotate(var(--r)); }
.mp svg { animation: aleteo var(--a) ease-in-out infinite alternate; }
@keyframes vuelo {
  0%   { transform: translate3d(0, 0, 0); }
  33%  { transform: translate3d(6vw, -5vh, 0); }
  66%  { transform: translate3d(-3vw, -11vh, 0); }
  100% { transform: translate3d(4vw, -16vh, 0); }
}
@keyframes aleteo {
  from { transform: rotate(var(--r)) scaleX(1); }
  to   { transform: rotate(var(--r)) scaleX(0.55); }
}
@media (max-width: 760px) { .mp { opacity: 0.1; } .mp:nth-child(n+5) { display: none; } }
@media (prefers-reduced-motion: reduce) { .mp, .mp svg { animation: none; } }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 0; border-radius: var(--radio);
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: background-color var(--t-rapido) ease, transform var(--t-rapido) var(--ease-out), color var(--t-rapido) ease;
  user-select: none; -webkit-user-select: none;
}
.boton:active { transform: scale(0.97); }
.boton-principal { background: var(--accent); color: var(--accent-ink); }
.boton-secundario { background: var(--surface); color: var(--ink); }
.boton-claro { background: var(--bg); color: var(--ink); }
.boton-borde { background: transparent; color: var(--accent-ink); box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7); /* taste-skill-ignore: solo en elementos flotantes */ }
.boton-ancho { width: 100%; }
.boton[aria-disabled="true"], .boton:disabled { opacity: 0.55; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .boton-principal:hover { background: var(--accent-hover); }
  .boton-secundario:hover { background: var(--f1); }
  .boton-claro:hover { background: var(--f1); }
  .boton-borde:hover { background: rgba(255,255,255,0.12); }
}
.boton-texto {
  background: none; border: 0; padding: 12px 4px; min-height: 44px;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px; width: 100%;
}

/* ---------- Barra ---------- */
.barra {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 10px var(--margen);
  padding-top: max(10px, env(safe-area-inset-top));
  background: var(--bg);
  transition: background-color var(--t-medio) ease;
}
.barra.con-fondo { background: var(--surface); }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.marca img { width: 44px; height: 44px; border-radius: 50%; mix-blend-mode: multiply; }
.marca span { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; white-space: nowrap; }
.barra-links { display: flex; gap: 28px; }
.barra-links a { text-decoration: none; font-weight: 600; padding: 10px 0; position: relative; }
.barra-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--t-medio) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .barra-links a:hover::after { transform: scaleX(1); } }
.boton-carrito {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 8px 0 18px; border: 0; border-radius: var(--radio);
  background: var(--ink); color: var(--bg); font-weight: 600;
  transition: transform var(--t-rapido) var(--ease-out);
}
.boton-carrito:active { transform: scale(0.96); }
.contador {
  min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--radio);
  display: inline-grid; place-items: center; background: var(--accent); color: #fff; font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.contador.salta { animation: salta 420ms var(--ease-out); }
@keyframes salta { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 100% { transform: scale(1); } }

/* ---------- Portada ---------- */
.portada {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 4vw, 72px);
  min-height: calc(100svh - 64px);
  padding: clamp(24px, 4vw, 56px) var(--margen) clamp(40px, 5vw, 72px);
}
.portada h1 { font-size: clamp(2.5rem, 0.5rem + 4.1vw, 4.75rem); }
.portada-bajada { margin-top: 28px; font-size: var(--step-lead); line-height: 1.45; max-width: 36ch; }
.portada-acciones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.estado-local { margin-top: 28px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.estado-local::before, .cupon-estado::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none;
}
.estado-local.abierto::before { background: #2E8B57; animation: late 2.4s ease-in-out infinite; }
.cupon-estado.abierto::before { background: #9BE3B6; animation: late 2.4s ease-in-out infinite; }
@keyframes late { 50% { transform: scale(1.5); opacity: 0.6; } }

.podio { margin: 0; display: grid; justify-items: center; gap: 18px; }
.podio-base {
  position: relative; display: block;
  width: min(100%, 560px); aspect-ratio: 1;
  border-radius: 28px; background: var(--f1);
  transition: background-color 1.6s ease;
  overflow: hidden;
}
.podio-img {
  position: absolute; inset: 12%; width: 76%; height: 76%;
  object-fit: contain; mix-blend-mode: multiply; filter: brightness(1.06) contrast(1.04);
  opacity: 0; transform: scale(0.96);
  transition: opacity 1.6s ease, transform 1.6s var(--ease-out);
}
.podio-img.es-visible { opacity: 1; transform: scale(1); }
.podio-pie { display: flex; gap: 16px; font-weight: 600; font-size: var(--step-lead); }
.podio-pie span + span { color: var(--accent); font-variant-numeric: tabular-nums; }

/* ---------- Catálogo ---------- */
.catalogo { padding: var(--hueco-seccion) var(--margen) 0; }
.catalogo-cabecera { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.catalogo h2 { font-size: var(--step-head); max-width: 14ch; }
.catalogo-nota { color: var(--muted); max-width: 32ch; text-align: right; }
.filtros {
  position: sticky; top: 64px; z-index: 10;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin: 40px calc(var(--margen) * -1) 0; padding: 12px var(--margen);
  background: var(--bg);
}
.filtros-categorias { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radio);
  background: var(--surface); font-weight: 600; font-size: 0.9375rem; white-space: nowrap;
  transition: background-color var(--t-rapido) ease, color var(--t-rapido) ease, transform var(--t-rapido) var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip.es-activo { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .chip:not(.es-activo):hover { background: var(--f1); } }
.filtros-herramientas { display: flex; gap: 8px; flex: 1 1 360px; justify-content: flex-end; }
.buscador { flex: 1 1 240px; max-width: 360px; }
.buscador input, .orden select {
  width: 100%; min-height: 44px; border: 0; border-radius: var(--radio);
  background: var(--surface); padding: 0 18px; font-size: 16px;
}
.orden select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%232B1B21' stroke-width='2'/%3E%3C/svg%3E");
  background-position: calc(100% - 16px) 50%; background-size: 12px 8px; background-repeat: no-repeat; }
.catalogo-estado { margin-top: 24px; color: var(--muted); min-height: 1.5em; }

.especimenes {
  list-style: none; margin: 16px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 12px; grid-auto-flow: dense;
}
.especimen { display: flex; flex-direction: column; min-width: 0; }
.especimen.doble { grid-column: span 2; }
.especimen-tile {
  position: relative; display: block; width: 100%; aspect-ratio: 4 / 5;
  border: 0; padding: 0; border-radius: var(--tile); overflow: hidden;
  background: var(--fondo, var(--f1));
}
.especimen-tile img {
  position: absolute; inset: 10%; width: 80%; height: 80%;
  object-fit: contain; mix-blend-mode: multiply; filter: brightness(1.06) contrast(1.04);
  transition: transform 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .especimen-tile:hover img { transform: scale(1.05); } }
.especimen-oferta {
  position: absolute; left: 12px; top: 12px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: var(--step-small);
  padding: 4px 10px; border-radius: var(--radio);
}
.especimen-agotado { position: absolute; inset: auto 12px 12px 12px; background: var(--ink); color: var(--bg); text-align: center; border-radius: var(--radio); font-weight: 600; font-size: var(--step-small); padding: 6px; }
.especimen-pie { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin-top: 12px; align-items: start; }
.especimen-nombre { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.especimen-nombre button { all: unset; cursor: pointer; }
.especimen-nombre button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.especimen-marca { grid-column: 1; color: var(--muted); font-size: 0.9375rem; }
.especimen-precio { grid-column: 1; font-weight: 700; font-variant-numeric: tabular-nums; margin-top: 4px; }
.especimen-precio s { color: var(--muted); font-weight: 400; margin-left: 6px; }
.especimen-agregar {
  grid-column: 2; grid-row: 1 / span 3; align-self: end;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: var(--ink); color: var(--bg); font-size: 1.5rem; line-height: 1;
  display: grid; place-items: center;
  transition: transform var(--t-rapido) var(--ease-out), background-color var(--t-rapido) ease;
}
.especimen-agregar:active { transform: scale(0.9); }
.especimen-agregar.hecho { background: var(--accent); }
@media (hover: hover) and (pointer: fine) { .especimen-agregar:hover { background: var(--accent); } }
.especimen-agregar:disabled { opacity: 0.35; pointer-events: none; }

.especimenes-vacio { grid-column: 1 / -1; padding: 64px 0; font-size: var(--step-lead); }

/* ---------- Cómo comprar ---------- */
.como {
  margin-top: var(--hueco-seccion); padding: clamp(56px, 7vw, 104px) var(--margen);
  background: var(--accent); color: var(--accent-ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px);
}
.como h2 { font-size: var(--step-head); max-width: 12ch; }
.como-pasos { margin: 0; padding: 0 0 0 1.4em; display: grid; gap: 28px; font-size: var(--step-lead); line-height: 1.45; }
.como-pasos li::marker { font-family: var(--display); font-weight: 800; }
.como-pasos strong { display: block; }

/* ---------- Nosotras ---------- */
.nosotras {
  padding: var(--hueco-seccion) var(--margen) 0;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start;
}
.nosotras h2 { font-size: var(--step-head); }
.nosotras-texto { display: grid; gap: 18px; max-width: 58ch; }
.nosotras-texto h2 { margin-bottom: 12px; }
.nosotras-lead { font-size: var(--step-lead); font-weight: 600; line-height: 1.4; }
.nosotras-fichas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
.ficha { display: grid; gap: 10px; }
.ficha img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--tile); background: var(--f1); }
.ficha.f4 { grid-column: 1 / -1; }
.ficha.f4 img { aspect-ratio: 2 / 1; }
.ficha span { font-weight: 600; font-size: 0.9375rem; }

/* ---------- Galería ---------- */
.galeria { padding: var(--hueco-seccion) 12px 0; }
.galeria-cabecera { display: grid; grid-template-columns: 1fr minmax(0, 32ch); gap: 24px; align-items: end; padding: 0 calc(var(--margen) - 12px) 48px; }
.galeria h2 { font-size: var(--step-head); max-width: 12ch; }
.galeria-cabecera p { font-size: var(--step-lead); line-height: 1.45; }
.galeria-hoja { columns: 4; column-gap: 8px; }
.galeria-hoja figure { margin: 0 0 20px; break-inside: avoid; }
.galeria-hoja img { width: 100%; border-radius: 8px; background: var(--surface); }
.galeria-hoja figcaption { margin-top: 8px; font-size: var(--step-small); color: var(--muted); }
.galeria-hoja .destacada { column-span: all; margin-bottom: 20px; }
.galeria-hoja .destacada img { aspect-ratio: 21 / 8; object-fit: cover; object-position: 50% 30%; }

/* ---------- Así es el local ---------- */
.recorrido {
  padding: var(--hueco-seccion) var(--margen) 0;
  display: grid; gap: clamp(28px, 3vw, 48px);
}
.recorrido-texto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 36ch) auto; gap: 16px 48px; align-items: end; }
.recorrido h2 { font-size: var(--step-head); }
.recorrido-texto p { font-size: var(--step-lead); line-height: 1.45; }
.recorrido-link { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.recorrido-fotos { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-end; gap: 8px; }
.recorrido-fotos li { flex: 1 1 0; min-width: 0; }
.recorrido-fotos li.alzada { flex: 1.9 1 0; }
.recorrido-fotos figure { margin: 0; }
.recorrido-fotos img { width: 100%; height: clamp(200px, 26vw, 360px); object-fit: cover; border-radius: var(--tile); background: var(--surface); }
.recorrido-fotos .alzada img { height: clamp(320px, 44vw, 640px); }
.recorrido-fotos figcaption { margin-top: 10px; font-size: 0.9375rem; font-weight: 600; }

/* ---------- El local ---------- */
.local { padding: var(--hueco-seccion) var(--margen) 0; display: grid; gap: 12px; }
.cupon {
  --muesca: 28px;
  position: relative;
  display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--tile);
  -webkit-mask: /* taste-skill-ignore: mascara de recorte, no se ve como degradado */ radial-gradient(circle var(--muesca) at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat,
                /* taste-skill-ignore: mascara de recorte, no se ve como degradado */ radial-gradient(circle var(--muesca) at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: /* taste-skill-ignore: mascara de recorte, no se ve como degradado */ radial-gradient(circle var(--muesca) at 46% 0, #0000 98%, #000) top / 100% 51% no-repeat,
                /* taste-skill-ignore: mascara de recorte, no se ve como degradado */ radial-gradient(circle var(--muesca) at 46% 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
}
.cupon-izq { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 20px; border-right: 5px dotted var(--bg); }
.cupon h2 { font-size: var(--step-head); }
.cupon-direccion { font-size: var(--step-lead); line-height: 1.4; font-weight: 600; }
.cupon-estado { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.cupon-estado::before { background: rgba(255,255,255,0.6); }
.cupon-der { padding: clamp(32px, 4vw, 56px); display: flex; flex-direction: column; gap: 28px; justify-content: space-between; }
.horarios { width: 100%; border-collapse: collapse; font-size: var(--step-lead); }
.horarios th { text-align: left; font-weight: 400; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.35); }
.horarios td { text-align: right; font-weight: 700; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.35); font-variant-numeric: tabular-nums; }
.horarios tr.hoy th, .horarios tr.hoy td { color: #fff; }
.cupon-acciones { display: flex; flex-wrap: wrap; gap: 12px; }
.mapa { border-radius: var(--tile); overflow: hidden; background: var(--surface); aspect-ratio: 21 / 8; }
.mapa iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Pie ---------- */
.pie { margin-top: var(--hueco-seccion); background: var(--ink); color: var(--bg); padding: 0 var(--margen) calc(32px + env(safe-area-inset-bottom)); }
.pie-tarjeta {
  position: relative; top: -1px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  background: var(--surface); color: var(--ink);
  padding: 88px clamp(28px, 5vw, 72px) 56px;
  border-radius: 0 0 var(--tile) var(--tile);
  -webkit-mask: /* taste-skill-ignore: mascara de recorte, no se ve como degradado */ radial-gradient(50px at 50px 0, #0000 98%, #000) -50px 0 / 100px 100% repeat-x;
          mask: /* taste-skill-ignore: mascara de recorte, no se ve como degradado */ radial-gradient(50px at 50px 0, #0000 98%, #000) -50px 0 / 100px 100% repeat-x;
}
.pie-mensaje { display: grid; gap: 16px; align-content: start; max-width: 42ch; }
.pie-saludo { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); letter-spacing: -0.02em; line-height: 1; }
.pie-mensaje a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.pie-datos { position: relative; display: grid; gap: 12px; align-content: start; font-size: 1.125rem; padding-top: 8px; }
.pie-datos a { text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .pie-datos a:hover { color: var(--accent); } }
.pie-redes { display: flex; flex-wrap: wrap; gap: 20px; }
.pie-redes a { text-decoration: underline; text-underline-offset: 3px; }
.pie-sello { width: 88px; height: 88px; padding: 6px; background: #fff; border-radius: 4px; transform: rotate(4deg); justify-self: end; margin-top: -40px; margin-bottom: 4px; }
.pie-imprenta { text-align: center; margin-top: 28px; font-size: var(--step-small); opacity: 0.8; }
.pie-imprenta a { color: inherit; }

/* ---------- Carrito flotante (celular) ---------- */
.carrito-flotante {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: none; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 22px; border: 0; border-radius: var(--radio);
  background: var(--ink); color: var(--bg); font-weight: 600;
  box-shadow: 0 10px 30px rgba(43, 27, 33, 0.25); /* taste-skill-ignore: solo en elementos flotantes */
  transform: translateY(0); transition: transform var(--t-medio) var(--ease-out);
}
.carrito-flotante strong { font-variant-numeric: tabular-nums; }

/* ---------- Consultas por WhatsApp ---------- */
.wa-flotante {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 29;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 16px; border-radius: var(--radio);
  background: #18763F; color: #fff; text-decoration: none; font-weight: 600;
  box-shadow: 0 10px 30px rgba(31, 138, 76, 0.3); /* taste-skill-ignore: botón flotante */
  transition: transform var(--t-medio) var(--ease-out), background-color var(--t-rapido) ease;
  animation: wa-entra 600ms var(--ease-out) 1.2s both;
}
.wa-flotante:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .wa-flotante:hover { background: #125E32; transform: translateY(-2px); } }
@keyframes wa-entra { from { opacity: 0; transform: translateY(20px) scale(0.9); } to { opacity: 1; transform: none; } }

.dp-consulta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radio);
  background: var(--f3); color: #17603A; font-weight: 600; text-decoration: none;
  transition: background-color var(--t-rapido) ease, transform var(--t-rapido) var(--ease-out);
}
.dp-consulta:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .dp-consulta:hover { background: #CFE2D5; } }

/* ---------- Diálogos ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--bg); }
dialog::backdrop { background: rgba(43, 27, 33, 0.45); }
.cerrar {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radio);
  background: var(--surface); font-weight: 600;
}

.ficha-producto {
  width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  border-radius: 20px; overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 24px 80px rgba(43, 27, 33, 0.3); /* taste-skill-ignore: solo en elementos flotantes */
}
.ficha-producto[open] { display: grid; grid-template-columns: 1fr 1fr; animation: aparece 320ms var(--ease-out); }
.ficha-producto .cerrar-form { position: absolute; right: 16px; top: 16px; z-index: 2; }
.dp-foto { position: relative; aspect-ratio: 4 / 5; background: var(--fondo, var(--f1)); }
.dp-foto img { position: absolute; inset: 10%; width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.dp-info { padding: 64px clamp(24px, 4vw, 48px) 40px; display: flex; flex-direction: column; gap: 14px; }
.dp-marca { color: var(--muted); font-weight: 600; }
.dp-info h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.02; }
.dp-precio { font-size: var(--step-lead); font-weight: 700; font-variant-numeric: tabular-nums; }
.dp-precio s { color: var(--muted); font-weight: 400; margin-left: 8px; }
.dp-desc { white-space: pre-line; }
.dp-comprar { display: flex; gap: 12px; margin-top: auto; padding-top: 16px; flex-wrap: wrap; }
.dp-comprar .boton { flex: 1 1 200px; }
.cantidad { display: inline-flex; align-items: center; background: var(--surface); border-radius: var(--radio); }
.cantidad button { width: 44px; height: 48px; border: 0; background: none; font-size: 1.375rem; border-radius: var(--radio); }
.cantidad button:active { transform: scale(0.9); }
.cantidad output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

@keyframes aparece { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes entra-lado { from { transform: translateX(100%); } to { transform: none; } }
@keyframes entra-abajo { from { transform: translateY(100%); } to { transform: none; } }

.carrito {
  margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(480px, 100vw); max-width: 100vw;
  overflow: hidden; box-shadow: -20px 0 60px rgba(43, 27, 33, 0.2); /* taste-skill-ignore: solo en elementos flotantes */
}
.carrito[open] { display: flex; flex-direction: column; animation: entra-lado 360ms var(--ease-out); }
.carrito-cabecera { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; padding-top: max(20px, env(safe-area-inset-top)); }
.carrito-cabecera h2 { font-size: 2rem; }
.carrito-paso { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 20px; }
.carrito-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.linea { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; }
.linea-foto { width: 72px; height: 88px; border-radius: 10px; background: var(--fondo, var(--f1)); position: relative; overflow: hidden; }
.linea-foto img { position: absolute; inset: 8%; width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.linea-nombre { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.linea-precio { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.linea .cantidad button { width: 38px; height: 40px; font-size: 1.125rem; }
.linea-aviso { grid-column: 2 / -1; color: var(--accent); font-size: var(--step-small); font-weight: 600; }
.linea-quitar { grid-column: 2; justify-self: start; background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; font-size: var(--step-small); min-height: 32px; }
.carrito-vacio { padding: 32px 0; font-size: var(--step-lead); }
.carrito-vacio a { color: var(--accent); font-weight: 600; }
.carrito-resumen { margin-top: auto; display: grid; gap: 10px; padding-top: 16px; position: sticky; bottom: 0; background: var(--bg); }
.fila-total { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.fila-grande { font-size: var(--step-lead); }
.fila-grande strong { font-family: var(--display); font-size: 1.75rem; letter-spacing: -0.02em; }

.checkout fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
.checkout legend { font-family: var(--display); font-weight: 800; font-size: 1.375rem; margin-bottom: 10px; letter-spacing: -0.01em; }
.checkout label { display: grid; gap: 6px; font-weight: 600; font-size: 0.9375rem; }
.checkout input:not([type=radio]), .checkout textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; font-size: 16px; font-weight: 400;
  border: 2px solid transparent; border-radius: 12px; background: var(--surface);
  transition: border-color var(--t-rapido) ease;
}
.checkout input:focus, .checkout textarea:focus { outline: none; border-color: var(--accent); }
.checkout input[aria-invalid="true"] { border-color: #C0392B; }
.opcion {
  display: flex !important; grid-template-columns: none; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 12px; background: var(--surface); cursor: pointer;
  transition: background-color var(--t-rapido) ease;
}
.opcion:has(input:checked) { background: var(--f1); }
.opcion.desactivada { opacity: 0.45; pointer-events: none; }
.opcion input { width: 22px; height: 22px; accent-color: var(--accent); flex: none; margin: 0; }
.opcion span { display: grid; gap: 2px; }
.opcion small { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.direccion { display: grid; gap: 12px; }
.error { color: #A3192F; font-weight: 600; }

.listo { justify-content: center; text-align: left; }
.listo-numero { font-family: var(--display); font-weight: 800; font-size: clamp(2.5rem, 2rem + 3vw, 3.5rem); line-height: 1; letter-spacing: -0.02em; color: var(--accent); }
.listo-pago { background: var(--f1); border-radius: var(--tile); padding: 20px; display: grid; gap: 8px; }
.listo-pago strong { font-size: 1.25rem; overflow-wrap: anywhere; }
.listo-pago button { justify-self: start; }
.listo-ayuda { color: var(--muted); font-size: 0.9375rem; }

.aviso-flotante {
  position: fixed; left: 16px; right: 16px; margin: 0 auto; width: fit-content; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--radio); font-weight: 600;
  transition: opacity var(--t-medio) ease, transform var(--t-medio) var(--ease-out);
  text-align: center;
}
.aviso-flotante.visible { opacity: 1; transform: none; }

/* ---------- Entradas al hacer scroll ---------- */
.js .revela { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .revela.visto { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .revela { opacity: 1; transform: none; transition: none; }
  .podio-img { transition: none; }
  .estado-local.abierto::before, .cupon-estado.abierto::before { animation: none; }
  .carrito[open], .ficha-producto[open] { animation: none; }
  .especimen-tile img { transition: none; }
}

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .especimenes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .galeria-hoja { columns: 3; }
  .recorrido-texto { grid-template-columns: 1fr; gap: 12px; }
}

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  html { scroll-padding-top: 128px; }
  .barra { gap: 12px; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
  .barra-links { display: none; }
  .marca span { font-size: 1.0625rem; }
  .estilos { gap: 4px; }
  .estilo { width: 30px; height: 30px; }
  .marca img { width: 38px; height: 38px; }
  .boton-carrito { padding-left: 14px; }

  .portada { grid-template-columns: 1fr; min-height: auto; padding-top: 20px; gap: 32px; }
  .portada h1 { font-size: clamp(2.1rem, 9.6vw, 3.4rem); }
  .portada-bajada { margin-top: 18px; }
  .portada-acciones { margin-top: 24px; }
  .portada-acciones .boton { flex: 1 1 140px; }
  .estado-local { margin-top: 20px; font-size: 0.9375rem; }
  .podio-base { width: 100%; border-radius: 22px; }

  .catalogo-cabecera { grid-template-columns: 1fr; }
  .catalogo-nota { text-align: left; }
  .filtros { top: 54px; flex-direction: column; flex-wrap: nowrap; align-items: stretch; padding-top: 8px; padding-bottom: 8px; margin-top: 24px; }
  .filtros-categorias { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--margen) * -1); padding: 0 var(--margen); scroll-snap-type: x proximity; overscroll-behavior-x: contain; }
  .filtros-categorias::-webkit-scrollbar { display: none; }
  .chip { scroll-snap-align: start; }
  .filtros-herramientas { flex: none; }
  .buscador { max-width: none; }
  .orden { flex: 0 0 140px; }
  .especimenes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
  .especimen-nombre { font-size: 0.9375rem; }
  .especimen-marca { font-size: 0.875rem; }
  .especimen-agregar { width: 44px; height: 44px; }

  .como { grid-template-columns: 1fr; }
  .nosotras { grid-template-columns: 1fr; }
  .recorrido-texto { grid-template-columns: 1fr; gap: 12px; }
  .recorrido-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 8px; align-items: start; }
  .recorrido-fotos li.alzada { grid-column: 1 / -1; }
  .recorrido-fotos img { height: auto; aspect-ratio: 4 / 5; }
  .recorrido-fotos .alzada img { height: auto; aspect-ratio: 4 / 4.4; }
  .recorrido-fotos li:nth-child(2) img { object-position: 30% 50%; }
  .galeria-cabecera { grid-template-columns: 1fr; padding-bottom: 28px; }
  .galeria-hoja { columns: 2; column-gap: 6px; }
  .galeria-hoja figure { margin-bottom: 14px; }
  .galeria-hoja .destacada img { aspect-ratio: 16 / 10; }

  .cupon {
    grid-template-columns: 1fr;
    -webkit-mask: none; mask: none;
  }
  .cupon-izq { border-right: 0; border-bottom: 5px dotted var(--bg); padding: 32px 24px 36px; }
  .cupon-der { padding: 36px 24px 32px; }
  .cupon-acciones .boton { flex: 1 1 100%; }
  .mapa { aspect-ratio: 4 / 5; }

  .pie-tarjeta { grid-template-columns: 1fr; gap: 32px; padding: 72px 24px 40px;
    -webkit-mask: /* taste-skill-ignore: mascara de recorte, no se ve como degradado */ radial-gradient(28px at 28px 0, #0000 98%, #000) -28px 0 / 56px 100% repeat-x;
            mask: /* taste-skill-ignore: mascara de recorte, no se ve como degradado */ radial-gradient(28px at 28px 0, #0000 98%, #000) -28px 0 / 56px 100% repeat-x; }
  .pie-sello { position: absolute; right: 0; top: -8px; width: 64px; height: 64px; margin: 0; }
  .pie-datos { font-size: 1.0625rem; }
  .pie { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

  .carrito-flotante:not([hidden]) { display: flex; }
  .wa-flotante { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: 56px; padding: 0; justify-content: center; }
  .wa-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .con-carrito .wa-flotante { bottom: calc(80px + env(safe-area-inset-bottom)); }
  .carrito-flotante.escondido { transform: translateY(calc(100% + 24px)); }

  .ficha-producto { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .ficha-producto[open] { grid-template-columns: 1fr; animation: entra-abajo 360ms var(--ease-out); }
  .dp-foto { aspect-ratio: 1; }
  .dp-info { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }

  .carrito { inset: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; }
  .carrito[open] { animation: entra-abajo 360ms var(--ease-out); }
  .carrito-cabecera { padding: 16px 20px; padding-top: max(16px, env(safe-area-inset-top)); }
  .carrito-paso { padding: 0 20px calc(20px + env(safe-area-inset-bottom)); }
}

@media (max-width: 440px) {
  .marca span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

@media (max-width: 760px) {
  [data-estilo="eucalipto"] { --velo: rgba(236, 236, 230, 0.86); }
  :root, [data-estilo="rosa"] { --velo: rgba(247, 228, 227, 0.8); }
  [data-estilo="crema"] { --velo: rgba(244, 236, 227, 0.8); }
}

/* Más contraste sobre la foto de fondo */
.portada-bajada, .catalogo-nota, .catalogo-estado, .nosotras-texto p, .galeria-cabecera p, .recorrido-texto p, .estado-local { color: var(--ink); }
.portada h1, .catalogo h2, .nosotras h2, .galeria h2, .recorrido h2 { text-shadow: 0 1px 0 var(--velo); }
.boton-secundario { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent); /* taste-skill-ignore: borde para contraste sobre foto */ }
.galeria-hoja figcaption, .ficha span, .recorrido-fotos figcaption, .especimen-marca { color: var(--ink); }
/* Vitrina de la portada: fotos y video del estilo elegido */
.vitrina {
  position: relative; width: min(100%, 560px); justify-self: center;
  aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden; background: var(--f1);
}
.vitrina-item {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transform: scale(1.04);
  transition: opacity 1.6s ease, transform 7s cubic-bezier(0.23, 1, 0.32, 1);
}
.vitrina-item.es-visible { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .vitrina-item { transition: none; transform: none; } }
@media (max-width: 760px) { .vitrina { width: 100%; border-radius: 22px; aspect-ratio: 4 / 4.6; } }
/* Nuestras instalaciones (fotos por fuera y por dentro) */
.instalaciones { padding: var(--hueco-seccion) var(--margen) 0; display: grid; gap: clamp(32px, 4vw, 56px); }
.instalaciones-cabecera { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 40ch); gap: 16px 48px; align-items: end; }
.instalaciones h2 { font-size: var(--step-head); }
.instalaciones-cabecera p { font-size: var(--step-lead); line-height: 1.45; color: var(--ink); }
.instalaciones-grupo { display: grid; gap: 16px; }
.instalaciones h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.instalaciones-fuera { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.instalaciones-dentro { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.foto-lugar { margin: 0; display: grid; gap: 10px; }
.foto-lugar img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--tile); background: var(--surface); }
.instalaciones-fuera .foto-lugar img { aspect-ratio: 4 / 3; height: 100%; }
.instalaciones-fuera .foto-lugar:not(.grande) img { aspect-ratio: auto; }
.foto-lugar figcaption { font-weight: 600; color: var(--ink); }
/* Mientras falta la foto real: recuadro con la indicación */
.foto-lugar.sin-foto img { display: none; }
.foto-lugar.sin-foto::before {
  content: attr(data-lugar); display: grid; place-items: center; text-align: center; padding: 16px;
  aspect-ratio: 4 / 5; border-radius: var(--tile);
  background: var(--surface); color: var(--muted); font-weight: 600;
}
.instalaciones-fuera .foto-lugar.grande.sin-foto::before { aspect-ratio: 4 / 3; }
.instalaciones-fuera .foto-lugar:not(.grande).sin-foto::before { aspect-ratio: auto; height: 100%; min-height: 160px; }
@media (max-width: 1080px) { .instalaciones-dentro { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .instalaciones-cabecera { grid-template-columns: 1fr; }
  .instalaciones-fuera { grid-template-columns: 1fr; }
  .instalaciones-fuera .foto-lugar:not(.grande) img, .instalaciones-fuera .foto-lugar:not(.grande).sin-foto::before { aspect-ratio: 4 / 3; height: auto; min-height: 0; }
}

/* Productos sin precio cargado */
.precio-consultar { color: var(--accent); font-weight: 600; }
.especimen-consultar { background: #18763F; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.25rem; }
@media (hover: hover) and (pointer: fine) { .especimen-consultar:hover { background: #125E32; } }

/* Logo junto a Oro Líquido en Nosotras */

/* Logo con relieve sobre fondo llamativo (Nosotras) */
.logo-escena {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--tile); overflow: hidden;
  display: grid; place-items: center; isolation: isolate;
  background: #F2C9D1 url("../img/fondos/rosa.jpg") center / cover no-repeat;
}
.logo-escena::before { /* brillo cálido detrás del logo — taste-skill-ignore: halo de luz */
  content: ''; position: absolute; inset: -10%; z-index: -1;
  background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.95) 0 22%, rgba(255,232,238,0.7) 38%, rgba(176,63,88,0.25) 70%, rgba(120,30,55,0.45) 100%);
}
.logo-escena::after { /* destellos suaves */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: radial-gradient(circle, #fff 0 1.5px, transparent 2px), radial-gradient(circle, #fff 0 1px, transparent 1.5px);
  background-size: 46px 52px, 31px 37px; background-position: 7px 11px, 19px 3px;
  mask: radial-gradient(circle at 50% 45%, transparent 30%, #000 75%); -webkit-mask: radial-gradient(circle at 50% 45%, transparent 30%, #000 75%);
}
.ficha .logo-relieve {
  width: 78%; aspect-ratio: auto; background: none; border-radius: 0; object-fit: contain;
  filter:
    drop-shadow(-1px -1px 0 rgba(255,255,255,0.9))   /* luz en el borde superior */
    drop-shadow(1.5px 2px 0 rgba(90,20,40,0.55))      /* bisel inferior */
    drop-shadow(0 10px 14px rgba(90,20,40,0.35))      /* sombra que lo despega */
    drop-shadow(0 24px 30px rgba(90,20,40,0.2));      /* taste-skill-ignore: relieve del logo */
  transform: translateZ(0);
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .ficha-logo:hover .logo-relieve { transform: translateY(-4px) scale(1.02); } }
/* El fondo del logo acompaña el estilo elegido */
[data-estilo="eucalipto"] .logo-escena { background-color: #CFDCCF; background-image: url("../img/fondos/eucalipto.jpg"); }
[data-estilo="crema"] .logo-escena { background-color: #EADCC8; background-image: url("../img/fondos/crema.jpg"); }
[data-estilo="eucalipto"] .logo-escena::before { background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.95) 0 22%, rgba(232,242,233,0.72) 38%, rgba(76,107,85,0.25) 70%, rgba(35,60,42,0.45) 100%); }
[data-estilo="crema"] .logo-escena::before { background: radial-gradient(circle at 50% 45%, rgba(255,255,255,0.95) 0 22%, rgba(250,240,226,0.72) 38%, rgba(138,106,58,0.22) 70%, rgba(90,66,30,0.4) 100%); }
.logo-escena, .logo-escena::before { transition: background-color 600ms ease; }
/* Fotos reales de producto: llenan el recuadro (antes eran recortes sobre color) */
.especimen-tile img { inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; filter: none; }
.dp-foto img { inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.linea-foto img { inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }

/* Nombres de producto en la letra de texto, más legibles en pantallas chicas */
.especimen-nombre { font-family: var(--text); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.precio-consultar { white-space: nowrap; }

@media (max-width: 760px) {
  .especimen-nombre { font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .especimen-precio { font-size: 0.9375rem; }
  .precio-consultar { font-size: 0.875rem; }
  .especimen-tile { aspect-ratio: 1 / 1.1; }
  .especimenes { gap: 24px 10px; }
  .vitrina { aspect-ratio: 4 / 4.4; }
  .portada { gap: 24px; }
  .cupon h2, .instalaciones h2, .nosotras h2, .catalogo h2 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .wa-flotante { width: 52px; min-height: 52px; }
  .especimenes { padding-bottom: 24px; }
}

/* Medios de pago en el pie */
.pie-pagos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 32px; }
.pie-pagos-titulo { font-weight: 700; }
.pie-pagos-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pie-pagos-lista li { background: rgba(255,255,255,0.1); color: var(--bg); border-radius: var(--radio); padding: 6px 14px; font-size: 0.875rem; font-weight: 600; }
/* En Finalizar pedido el resumen va al final del formulario, no fijo abajo */
.checkout .carrito-resumen { position: static; margin-top: 8px; padding-top: 20px; }

/* Cómo comprar: pasos en recuadros animados */
.como { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 48px); }
.como h2 { max-width: none; }
.como-pasos { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; font-size: var(--step-body); counter-reset: none; }
.paso {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 28px 24px 26px; border-radius: 20px;
  background: rgba(255,255,255,0.12); color: var(--accent-ink);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.22); /* taste-skill-ignore: borde del recuadro */
  transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), background-color 300ms ease;
}
.paso strong { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem); letter-spacing: -0.01em; line-height: 1.15; }
.paso span:last-child { line-height: 1.5; opacity: 0.92; }
.paso-num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-ink); color: var(--accent);
  font-family: var(--display); font-weight: 800; font-size: 1.375rem; margin-bottom: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .paso:hover { transform: translateY(-6px); background: rgba(255,255,255,0.18); }
  .paso:hover .paso-num { transform: scale(1.08) rotate(-6deg); }
}
.paso-num { transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1); }

/* entrada: los recuadros suben uno tras otro y el número hace "pop" */
.js .paso { opacity: 0; transform: translateY(28px) scale(0.97); }
.js .como.visto .paso { animation: paso-entra 700ms cubic-bezier(0.23, 1, 0.32, 1) forwards; animation-delay: calc(var(--i) * 140ms + 120ms); }
.js .como.visto .paso-num { animation: num-pop 520ms cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(var(--i) * 140ms + 420ms); }
@keyframes paso-entra { to { opacity: 1; transform: none; } }
@keyframes num-pop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .paso { opacity: 1; transform: none; }
  .js .como.visto .paso, .js .como.visto .paso-num { animation: none; }
}
@media (max-width: 760px) {
  .como-pasos { grid-template-columns: 1fr; gap: 12px; }
  .paso { padding: 22px 20px; flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  .paso-num { width: 40px; height: 40px; font-size: 1.125rem; margin: 0; }
  .paso strong { flex: 1; }
  .paso span:last-child { flex-basis: 100%; }
}
/* Cómo comprar: entrada más notoria + números que flotan */
.js .paso { opacity: 0; transform: translateY(56px) scale(0.94); }
.js .como.visto .paso { animation: paso-entra 900ms cubic-bezier(0.23, 1, 0.32, 1) forwards; animation-delay: calc(var(--i) * 220ms + 100ms); }
.js .como.visto .paso-num { animation: num-pop 600ms cubic-bezier(0.34, 1.56, 0.64, 1) both, num-flota 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * 220ms + 500ms), calc(var(--i) * 400ms + 1.4s); }
@keyframes num-flota { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@media (prefers-reduced-motion: reduce) {
  .js .paso { opacity: 1; transform: none; }
  .js .como.visto .paso, .js .como.visto .paso-num { animation: none; }
}
/* Flecha de "Cómo comprar" hacia los pasos */
.como-cabecera { display: flex; align-items: flex-start; gap: clamp(12px, 2vw, 28px); }
.como-flecha { width: clamp(180px, 22vw, 320px); height: auto; margin-top: 18px; overflow: visible; flex: none; }
.como-flecha path { fill: none; stroke: var(--accent-ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.flecha-trazo { stroke-dasharray: 360; stroke-dashoffset: 0; }
.flecha-punta { stroke-dasharray: 60; stroke-dashoffset: 0; }
.js .como .flecha-trazo { stroke-dashoffset: 360; }
.js .como .flecha-punta { stroke-dashoffset: 60; }
.js .como.visto .flecha-trazo { animation: flecha-dibuja 900ms cubic-bezier(0.65, 0, 0.35, 1) 150ms forwards; }
.js .como.visto .flecha-punta { animation: flecha-dibuja-punta 300ms ease-out 1000ms forwards; }
@keyframes flecha-dibuja { to { stroke-dashoffset: 0; } }
@keyframes flecha-dibuja-punta { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .js .como .flecha-trazo, .js .como .flecha-punta { stroke-dashoffset: 0; animation: none; }
}
@media (max-width: 760px) {
  .como-cabecera { align-items: center; }
  .como-flecha { width: 110px; margin-top: 8px; }
}.como-flecha { width: clamp(220px, 30vw, 420px); margin-top: 22px; margin-bottom: -40px; }
.como-flecha path { stroke-width: 5; }
.flecha-trazo { stroke-dasharray: 520; }
.js .como .flecha-trazo { stroke-dashoffset: 520; }
.flecha-punta { stroke-dasharray: 70; }
.js .como .flecha-punta { stroke-dashoffset: 70; }
@media (max-width: 760px) { .como-flecha { width: 120px; margin-bottom: -20px; } }
/* Flecha v3: con rulo, punta curva y nota manuscrita */
.como-flecha-caja { position: relative; flex: none; width: clamp(240px, 32vw, 460px); margin-top: 6px; margin-bottom: -56px; }
.como-flecha-caja .como-flecha { width: 100%; margin: 0; }
.como-flecha path { stroke-width: 4.5; }
.flecha-trazo { stroke-dasharray: 760; }
.js .como .flecha-trazo { stroke-dashoffset: 760; }
.flecha-punta { stroke-dasharray: 90; }
.js .como .flecha-punta { stroke-dashoffset: 90; }
.js .como.visto .flecha-trazo { animation: flecha-dibuja 1300ms cubic-bezier(0.65, 0, 0.35, 1) 150ms forwards; }
.js .como.visto .flecha-punta { animation: flecha-dibuja-punta 350ms ease-out 1400ms forwards; }
.flecha-nota {
  position: absolute; right: -4px; top: 6%;
  font-family: 'Caveat', cursive; font-weight: 600; font-size: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  color: var(--accent-ink); transform: rotate(6deg); white-space: nowrap;
}
.js .como .flecha-nota { opacity: 0; transform: rotate(6deg) translateY(6px) scale(0.9); }
.js .como.visto .flecha-nota { animation: nota-entra 500ms cubic-bezier(0.34, 1.56, 0.64, 1) 1650ms forwards; }
@keyframes nota-entra { to { opacity: 1; transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) {
  .js .como .flecha-trazo, .js .como .flecha-punta { stroke-dashoffset: 0; animation: none; }
  .js .como .flecha-nota { opacity: 1; transform: rotate(6deg); animation: none; }
}
@media (max-width: 760px) {
  .como-flecha-caja { width: 130px; margin-bottom: -24px; }
  .flecha-nota { font-size: 1rem; right: -8px; top: -14px; }
}
/* Flecha: la punta cae en el centro de la fila de pasos (posición calculada en tienda.js) */
@media (min-width: 761px) {
  .como-cabecera { position: relative; }
  .como-flecha-caja { position: absolute; left: var(--flecha-x, 50%); top: var(--flecha-y, 0px); width: var(--flecha-w, 320px); margin: 0; }
  .flecha-nota { right: auto; left: 62%; top: -2%; }
}@media (min-width: 761px) {
  .como-flecha-caja .como-flecha { transform: scaleX(-1); }
  .flecha-nota { left: auto; right: 0; top: -6%; transform: rotate(-5deg); }
  .js .como .flecha-nota { transform: rotate(-5deg) translateY(6px) scale(0.9); }
  @keyframes nota-entra-d { to { opacity: 1; transform: rotate(-5deg); } }
  .js .como.visto .flecha-nota { animation-name: nota-entra-d; }
}
/* Nota más arriba y logo arriba a la derecha de "Cómo comprar" */
@media (min-width: 761px) { .flecha-nota { top: -24%; right: 4%; } }
.como { position: relative; }
.como-logo {
  position: absolute; top: clamp(16px, 2.4vw, 32px); right: var(--margen);
  width: clamp(64px, 7vw, 104px); height: auto;
  filter: brightness(0) invert(1); opacity: 0.9; pointer-events: none;
}
@media (max-width: 760px) { .como-logo { width: 56px; top: 18px; } }
.como-logo { width: clamp(84px, 9vw, 132px); }
@media (max-width: 760px) { .como-logo { width: 60px; } }

@media (min-width: 761px) { .flecha-nota { top: 2%; right: auto; left: 22%; } }

/* Celular: misma flecha que en computadora (sale del logo y apunta al centro de los pasos) */
@media (max-width: 760px) {
  .como-cabecera { position: relative; }
  .como-flecha-caja { position: absolute; left: var(--flecha-x, 50%); top: var(--flecha-y, 0px); width: var(--flecha-w, 160px); margin: 0; }
  .como-flecha-caja .como-flecha { transform: scaleX(-1); }
  .flecha-nota { font-size: 0.95rem; top: -8%; left: 14%; right: auto; transform: rotate(-5deg); }
  .js .como .flecha-nota { transform: rotate(-5deg) translateY(6px) scale(0.9); }
  .js .como.visto .flecha-nota { animation-name: nota-entra-d; }
  .como-logo { width: 64px; }
  .como-cabecera { padding-bottom: 54px; }
}
@keyframes nota-entra-d { to { opacity: 1; transform: rotate(-5deg); } }
@media (max-width: 760px) {
  .flecha-nota { top: -38%; left: -12%; font-size: 1rem; }
  .como-cabecera { padding-bottom: 62px; }
}
/* Celular: diseño original de "Cómo comprar", solo con la flecha dada vuelta */
@media (max-width: 760px) {
  .como-cabecera { position: static; padding-bottom: 0; align-items: center; }
  .como-flecha-caja { position: relative; left: auto; top: auto; width: 130px; margin: 8px 0 -24px; }
  .como-flecha-caja .como-flecha { transform: scaleX(-1); }
  .flecha-nota { top: -14px; right: -8px; left: auto; font-size: 1rem; }
  .como-logo { width: 60px; top: 18px; right: var(--margen); left: auto; }
}
@media (max-width: 760px) {
  .como-flecha-caja { width: 96px; flex: none; }
  .como-cabecera { gap: 8px; }
  .flecha-nota { top: auto; bottom: -6px; right: auto; left: -64px; font-size: 0.95rem; }
}

@media (max-width: 760px) {
  .como h2 { white-space: nowrap; font-size: clamp(1.75rem, 8vw, 2.5rem); }
  .como-flecha-caja { z-index: 2; margin-bottom: -18px; }
}

@media (max-width: 760px) {
  .como h2 { font-size: clamp(1.6rem, 7.4vw, 2.5rem); }
  .como-flecha-caja { width: 118px; }
  .flecha-nota { left: -70px; bottom: -10px; }
}

/* Celular: título en dos renglones, flecha inclinada hacia el logo y nota arriba a la izquierda */
@media (max-width: 760px) {
  .como h2 { white-space: normal; font-size: clamp(2rem, 9vw, 2.5rem); }
  .como-cabecera { align-items: flex-end; }
  .como-flecha-caja { width: 132px; margin: 0 0 -20px; }
  .como-flecha-caja .como-flecha { transform: rotate(-24deg) scaleX(-1); transform-origin: 50% 50%; }
  .flecha-nota { top: -26px; bottom: auto; left: -18px; right: auto; font-size: 1rem; }
}
@media (max-width: 760px) { .como-flecha-caja { translate: -18px -4px; } }

/* ===== Celular: flecha dibujada que sale del logo (como el boceto) ===== */
.flecha-celu, .nota-celu { display: none; }
@media (max-width: 760px) {
  .como-flecha-caja { display: none; }
  .como-cabecera { padding-bottom: 0; }
  .flecha-celu {
    display: block; position: absolute; overflow: visible; pointer-events: none;
    left: var(--fc-x, 0); top: var(--fc-y, 0); width: var(--fc-w, 120px); height: var(--fc-h, 110px);
  }
  .flecha-celu path { fill: none; stroke: var(--accent-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
  .fc-trazo, .fc-punta { stroke-dasharray: 1; stroke-dashoffset: 0; }
  .js .como .fc-trazo, .js .como .fc-punta { stroke-dashoffset: 1; }
  .js .como.visto .fc-trazo { animation: fc-dibuja 1100ms cubic-bezier(0.65, 0, 0.35, 1) 200ms forwards; }
  .js .como.visto .fc-punta { animation: fc-dibuja 300ms ease-out 1250ms forwards; }
  .nota-celu {
    display: block; position: absolute; left: var(--nc-x, 0); top: var(--nc-y, 0);
    font-family: 'Caveat', cursive; font-weight: 600; font-size: 1.05rem; color: var(--accent-ink);
    white-space: nowrap; transform: rotate(-5deg); transform-origin: right bottom;
  }
  .js .como .nota-celu { opacity: 0; }
  .js .como.visto .nota-celu { animation: nc-entra 450ms ease-out 1500ms forwards; }
}
@keyframes fc-dibuja { to { stroke-dashoffset: 0; } }
@keyframes nc-entra { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .js .como .fc-trazo, .js .como .fc-punta { stroke-dashoffset: 0; animation: none; }
  .js .como .nota-celu { opacity: 1; animation: none; }
}
@media (max-width: 760px) {
  .como h2 { max-width: 6.2ch; white-space: normal; font-size: clamp(2.1rem, 10vw, 2.6rem); }
  .como { padding-top: 64px; }
}
