/* Santinoski — CSS compartido
   Concepto: "La tirita: Santino huele, anota y te lo cuenta en subtítulos."
   Paleta v2 (boutique oscura): Frasco #120D0A · Papel #F2E9DA · Esencia #C98A3A · Humo #8F8475
   (reemplaza a la paleta clara v1: Secante/Tinta oud/Subtítulo/Lápiz — ver bitácora).
   Tipografía: Gloock (display) + Rethink Sans (texto/subtítulos), autohospedadas.
*/

@font-face {
  font-family: "Gloock";
  src: url("../fonts/gloock-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Gloock";
  src: url("../fonts/gloock-latin-ext.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+A720-A7FF;
}
@font-face {
  font-family: "Rethink Sans";
  src: url("../fonts/rethink-sans-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Rethink Sans";
  src: url("../fonts/rethink-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+1E00-1EFF, U+2020, U+A720-A7FF;
}

:root {
  --frasco: #120D0A;
  --papel: #F2E9DA;
  --esencia: #C98A3A;
  --humo: #8F8475;
  --radio: 0px;
  --ancho-lectura: 1200px;
  --gutter: 20px;
  --font-display: "Gloock", "Georgia", serif;
  --font-texto: "Rethink Sans", system-ui, -apple-system, sans-serif;
  /* Curvas con carácter (no el "ease" plano del navegador) para hovers y entradas. */
  --ease-salida: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-vaiven: cubic-bezier(0.77, 0, 0.175, 1);
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--frasco);
  color: var(--papel);
  font-family: var(--font-texto);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
@media (min-width: 1024px) {
  body { font-size: 18px; line-height: 1.6; }
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

:focus-visible {
  outline: 2px solid var(--papel);
  outline-offset: 2px;
}
.btn-tinta:focus-visible,
.btn-tinta:focus {
  outline: 2px solid var(--frasco);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--esencia);
}

.envoltorio {
  max-width: var(--ancho-lectura);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 10vw, 7.25rem); letter-spacing: -0.02em; line-height: 0.94; }
h2 { font-size: clamp(1.8rem, 6vw, 3rem); letter-spacing: -0.015em; line-height: 1.04; }
h3 { font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.08; }

.lapiz { color: var(--humo); }
.meta {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--humo);
}
.etiqueta {
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--papel);
}

/* Subtítulo: la voz de Santino, resaltada palabra por palabra */
.subtitulo {
  font-family: var(--font-texto);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
}
@media (min-width: 1024px) {
  .subtitulo { font-size: 1.75rem; }
}
.subtitulo .palabra {
  display: inline;
  opacity: 0;
  transform: scale(0.92);
}
.subtitulo.resaltado-visible .palabra,
.subtitulo .palabra.ya {
  opacity: 1;
  transform: scale(1);
  transition: opacity 90ms ease-out, transform 90ms ease-out;
}
/* Esencia (dorado) como resaltado: el texto que va encima tiene que ser oscuro (Frasco)
   para mantener contraste, nunca Papel (claro sobre claro). */
h1 mark {
  background: var(--esencia);
  color: var(--frasco);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.08em;
}
.subtitulo mark,
.subtitulo .resalte {
  background: var(--esencia);
  color: var(--frasco);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.12em;
}
.subtitulo mark,
.subtitulo .resalte { opacity: 0; }
.subtitulo.resaltado-visible mark,
.subtitulo.resaltado-visible .resalte,
.subtitulo .resalte.ya { opacity: 1; transition: opacity 120ms ease-out; }

@media (prefers-reduced-motion: reduce) {
  .subtitulo .palabra,
  .subtitulo mark,
  .subtitulo .resalte { opacity: 1 !important; transform: none !important; }
}
/* Sin JS: mismo criterio que .no-js .reveal, el texto no puede depender del
   IntersectionObserver para existir visualmente. */
.no-js .subtitulo .palabra,
.no-js .subtitulo mark,
.no-js .subtitulo .resalte { opacity: 1; transform: none; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 14px 24px;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radio);
  border: 1px solid var(--esencia);
}
/* Botón principal: ahora dorado (Esencia) con texto oscuro (Frasco) encima — el líquido
   del frasco a trasluz, no un bloque oscuro sobre fondo claro como en la v1. */
.btn-tinta {
  background: var(--esencia);
  color: var(--frasco);
  transition: transform 180ms var(--ease-salida), background 160ms ease, box-shadow 180ms var(--ease-salida);
}
@media (hover: hover) and (pointer: fine) {
  .btn-tinta:hover { background: #e0a456; transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(201, 138, 58, 0.45); }
}
.btn-tinta:active { transform: scale(0.98); }
.btn-ancho { width: 100%; min-height: 52px; }
.btn-texto {
  border: none;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--esencia);
  text-underline-offset: 3px;
}
.btn-resalte {
  background: var(--esencia);
  color: var(--frasco);
  border: 1px solid var(--esencia);
}

/* Header fijo */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 56px;
  display: flex;
  align-items: center;
  background: var(--frasco);
  border-bottom: 1px solid rgba(242, 233, 218, 0.14);
}
@media (min-width: 1024px) { .header { height: 64px; } }
.header .envoltorio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.marca-wordmark {
  font-family: var(--font-display);
  font-size: 1.4rem;
  white-space: nowrap;
  color: var(--papel);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
@media (max-width: 399px) {
  .header-nav { gap: 10px; }
  .header-nav .texto-pedido { display: none; }
}
.header-nav a, .header-nav button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  font-size: 0.9375rem;
}
.contador-pedido {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  margin-left: 6px;
  background: var(--esencia);
  color: var(--frasco);
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 999px;
  transition: transform 200ms ease;
}
.contador-pedido.pulso { transform: scale(1.15); }
.icono-wa {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icono-wa svg { width: 22px; height: 22px; }

main { padding-top: 56px; }
@media (min-width: 1024px) { main { padding-top: 64px; } }
main.fade-in { animation: fadeMain 150ms ease both; }
@keyframes fadeMain { from { opacity: 0; } to { opacity: 1; } }

/* Secciones / reveals. Ritmo vertical: no todas las secciones respiran igual — las de
   catálogo/condiciones son más compactas, las de cierre/marca más generosas. */
.seccion { padding: 56px 0; }
@media (min-width: 1024px) { .seccion { padding: 96px 0; } }
.seccion-chica { padding: 40px 0; }
@media (min-width: 1024px) { .seccion-chica { padding: 56px 0; } }
.seccion-grande { padding: 64px 0; }
@media (min-width: 1024px) { .seccion-grande { padding: 128px 0; } }
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
/* Sin JS (bloqueado o con error), el contenido no puede depender del IntersectionObserver
   para hacerse visible: se muestra directo. */
.no-js .reveal { opacity: 1; transform: none; }

/* La tirita (elemento base): tarjeta oscura con borde fino dorado, como la etiqueta de
   un frasco de nicho visto a contraluz. */
.tirita {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--frasco);
  border: 1px solid var(--esencia);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 50% 100%, 0 calc(100% - 18px));
  padding-bottom: 18px;
  overflow: hidden;
  transition: transform 280ms var(--ease-salida), box-shadow 280ms var(--ease-salida);
}
@media (hover: hover) and (pointer: fine) {
  .tirita:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px -14px rgba(201, 138, 58, 0.4), 0 6px 14px rgba(0, 0, 0, 0.35);
  }
  .tirita:hover .tirita-foto img { transform: scale(1.04); }
}
.tirita-foto {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Degradado sutil en vez de un papel plano: integra mejor la foto de estudio (fondo
     claro de la tienda) con el marco oscuro, en lugar de un rectángulo claro "pegado". */
  background: linear-gradient(160deg, #fbf6ec 0%, #ecdfc7 100%);
  box-shadow:
    inset 0 20px 26px -22px rgba(18, 13, 10, 0.4),
    inset 0 -20px 26px -22px rgba(18, 13, 10, 0.4);
  overflow: hidden;
}
/* Las fotos reales son fichas de producto fotografiadas sobre fondo claro (su propia
   tienda): se dejan ocupar el marco entero en vez de encimarlas, como se hacía con las
   siluetas SVG de la v1. El zoom leve al hover solo anima transform (ver arriba). */
.tirita-foto img { width: 100%; height: 100%; object-fit: contain; transition: transform 320ms var(--ease-salida); }
@media (prefers-reduced-motion: reduce) {
  .tirita, .tirita-foto img { transition: none !important; transform: none !important; }
}
.tirita-info { padding: 12px 14px 14px; }
.tirita-nombre {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.05;
  margin-bottom: 4px;
  color: var(--papel);
}
.tirita-marca { font-size: 0.8125rem; margin-bottom: 6px; }
.tirita-familia { font-size: 0.8125rem; margin-bottom: 6px; }
.tirita-precio { font-weight: 800; font-size: 1rem; margin-top: 4px; color: var(--esencia); }
.tirita-precio.pendiente { font-weight: 800; font-size: 0.875rem; color: var(--humo); }
.tirita-subtitulo { margin-top: 8px; font-size: 1rem; }

.mancha {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--esencia);
  opacity: 0;
  transform: translateX(-50%) scale(0);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), opacity 280ms cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.tirita.mojada .mancha { opacity: 0.9; transform: translateX(-50%) scale(1); }

.velo-notas {
  position: absolute;
  inset: 0;
  background: rgba(18, 13, 10, 0.92);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.tirita.mojada .velo-notas { opacity: 1; pointer-events: auto; }
.velo-notas .renglon {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--humo);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 180ms ease, transform 180ms ease;
}
.tirita.mojada .velo-notas .renglon { opacity: 1; transform: translateY(0); }
.tirita.mojada .velo-notas .renglon:nth-child(1) { transition-delay: 0ms; }
.tirita.mojada .velo-notas .renglon:nth-child(2) { transition-delay: 60ms; }
.tirita.mojada .velo-notas .renglon:nth-child(3) { transition-delay: 120ms; }
.velo-notas .renglon b { color: var(--papel); font-weight: 800; }
.velo-notas .ver-tienda-link,
.velo-notas .ver-ficha {
  margin-top: 8px;
  font-weight: 800;
  font-size: 0.8125rem;
  text-decoration: underline;
  color: var(--esencia);
}

.frasco-pendiente {
  position: absolute;
  bottom: 6px;
  left: 6px;
  right: 6px;
  font-size: 0.6875rem;
  color: var(--humo);
  text-align: center;
}

/* Grillas de tiritas */
.grilla-tiritas {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 640px) {
  .grilla-tiritas { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .grilla-tiritas { grid-template-columns: repeat(4, 1fr); }
}
.grilla-tiritas.tres { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .grilla-tiritas.tres { grid-template-columns: repeat(3, 1fr); } }

/* Botón "Cargar más perfumes" (paginación en cliente del catálogo de 722) */
.cargar-mas-envoltorio {
  display: flex;
  justify-content: center;
  margin: 32px 0 8px;
}

/* WhatsApp flotante: acción, por eso lleva el acento dorado igual que el botón principal.
   La respiración vive en un hijo (.wa-respira) para no pelear con la transición de
   aparecer/ocultarse del botón, que también anima transform. */
.wa-flotante {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 400;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--esencia);
  color: var(--frasco);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 200ms ease, transform 200ms ease;
}
.wa-flotante svg { width: 26px; height: 26px; }
.wa-flotante.oculto { opacity: 0; transform: translateY(12px); pointer-events: none; }
.wa-respira {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  animation: waRespira 2600ms ease-in-out infinite;
}
@keyframes waRespira {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.wa-flotante.oculto .wa-respira { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .wa-respira { animation: none; }
}

/* Brillo que sigue el cursor: la esencia/aroma que se nota aunque no se vea. Un único
   ::before por zona, posición controlada por JS vía --mx/--my (rAF, nunca en cada
   mousemove), opacity bajísima para que acompañe sin competir con el contenido. */
.brillo-cursor {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.brillo-cursor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--esencia) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0;
  transform: translate3d(var(--mx, -9999px), var(--my, -9999px), 0);
  transition: opacity 400ms ease;
}
.brillo-cursor.activo::before { opacity: 0.12; }
@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .brillo-cursor { display: none; }
}
.seccion-brillo { position: relative; overflow: hidden; }
.seccion-brillo > .envoltorio { position: relative; z-index: 1; }

/* Pie: mismo fondo Frasco que el resto del sitio (modo oscuro coherente, no una franja
   clara), separado por un borde superior fino en Papel translúcido. */
.pie {
  background: var(--frasco);
  color: var(--papel);
  padding: 48px 0 100px;
  border-top: 1px solid rgba(242, 233, 218, 0.14);
}
.pie a { text-decoration: underline; text-decoration-color: var(--esencia); }
.pie .lapiz { color: var(--humo); }

/* Franja condiciones */
.condiciones {
  border-top: 1px solid rgba(242, 233, 218, 0.15);
  border-bottom: 1px solid rgba(242, 233, 218, 0.15);
  padding: 20px 0;
}
.condiciones ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 800;
  font-size: 1rem;
}
@media (min-width: 768px) {
  .condiciones ul { flex-direction: row; justify-content: center; gap: 28px; }
}
.condiciones ul li::before { content: "·"; margin-right: 8px; color: var(--humo); }
.condiciones ul li:first-child::before { content: ""; margin-right: 0; }
.condiciones p { margin: 10px 0 0; text-align: center; }

/* Para cuándo lo querés */
.palabras-grandes {
  display: flex;
  flex-wrap: wrap;
  gap: 0 14px;
}
.palabras-grandes a {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 6vw, 2rem);
  padding: 4px 0;
}
.palabras-grandes a:hover,
.palabras-grandes a:focus-visible {
  background: var(--esencia);
  color: var(--frasco);
}
.separador-punto { color: var(--humo); font-family: var(--font-display); font-size: clamp(1.6rem, 6vw, 2rem); }

/* Por tipo */
.fila-tipo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(242, 233, 218, 0.15);
}
.fila-tipo:first-child { border-top: 1px solid rgba(242, 233, 218, 0.15); }
.fila-tipo a { display: block; }
.fila-tipo h3 { display: inline; }

/* Instagram */
.marcos-ig {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.marco-ig {
  aspect-ratio: 9/16;
  border: 1px solid var(--esencia);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--humo);
}

/* Hero */
.hero {
  padding: 88px 0 56px;
}
@media (min-width: 1024px) { .hero { padding: 140px 0 96px; } }
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1024px) {
  .hero-grid { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; }
  .hero-texto { flex: 1 1 55%; }
  .hero-visual { flex: 1 1 40%; }
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 28px; }
.hero-subtitulo { margin-top: 18px; max-width: 46ch; }

.abanico {
  position: relative;
  display: flex;
  justify-content: center;
  height: 300px;
  margin-bottom: 8px;
}
.abanico .tirita {
  position: absolute;
  width: 150px;
}
.abanico .tirita.t1 { transform: rotate(-6deg) translateX(-60px); z-index: 1; }
.abanico .tirita.t2 { transform: rotate(0deg); z-index: 2; }
.abanico .tirita.t3 { transform: rotate(5deg) translateX(60px); z-index: 1; }

/* Mobile: el abanico de 3 tiritas rotadas (150px) no entra con el nombre completo del
   perfume y se corta/superpone. Se deja solo la tirita central, como anticipa
   santinoski-direccion.md §6 ("primer candidato a sacar es el abanico rotado del hero,
   dejar 1 tirita"). */
@media (max-width: 639px) {
  .abanico { height: auto; }
  .abanico .tirita.t1, .abanico .tirita.t3 { display: none; }
  .abanico .tirita.t2 {
    position: relative;
    transform: none;
    width: min(220px, 70vw);
    margin: 0 auto;
  }
}

.reel-marco {
  aspect-ratio: 9/16;
  max-width: 280px;
  margin: 0 auto;
  border: 1px solid var(--esencia);
  background: var(--frasco);
  color: var(--papel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.reel-marco .subtitulo { color: var(--papel); text-align: center; }
.reel-marco .subtitulo mark,
.reel-marco .subtitulo .resalte { color: var(--frasco); }

/* Quienes somos */
.quienes-somos p { max-width: 62ch; margin: 0 0 16px; }

/* Como se compra */
.pasos {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 768px) { .pasos { flex-direction: row; } }
.paso { flex: 1; }
.paso .numero { font-family: var(--font-display); font-size: 2rem; display: block; margin-bottom: 6px; color: var(--esencia); }

/* Catálogo */
.catalogo-header { padding: 28px 0 16px; }
.contador-catalogo { margin-top: 6px; }
.filtros-escritorio {
  display: none;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(242, 233, 218, 0.15);
  border-bottom: 1px solid rgba(242, 233, 218, 0.15);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
@media (min-width: 1024px) { .filtros-escritorio { display: flex; } }
.grupo-filtro { display: flex; flex-direction: column; gap: 6px; }
.grupo-filtro .etiqueta-grupo { font-size: 0.8125rem; color: var(--humo); font-weight: 500; }
.opciones-filtro { display: flex; gap: 10px; flex-wrap: wrap; }
.opcion-filtro {
  font-weight: 800;
  font-size: 0.875rem;
  text-decoration: underline;
  padding: 2px 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: background 160ms ease, color 160ms ease;
}
.opcion-filtro[aria-pressed="true"] { background: var(--esencia); color: var(--frasco); text-decoration: none; }
.buscador {
  margin-bottom: 20px;
}
.buscador input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--esencia);
  background: var(--frasco);
  padding: 10px 14px;
  font-family: var(--font-texto);
  font-size: 1rem;
  color: var(--papel);
  border-radius: 0;
}
.buscador input::placeholder { color: var(--humo); }

.btn-filtrar-celu {
  display: inline-flex;
  margin-bottom: 16px;
}
@media (min-width: 1024px) { .btn-filtrar-celu { display: none; } }

.hoja-filtros {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0, 0, 0, 0.6);
  display: none;
}
.hoja-filtros.abierta { display: block; }
.hoja-filtros .panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--frasco);
  border-top: 1px solid var(--esencia);
  padding: 20px var(--gutter) 24px;
}
.hoja-filtros .cerrar-hoja {
  display: block;
  margin: 0 0 16px auto;
  font-weight: 800;
  min-height: 44px;
}

.estado-vacio {
  text-align: center;
  padding: 48px 20px;
  grid-column: 1 / -1;
}
.estado-vacio .subtitulo { margin-bottom: 20px; display: block; }

/* Ficha de producto */
.volver {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  margin: 20px 0;
  text-decoration: underline;
  text-decoration-color: var(--esencia);
}
.ficha-grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1024px) {
  .ficha-grid { flex-direction: row; align-items: flex-start; gap: 56px; }
  .ficha-foto { flex: 1 1 45%; position: sticky; top: 88px; }
  .ficha-info { flex: 1 1 50%; }
}
.ficha-foto-marco {
  aspect-ratio: 4/5;
  border: 1px solid var(--esencia);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fbf6ec 0%, #ecdfc7 100%);
  box-shadow:
    0 28px 54px -20px rgba(201, 138, 58, 0.3),
    0 10px 24px rgba(0, 0, 0, 0.4),
    inset 0 20px 30px -24px rgba(18, 13, 10, 0.4),
    inset 0 -20px 30px -24px rgba(18, 13, 10, 0.4);
  overflow: hidden;
}
.ficha-foto-marco img { width: 100%; height: 100%; object-fit: contain; }
.ficha-nombre { font-size: clamp(2.2rem, 7vw, 4rem); margin: 6px 0 4px; color: var(--papel); }
.ficha-concentracion { margin-bottom: 20px; }

.la-posta {
  background: rgba(201, 138, 58, 0.1);
  border-left: 3px solid var(--esencia);
  color: var(--papel);
  padding: 20px;
  margin: 20px 0;
}
.la-posta .subtitulo { color: var(--papel); }
.la-posta .subtitulo mark,
.la-posta .subtitulo .resalte { color: var(--frasco); }
.la-posta .reel-link,
.la-posta .ver-tienda-link { margin-top: 10px; display: inline-block; font-weight: 800; text-decoration: underline; color: var(--esencia); }

.precio-bloque { margin: 20px 0; }
.precio-lista { text-decoration: line-through; color: var(--humo); margin-right: 10px; }
.precio-off {
  background: var(--esencia);
  color: var(--frasco);
  padding: 2px 6px;
  font-weight: 800;
  font-size: 0.8125rem;
  margin-right: 10px;
}
.precio-final { font-family: var(--font-display); font-size: 2rem; color: var(--esencia); }
.precio-detalle { margin-top: 6px; color: var(--humo); font-size: 0.9375rem; }
.precio-pendiente {
  background: rgba(242, 233, 218, 0.06);
  border: 1px solid var(--esencia);
  color: var(--papel);
  padding: 14px 16px;
  font-weight: 800;
}
.precio-simple { font-family: var(--font-display); font-size: 2.25rem; color: var(--esencia); }

.selector-ml { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.selector-ml button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--esencia);
  color: var(--papel);
}
.selector-ml button[aria-pressed="true"] { background: var(--esencia); color: var(--frasco); }

.acciones-ficha { display: flex; flex-direction: column; gap: 12px; margin: 20px 0; }
.link-tienda { text-align: center; }

.sumado-ok { position: relative; }

.tira-piramide {
  margin: 32px 0;
}
.tira-piramide .familia { margin-bottom: 10px; }
.tira-linea {
  position: relative;
  height: 2px;
  background: var(--esencia);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms ease-out;
  margin-bottom: 14px;
}
.tira-linea.visible { transform: scaleX(1); }
.tramos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .tramos { flex-direction: row; }
  .tramo { flex: 1; }
}
.tramo { opacity: 0; transition: opacity 300ms ease; }
.tramo.visible { opacity: 1; }
.tramo .etiqueta { display: block; margin-bottom: 6px; color: var(--esencia); }
.tramo .tiempo { font-size: 0.75rem; }
.tramo .ver-tienda-link { color: var(--esencia); font-weight: 800; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .tira-linea, .tramo { opacity: 1 !important; transform: none !important; transition: none !important; }
}

.cuando-usar { margin: 24px 0; }
.cuando-usar a { text-decoration: underline; font-weight: 800; color: var(--esencia); }

.similares { margin-top: 48px; }

/* Pedido */
.pedido-lista { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.item-pedido {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--esencia);
  padding: 14px;
}
.item-pedido img { width: 56px; height: 70px; object-fit: contain; flex-shrink: 0; background: var(--papel); }
.item-pedido .datos { flex: 1; min-width: 0; }
.item-pedido .nombre { font-family: var(--font-display); font-size: 1.125rem; color: var(--papel); }
.cantidad-control { display: flex; align-items: center; gap: 10px; }
.cantidad-control button {
  width: 44px; height: 44px;
  border: 1px solid var(--esencia);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--papel);
}
.quitar-item { text-decoration: underline; font-weight: 800; font-size: 0.875rem; white-space: nowrap; color: var(--humo); }

.preguntas-pedido { display: flex; flex-direction: column; gap: 24px; margin: 32px 0; }
.pregunta label.titulo { display: block; font-weight: 800; margin-bottom: 10px; }
.opciones-pregunta { display: flex; flex-wrap: wrap; gap: 10px; }
.opcion-boton {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--esencia);
  color: var(--papel);
  transition: background 160ms ease, color 160ms ease;
}
.opcion-boton[aria-pressed="true"] { background: var(--esencia); color: var(--frasco); }
.campo-texto {
  margin-top: 10px;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--esencia);
  background: var(--frasco);
  padding: 10px 14px;
  font-family: var(--font-texto);
  font-size: 1rem;
  color: var(--papel);
}

.aviso-envio-gratis {
  background: var(--esencia);
  color: var(--frasco);
  padding: 10px 14px;
  font-weight: 800;
  margin: 16px 0;
}

.preview-mensaje {
  background: rgba(242, 233, 218, 0.04);
  border: 1px solid var(--esencia);
  color: var(--papel);
  padding: 18px;
  white-space: pre-wrap;
  font-family: var(--font-texto);
  font-size: 0.9375rem;
  margin: 24px 0;
}

.acciones-pedido { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.copiado-ok { font-weight: 800; color: var(--esencia); }

.pedido-vacio { text-align: center; padding: 48px 20px; }

/* Toast tipo subtítulo */
.toast-subtitulo {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translate(-50%, 12px);
  background: var(--frasco);
  color: var(--papel);
  border: 1px solid var(--esencia);
  padding: 12px 20px;
  font-weight: 800;
  font-size: 1rem;
  z-index: 700;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
  pointer-events: none;
  max-width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.toast-subtitulo mark, .toast-subtitulo .resalte { background: var(--esencia); color: var(--frasco); padding: 0 0.12em; }
.toast-subtitulo.visible { opacity: 1; transform: translate(-50%, 0); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-intro {
  position: fixed;
  z-index: 100000;
  right: 16px;
  bottom: 16px;
  min-height: 44px;
  padding: 0 18px;
  background: var(--frasco);
  color: var(--papel);
  border: 1px solid var(--esencia);
  font-weight: 800;
  font-size: 0.875rem;
}
