/* fuentes: inicio — lo escribe scripts/fuentes.py */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('/assets/fuentes/bricolage-grotesque-600-800-latin.9b03f9ff.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Figtree'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fuentes/figtree-400-700-latin.57fd1acf.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque Respaldo'; src: local('Arial'); size-adjust: 109.2%; ascent-override: 85.1%; descent-override: 24.7%; line-gap-override: 0.0%; }
@font-face { font-family: 'Figtree Respaldo'; src: local('Arial'); size-adjust: 97.4%; ascent-override: 97.5%; descent-override: 25.7%; line-gap-override: 0.0%; }
/* fuentes: fin */

/* sitio.css — el diseño de ESTE sitio: tokens del contrato de la fase 1, tipografía, layout,
   componentes y movimiento. base.css ya resolvió el piso técnico; no se repite acá.

   Obligatorio definir:
     --alto-cabecera   alto real de la cabecera fija (base.css lo usa para que el foco y los
                       anclas no queden tapados — WCAG 2.4.11).
   Fuentes: WOFF2 propias en /assets/fuentes/, @font-face con font-display: swap y un
   fallback con size-adjust para que no salte el layout; la del titular del hero, precargada
   en el <head> de la portada con <link rel="preload" as="font" type="font/woff2" crossorigin>.
   Animaciones de scroll: las reglas con animation-timeline van bajo html.sd, no solo bajo
   @supports (fase 3, "Probalo de verdad"). */

:root {
  --alto-cabecera: 4.5rem;
}

/* ═══ Artopia — sistema: muestras de color sobre papel ═══
   Paleta sobria: neutros cálidos (papel, piedra, grafito, tinta) y UN acento, el dorado del
   logo, solo para la acción principal sobre fondo oscuro, el carrito con productos y ofertas.
   Los nombres viejos (--coral, --azul…) quedan como alias neutros para no romper reglas. */
:root {
  --papel: #f3f1ed;
  --papel-2: #e8e5df;
  --piedra: #d9d5cc;
  --tinta: #151412;
  --tinta-2: #57524a;
  --grafito: #26241f;
  --oro: #f6b917;
  --coral: var(--oro);
  --amarillo: var(--papel-2);
  --azul: var(--grafito);
  --violeta: var(--tinta);
  --verde: var(--piedra);
  --menta: var(--papel-2);
  --r: 16px;
  --r-pastilla: 44px;
  --gap: 8px;
  --margen: clamp(1rem, 4vw, 3rem);
  --ancho: 84rem;
  --alto-cabecera: 4.5rem;
  --f-display: 'Bricolage Grotesque', 'Bricolage Grotesque Respaldo', sans-serif;
  --f-texto: 'Figtree', 'Figtree Respaldo', sans-serif;
  color-scheme: light;
}

body {
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .2em; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: .98; letter-spacing: -.035em; margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
.nosotros :focus-visible, .pie :focus-visible, .hero :focus-visible, .banner :focus-visible, .c-azul :focus-visible, .c-violeta :focus-visible { outline-color: var(--papel); }

/* Colores de categoría (fondo + texto medido AA) */
.c-azul { --bg: var(--azul); --fg: var(--papel); }
.c-violeta { --bg: var(--violeta); --fg: var(--papel); }
.c-verde { --bg: var(--verde); --fg: var(--tinta); }
.c-menta { --bg: var(--menta); --fg: var(--tinta); }
.c-amarillo { --bg: var(--amarillo); --fg: var(--tinta); }
.c-papel { --bg: var(--papel-2); --fg: var(--tinta); }
.muestra { background: var(--bg, var(--papel-2)); color: var(--fg, var(--tinta)); }

.envoltura { width: min(100% - 2 * var(--margen), var(--ancho)); margin-inline: auto; }

/* ── Cabecera ── */
.cabecera {
  position: sticky; top: 0; z-index: 800;
  min-height: var(--alto-cabecera);
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding: 0 var(--margen);
  background: var(--tinta);
  color: var(--papel);
  border-bottom: 1px solid var(--tinta);
}
.cabecera-marca { margin-right: auto; display: flex; align-items: center; min-height: var(--alto-cabecera); }
.cabecera-marca img { height: 48px; width: auto; }
.carrito-enlace, .menu-boton {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--papel); border-radius: var(--r-pastilla);
  background: transparent; color: var(--papel);
  font: 600 .95rem/1 var(--f-texto); text-decoration: none;
}
.cabecera :focus-visible { outline-color: #fff; }
.carrito-n {
  display: inline-grid; place-items: center; min-width: 1.5rem; height: 1.5rem; padding-inline: .35rem;
  border-radius: 1rem; background: var(--papel); color: var(--tinta); font-size: .8rem;
}
.carrito-enlace[aria-current="page"], .carrito-enlace.tiene { background: var(--coral); border-color: var(--coral); color: var(--tinta); }
.carrito-enlace.rebota .carrito-n { animation: rebote .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes rebote { 40% { transform: scale(1.2); } }
.menu-boton:hover, .carrito-enlace:hover { background: var(--amarillo); border-color: var(--amarillo); color: var(--tinta); }
.menu-boton[aria-expanded="true"] { color: var(--tinta); border-color: var(--tinta); background: var(--papel); }
.menu-boton[aria-expanded="true"]:focus-visible { outline-color: var(--tinta); }
.menu-boton-icono { width: 1.25rem; height: 2px; background: currentColor; position: relative; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.menu-boton[aria-expanded="true"] .menu-boton-icono { box-shadow: none; transform: rotate(45deg); }
.menu-boton-icono::after { content: ""; position: absolute; inset: 0; background: currentColor; }
.menu-boton[aria-expanded="true"] .menu-boton-icono::after { transform: rotate(90deg); }
@media (max-width: 420px) { .carrito-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } }

/* Menú: hoja completa en móvil, panel desde 768. Sin JS, lista visible bajo la marca. */
.menu { display: none; order: 5; width: 100%; }
.menu ul { display: flex; flex-wrap: wrap; gap: var(--gap); padding: .5rem 0 1rem; }
.menu a { padding: 0 1rem; border: 1px solid var(--papel); border-radius: 16px; text-decoration: none; font-weight: 600; }
.menu a:hover { background: var(--amarillo); color: var(--tinta); border-color: var(--amarillo); }
.js .menu { order: 0; width: auto; }
.js .menu.abierto { padding-top: var(--alto-cabecera); background: var(--papel); }
.js .menu.abierto ul { flex-direction: column; padding: 1.5rem var(--margen); }
.js .menu.abierto li { display: contents; }
.js .menu.abierto a {
  justify-content: flex-start; min-height: 3.75rem; padding: 0 1.25rem;
  font: 700 1.6rem/1 var(--f-display); letter-spacing: -.025em; border-color: transparent;
  background: var(--bg, var(--papel-2)); color: var(--fg, var(--tinta));
}
.js .menu.abierto a:hover { background: var(--piedra); }
.js .menu.abierto a[aria-current="page"] { background: var(--tinta); color: var(--papel); }
.js .menu.abierto a[aria-current="page"]::before { content: "●"; margin-right: .6rem; font-size: .8rem; }
@media (min-width: 768px) { .js .menu.abierto { border-left: 1px solid var(--tinta); } }

/* ── Botones ── */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem;
  border: 1px solid var(--tinta); border-radius: var(--r-pastilla);
  background: var(--tinta); color: var(--papel);
  font: 600 1rem/1 var(--f-texto); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.boton:hover { background: var(--grafito); }
/* Sobre fondo oscuro, la acción principal lleva el dorado del logo. */
.hero .boton, .banner .boton, .nosotros .boton { background: var(--oro); border-color: var(--oro); color: var(--tinta); }
.hero .boton:hover, .banner .boton:hover, .nosotros .boton:hover { background: var(--papel); border-color: var(--papel); }
.boton:active { transform: scale(.97); }
.boton--papel { background: var(--papel); color: var(--tinta); }
.boton--papel:hover { background: var(--papel-2); color: var(--tinta); }
.boton--linea { background: transparent; color: var(--tinta); }
.boton--linea:hover { background: var(--tinta); color: var(--papel); }
.boton[disabled] { opacity: .45; cursor: not-allowed; }
.flecha::after { content: "→"; }

/* ── Titulares y etiquetas ── */
.mega { font-size: clamp(2.75rem, 7.2vw, 6rem); line-height: .92; letter-spacing: -.04em; }
.titulo-seccion { font-size: clamp(2.25rem, 6vw, 4.75rem); letter-spacing: -.045em; }
.etiqueta {
  display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0 .75rem;
  border: 1px solid currentColor; border-radius: 24px;
  font: 600 .8rem/1 var(--f-texto);
}
.bajada { font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.4; max-width: 34rem; }

/* ── Huecos de imagen: color plano hasta que llega el archivo (ver PROMPTS-IMAGENES.md) ── */
.hueco {
  position: relative; overflow: hidden; border-radius: var(--r);
  background-color: var(--bg, var(--papel-2));
  background-image: repeating-linear-gradient(135deg, transparent 0 14px, rgb(255 255 255 / .14) 14px 16px);
}
.hueco img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hueco.con-imagen { background-image: none; }

/* ── Portada: el mosaico ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 32svh var(--margen) clamp(1.5rem, 4vw, 3rem);
  background: var(--tinta); color: var(--papel);
}
/* Foto de fondo a sangre: se ve limpia arriba (móvil) o a la derecha (escritorio) y el
   degradado de tinta la funde detrás del texto y hacia la sección siguiente. */
.hero-fondo { position: absolute; inset: 0; z-index: -1; }
.hero-fondo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
/* Vídeo del hero: el primer fotograma (poster) va ENCIMA hasta que hay fotogramas de verdad;
   así iOS no muestra su botón de play. Nunca se le baja la opacidad al vídeo ni a sus padres. */
.hero-video, .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { object-fit: cover; object-position: center; background: #000; }
.hero-poster { transition: opacity .6s ease; }
.hero-fondo.reproduciendo .hero-poster { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hero-fondo.reproduciendo .hero-poster { opacity: 1; } }
.hero-fondo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgb(21 20 18 / .15) 0%, rgb(21 20 18 / .55) 18%, rgb(21 20 18 / .88) 32%,
    var(--tinta) 48%, var(--tinta) 100%);
}
@media (min-width: 900px) {
  .hero { display: flex; align-items: center; min-height: min(calc(100svh - var(--alto-cabecera)), 58rem); padding-block: clamp(2.5rem, 6vw, 5rem); }
  .hero-fondo img { object-position: center; }
  /* El contenido del vídeo va al centro: se corre a la derecha para que el degradado no lo tape. */
  .hero-video, .hero-poster { left: 28%; width: 72%; }
  .hero-fondo::after {
    background:
      linear-gradient(90deg,
        var(--tinta) 0%, var(--tinta) 33%, rgb(21 20 18 / .9) 47%,
        rgb(21 20 18 / .55) 63%, rgb(21 20 18 / .12) 82%, rgb(21 20 18 / 0) 100%),
      linear-gradient(0deg, var(--tinta) 0%, rgb(21 20 18 / 0) 18%);
  }
}
.hero .bajada { color: rgb(243 241 237 / .8); }
.hero-mosaico {
  width: min(100%, var(--ancho)); margin-inline: auto;
  display: grid; gap: var(--gap);
  grid-template-columns: repeat(6, 1fr);
}
.hero-titular {
  grid-column: 1 / -1;
  padding: clamp(1.25rem, 3vw, 2.5rem) .25rem .5rem;
  display: flex; flex-direction: column; gap: 1.25rem; justify-content: flex-end;
}
.hero-titular .bajada { max-width: 30rem; }
.hero-titular .etiqueta { align-self: flex-start; }
.hero-pestanas { grid-column: 1 / -1; }
.hero-pestanas ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.hero-pestanas li:nth-child(1) { --i: 0; } .hero-pestanas li:nth-child(2) { --i: 1; } .hero-pestanas li:nth-child(3) { --i: 2; }
.hero-pestanas li:nth-child(4) { --i: 3; } .hero-pestanas li:nth-child(5) { --i: 4; } .hero-pestanas li:nth-child(6) { --i: 5; }
.hero-pestanas a {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem;
  min-height: 7.5rem; height: 100%; padding: 1rem 1.1rem; border-radius: var(--r); overflow: hidden; isolation: isolate;
  color: var(--fg, var(--tinta)); text-decoration: none;
  border: 1px solid rgb(243 241 237 / .18); transition: color .2s;
  --bg: var(--grafito); --fg: var(--papel);
}
.hero-pestanas a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg, var(--papel)); transform-origin: bottom; transition: background-color .2s; }
.hero-pestanas a:hover::before { background: var(--papel); }
.hero-pestanas a:hover { color: var(--tinta); }
.hero-pestanas b { font: 700 clamp(1.3rem, 2.4vw, 1.8rem)/1 var(--f-display); letter-spacing: -.025em; }
.hero-pestanas small { opacity: .8; }
.hero-pestanas li:last-child { grid-column: 1 / -1; }
.hero-pestanas small { font-size: .85rem; font-weight: 500; }
/* Silueta del destino: ocupa la mitad derecha del botón, un tono más oscuro que su fondo. */
.hero-pestanas a > b, .hero-pestanas a > small { position: relative; z-index: 1; }
@media (min-width: 900px) { .hero-pestanas a > small { max-width: 70%; } }
.hero-silueta {
  position: absolute; right: -.25rem; bottom: -14%; height: 112%; width: auto; aspect-ratio: 1;
  fill: rgb(0 0 0 / .34); pointer-events: none;
  transition: fill .2s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.hero-pestanas a:hover .hero-silueta { fill: rgb(0 0 0 / .12); }
@media (hover: hover) { .hero-pestanas a:hover .hero-silueta { transform: translate(-4px, -4px) rotate(-4deg); } }
.hero-invitacion {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 3.25rem; padding: 0 1.25rem; border-radius: var(--r); border: 1px solid rgb(243 241 237 / .3);
  color: var(--papel); text-decoration: none; font-weight: 600;
}
.hero-invitacion::after { content: "↓"; font-size: 1.2rem; }
.hero-invitacion:hover { background: var(--papel); color: var(--tinta); }

@media (min-width: 900px) {
  .hero-mosaico { grid-template-columns: repeat(12, 1fr); }
  .hero-titular { grid-column: 1 / 8; }
  .hero-pestanas { grid-column: 1 / 8; }
  .hero-pestanas ul { grid-template-columns: repeat(6, 1fr); }
  .hero-pestanas li, .hero-pestanas li:last-child { grid-column: span 2; }
  .hero-pestanas li:nth-child(-n+2) { grid-column: span 3; }
  .hero-invitacion { grid-column: 1 / 8; }
}

/* ── Secciones ── */
.seccion { padding-block: clamp(3rem, 8vw, 6.5rem); }
.seccion-cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1.5rem, 4vw, 3rem); }

/* Las dos tiendas */
.tiendas { display: grid; gap: var(--gap); }
.tienda-panel {
  display: grid; gap: 1.25rem; align-content: start; padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--r); background: var(--bg); color: var(--fg);
}
.tienda-panel h3 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem;
  border: 1px solid currentColor; border-radius: var(--r-pastilla);
  background: transparent; color: inherit; font: 600 .95rem/1 var(--f-texto); text-decoration: none;
}
.chip { border-color: rgb(243 241 237 / .35); }
.chip:hover { background: var(--papel); color: var(--tinta); border-color: var(--papel); }
.tienda-panel .hueco { aspect-ratio: 16 / 9; --bg: rgb(255 255 255 / .18); }
@media (min-width: 900px) { .tiendas { grid-template-columns: 1fr 1fr; } }

/* Marcas */
.marcas { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.marca {
  display: grid; place-items: center; aspect-ratio: 1; padding: .75rem; border-radius: var(--r);
  background: #fff; border: 1px solid var(--tinta); text-decoration: none; overflow: hidden;
}
.marca img { width: 100%; height: 100%; object-fit: contain; }
.marca:hover { background: var(--papel-2); }
.marca--texto { background: var(--menta); text-align: center; font: 700 1.2rem/1.1 var(--f-display); letter-spacing: -.03em; }
@media (min-width: 640px) { .marcas { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .marcas { grid-template-columns: repeat(8, 1fr); } }

/* Nosotros */
.nosotros { background: var(--tinta); color: var(--papel); }
.nosotros .envoltura { display: grid; gap: clamp(2rem, 5vw, 4rem); }
.nos-texto { display: grid; gap: 1.5rem; align-content: start; }
.nos-texto h2 { font-size: clamp(2.75rem, 7vw, 6rem); letter-spacing: -.05em; }
.nos-texto p { max-width: 36rem; }
.nos-lema { color: var(--oro); font: 700 clamp(1.5rem, 3vw, 2.25rem)/1.05 var(--f-display); letter-spacing: -.035em; }
.nos-filas { border-top: 1px solid rgb(243 236 226 / .4); }
.nos-filas li { display: grid; gap: .25rem; padding-block: 1rem; border-bottom: 1px solid rgb(243 236 226 / .4); }
.nos-filas b { font: 700 1.4rem/1 var(--f-display); letter-spacing: -.03em; }
.nos-fotos { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); align-content: start; }
.nos-foto { position: relative; border-radius: var(--r); overflow: hidden; background: var(--grafito); }
.nos-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nos-foto--a { grid-column: 1 / 5; aspect-ratio: 4 / 5; }
.nos-foto--b { grid-column: 5 / 7; aspect-ratio: 1; align-self: end; }
.nos-foto--c { grid-column: 1 / 3; aspect-ratio: 1; }
.nos-foto--d { grid-column: 3 / 7; aspect-ratio: 4 / 3; }
.nos-foto--e { grid-column: 1 / 7; aspect-ratio: 16 / 9; }
.nos-foto.hueco { border-radius: var(--r); }
.nosotros .hueco { --bg: var(--grafito); }
@media (min-width: 900px) {
  .nosotros .envoltura { grid-template-columns: 5fr 6fr; }
  .nos-texto { position: sticky; top: calc(var(--alto-cabecera) + 2rem); align-self: start; }
}

/* Testimonios */
.voces { display: grid; gap: var(--gap); }
.voz { display: grid; gap: 1.25rem; align-content: space-between; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r); background: var(--bg); color: var(--fg); }
.voz blockquote { margin: 0; font: 700 clamp(1.15rem, 1.8vw, 1.5rem)/1.2 var(--f-display); letter-spacing: -.02em; }
.voz--larga blockquote { font-size: clamp(1rem, 1.4vw, 1.1rem); font-family: var(--f-texto); font-weight: 500; line-height: 1.45; letter-spacing: 0; }
.voz cite { font-style: normal; font-weight: 700; }
@media (min-width: 900px) { .voces { grid-template-columns: 1fr 1.5fr 1fr 1fr; } }

/* Banda de cierre */
.cierre { display: grid; gap: 1.25rem; justify-items: start; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--r); background: var(--papel-2); }
.cierre h2 { font-size: clamp(2.25rem, 6vw, 4.5rem); letter-spacing: -.045em; }
.cierre .boton { background: var(--tinta); color: #fff; }
.cierre .boton:hover { background: var(--grafito); color: var(--papel); }

/* ── Banner de página ── */
.banner { --bg: var(--tinta); --fg: var(--papel); background: var(--bg); color: var(--fg); }
.banner .bajada { color: rgb(243 241 237 / .8); }
.banner .envoltura { display: grid; gap: 1rem; padding-block: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 3vw, 2rem); }
.banner h1 { font-size: clamp(2.5rem, 10vw, 7.5rem); letter-spacing: -.045em; line-height: .9; }
.banner .bajada { max-width: 38rem; }

/* ── Catálogo ── */
.cat-cuerpo { padding-block: 1.25rem clamp(3rem, 8vw, 6rem); }
.cat-barra { display: grid; gap: .9rem; padding-bottom: 1rem; }
.buscar { position: relative; }
.buscar input {
  width: 100%; min-height: 52px; padding: 0 1.25rem; border: 1px solid var(--tinta); border-radius: var(--r-pastilla);
  background: #fff; font-size: 1rem;
}
.buscar label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.grupo-filtro { display: grid; gap: .5rem; align-content: start; }
@media (max-width: 899px) {
  .deslizable { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--margen)); padding: 4px var(--margen); scrollbar-width: none; scroll-snap-type: x proximity; }
  .deslizable::-webkit-scrollbar { display: none; }
  .deslizable > * { flex: none; scroll-snap-align: start; }
  .panel-filtros > summary { justify-content: space-between; min-height: 48px; padding: 0 1.1rem; border: 1px solid var(--tinta); border-radius: var(--r-pastilla); }
  .panel-filtros > summary::before { content: none; }
  .panel-filtros > summary::after { content: "▸"; }
  .panel-filtros[open] > summary::after { content: "▾"; }
  .panel-filtros[open] > .cat-filtros { margin-top: .9rem; }
}
@media (min-width: 900px) { .plegable.panel-filtros > summary { display: none; } }
.cat-filtros { display: grid; gap: .9rem 2rem; }
@media (min-width: 900px) { .cat-filtros { grid-template-columns: 1.3fr 1fr 1fr; } }
.rotulo, .plegable > summary { font: 700 .8rem/1 var(--f-texto); letter-spacing: .06em; text-transform: uppercase; }
.pastillas { display: flex; flex-wrap: wrap; gap: 6px; }
.pastilla { position: relative; }
.pastilla input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: var(--r-pastilla); appearance: none; background: transparent; cursor: pointer; z-index: 1; }
.pastilla span { position: relative; }
.pastilla span, .pastilla-enlace {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--tinta); border-radius: var(--r-pastilla); background: transparent;
  font: 600 .95rem/1 var(--f-texto); text-decoration: none; color: var(--tinta); cursor: pointer;
}
.pastilla span small, .pastilla-enlace small { font-weight: 500; opacity: .75; }
.pastilla:hover span, .pastilla-enlace:hover { background: var(--amarillo); color: var(--tinta); }
.pastilla input:checked + span, .pastilla-enlace[aria-current="true"] { background: var(--tinta); color: var(--papel); }
.pastilla input:focus-visible + span { outline: 3px solid var(--tinta); outline-offset: 3px; }

.plegable > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; min-height: 44px; }
.plegable > summary::-webkit-details-marker { display: none; }
.plegable > summary::before { content: "▸"; font-size: 1rem; }
.plegable[open] > summary::before { content: "▾"; }
.plegable .pastillas { margin-top: .25rem; }

.cat-estado { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .75rem; border-block: 1px solid var(--tinta); margin-bottom: 1.25rem; scroll-margin-top: calc(var(--alto-cabecera) + 1rem); }
.cat-estado p { font-weight: 600; }
.cat-estado .limpiar { text-decoration: underline; background: none; border: 0; padding: 0 .5rem; font-weight: 600; }

.solo-lectores { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#resultados.cargando { min-height: 200vh; }
.rejilla { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem var(--gap); }
@media (min-width: 640px) { .rejilla { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .rejilla { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1300px) { .rejilla { grid-template-columns: repeat(5, 1fr); } }
.tarjeta { display: grid; grid-template-rows: auto 1fr; gap: .6rem; position: relative; }
.tarjeta-foto {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; border-radius: var(--r);
  background: #fff; overflow: hidden; cursor: pointer; outline: 1px solid rgb(17 17 17 / .14); outline-offset: -1px;
}
.tarjeta-foto img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
@media (hover: hover) { .tarjeta-foto:hover img { transform: scale(1.04); } }
.tarjeta-sello { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 4px; max-width: calc(100% - 16px); }
.sello { padding: 4px 10px; border-radius: 24px; font: 700 .75rem/1.2 var(--f-texto); background: var(--bg, var(--papel)); color: var(--fg, var(--tinta)); border: 1px solid var(--tinta); }
.sello--oferta { --bg: var(--oro); }
.sello--agotado { --bg: var(--tinta); --fg: #fff; }
.tarjeta-info { display: grid; grid-template-rows: 1fr auto; gap: .6rem; padding-top: .6rem; border-top: 1px solid var(--tinta); }
.tarjeta-nombre { font: 600 .95rem/1.25 var(--f-texto); overflow-wrap: anywhere; }
.tarjeta-nombre button { all: unset; box-sizing: border-box; display: flex; align-items: center; min-height: 44px; cursor: pointer; }
.tarjeta-nombre button:hover { text-decoration: underline; }
.tarjeta-nombre button:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
.tarjeta-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.precio { font: 700 1.15rem/1 var(--f-display); letter-spacing: -.02em; }
.precio s { font: 500 .85rem/1 var(--f-texto); opacity: .7; margin-right: .35rem; }
.tarjeta .boton { min-height: 44px; padding: 0 1rem; font-size: .9rem; }
.tarjeta--sin-stock .tarjeta-foto img { opacity: .5; }
.vacio { padding-block: 3rem; display: grid; gap: 1rem; justify-items: start; }
.vacio h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
.mas { display: flex; justify-content: center; padding-top: 2.5rem; }
.destacados .rejilla { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .destacados .rejilla { grid-template-columns: repeat(4, 1fr); } }
.destacados .rejilla .tarjeta:nth-child(n+5) { display: none; }

/* Vista rápida (cajón) */
.vista {
  position: fixed; inset: 0 0 0 auto; margin: 0; width: min(100%, 34rem); height: 100dvh; max-height: none;
  padding: 0; border: 0; border-left: 1px solid var(--tinta); background: var(--papel); color: var(--tinta); overflow-y: auto;
}
.vista::backdrop { background: rgb(17 17 17 / .55); }
.vista-cuerpo { display: grid; gap: 1.25rem; padding: 1.25rem var(--margen) 2rem; }
.vista-cerrar { justify-self: end; }
.vista-foto { aspect-ratio: 1; border-radius: var(--r); background: #fff; overflow: hidden; }
.vista-foto img { width: 100%; height: 100%; object-fit: contain; }
.vista h2 { font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1.02; }
.vista-desc { color: var(--tinta-2); max-width: 32rem; }
.variantes { max-height: 12rem; overflow-y: auto; padding: 2px; }
.cantidad { display: inline-flex; align-items: center; border: 1px solid var(--tinta); border-radius: var(--r-pastilla); }
.cantidad button { min-width: 44px; min-height: 44px; border: 0; background: none; border-radius: 50%; font-size: 1.25rem; }
.cantidad button:hover { background: var(--amarillo); }
.cantidad output { min-width: 2.5rem; text-align: center; font-weight: 700; }
.vista-acciones { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Aviso */
.aviso {
  position: fixed; left: 50%; bottom: 1rem; z-index: 950; translate: -50% 200%; max-width: min(92vw, 28rem);
  padding: .8rem 1.25rem; border: 1px solid var(--tinta); border-radius: var(--r-pastilla);
  background: var(--tinta); color: var(--papel); font-weight: 600;
  visibility: hidden; transition: translate .2s ease-in, visibility 0s linear .2s;
}
.aviso.visible { translate: -50% 0; visibility: visible; transition: translate .35s cubic-bezier(.2, .8, .2, 1), visibility 0s; }

/* WhatsApp flotante */
.wa-flotante {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 700; display: flex; align-items: center; gap: .6rem;
  min-height: 52px; padding: 0 1.1rem; border: 1px solid var(--tinta); border-radius: var(--r-pastilla);
  background: var(--papel); color: var(--tinta); text-decoration: none; font-weight: 700;
}
.wa-flotante.compacto .wa-flotante-texto { display: none; }
.wa-flotante:hover { background: var(--amarillo); }
.wa-flotante-a { padding: 4px 10px; border-radius: 24px; background: var(--tinta); color: #fff; font-size: .8rem; }
@media (max-width: 520px) { .wa-flotante-texto { display: none; } }

/* ── Carrito ── */
.carrito { display: grid; gap: 2rem; padding-block: 1.5rem clamp(3rem, 8vw, 6rem); }
.linea { display: grid; grid-template-columns: 5rem 1fr; gap: .5rem 1rem; padding-block: 1rem; border-bottom: 1px solid var(--tinta); }
.linea:first-child { border-top: 1px solid var(--tinta); }
.linea-foto { width: 5rem; aspect-ratio: 1; border-radius: 12px; background: #fff; overflow: hidden; }
.linea-foto img { width: 100%; height: 100%; object-fit: contain; }
.linea-nombre { font-weight: 600; line-height: 1.25; }
.linea-var { font-size: .9rem; color: var(--tinta-2); }
.linea-acciones { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.linea .quitar { background: none; border: 0; text-decoration: underline; font-weight: 600; padding: 0 .5rem; }
.resumen { display: grid; gap: 1rem; align-content: start; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r); background: var(--amarillo); }
.resumen h2 { font-size: 2rem; }
.resumen .total { display: flex; justify-content: space-between; align-items: baseline; font: 700 1.75rem/1 var(--f-display); letter-spacing: -.03em; }
.resumen .nota { font-size: .9rem; }
.campo { display: grid; gap: .35rem; }
.campo label { font-weight: 600; font-size: .9rem; }
.campo input:not([type="radio"]):not([type="checkbox"]), .campo textarea { width: 100%; min-height: 48px; padding: .6rem 1rem; border: 1px solid var(--tinta); border-radius: var(--r); background: #fff; }
.campo textarea { min-height: 7rem; resize: vertical; }
.pedido-form { display: grid; gap: 1rem; }
.pedido-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pedido-form legend { padding: 0; margin-bottom: .35rem; font-weight: 600; font-size: .9rem; }
.pedido-form .pastillas { margin-top: .35rem; }
.pedido-form .campo textarea { min-height: 4.5rem; }
.opc { font-weight: 400; color: var(--tinta-2); }
.pedido-error { padding: .7rem 1rem; border-radius: var(--r); background: var(--tinta); color: var(--papel); font-weight: 600; }
.pedido-acciones { display: flex; flex-wrap: wrap; gap: .6rem; }
.pedido-acciones .boton { flex: 1 1 12rem; }
.vaciar { margin-top: 1rem; min-height: 44px; padding: 0 .5rem; border: 0; background: none; color: var(--tinta); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.marca--texto a { text-decoration: underline; text-underline-offset: .15em; }
.marca--texto a:hover { text-decoration-thickness: 2px; }
@media (min-width: 900px) { .carrito { grid-template-columns: 1.6fr 1fr; align-items: start; } .resumen { position: sticky; top: calc(var(--alto-cabecera) + 1rem); } }

/* ── Contacto ── */
.contacto { display: grid; gap: var(--gap); padding-block: 1.5rem clamp(3rem, 8vw, 6rem); }
.contacto-bloque { display: grid; gap: 1rem; align-content: start; padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r); background: var(--bg, var(--papel-2)); color: var(--fg, var(--tinta)); }
.contacto-bloque h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
.contacto-bloque dl { display: grid; gap: 1rem; margin: 0; }
.contacto-bloque dt { font: 700 .8rem/1 var(--f-texto); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .25rem; }
.contacto-bloque dd { margin: 0; font-size: 1.1rem; }
.mapa { position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--tinta); min-height: 22rem; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.mapa-enlace { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 1rem; text-decoration: none; }
.mapa-enlace span { padding: .7rem 1.2rem; border: 1px solid var(--tinta); border-radius: var(--r-pastilla); background: var(--tinta); color: var(--papel); font-weight: 600; }
.mapa-enlace:hover span { background: var(--grafito); }
@media (min-width: 900px) { .contacto { grid-template-columns: 1fr 1fr; } .mapa { grid-column: 1 / -1; min-height: 26rem; } }

/* ── Legal ── */
.legal { max-width: 46rem; padding-block: 2rem clamp(3rem, 8vw, 6rem); display: grid; gap: 1rem; }
.legal h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.6rem; margin-top: 1.5rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .25rem; }

/* ── Pie ── */
.pie { background: var(--tinta); color: var(--papel); padding: clamp(2rem, 6vw, 4rem) var(--margen) 5.5rem; }
.pie-fila { width: min(100%, var(--ancho)); margin-inline: auto; display: grid; gap: 2rem; }
.pie-lema { font: 700 clamp(1.6rem, 3.5vw, 2.6rem)/1 var(--f-display); letter-spacing: -.03em; color: var(--oro); margin-bottom: .75rem; }
.pie-bloque { display: grid; gap: .5rem; align-content: start; }
.pie nav a { justify-content: flex-start; }
.pie-redes { display: flex; flex-wrap: wrap; gap: 6px; }
.pie-redes a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border: 1px solid var(--papel); border-radius: var(--r-pastilla); text-decoration: none; }
.pie-redes a:hover { background: var(--papel); color: var(--tinta); border-color: var(--papel); }
.pie-legal { width: min(100%, var(--ancho)); margin: 2rem auto 0; padding-top: 1rem; border-top: 1px solid rgb(243 236 226 / .4); font-size: .85rem; }
@media (min-width: 800px) { .pie-fila { grid-template-columns: 1.4fr 1fr 1.4fr; } }

/* ── Movimiento ── (todo bajo no-preference; base.css apaga el resto) */
@media (prefers-reduced-motion: no-preference) {
  /* Momento 1 · hero: las muestras se pintan desde abajo (transform, sin layout) */
  .hero-pestanas a::before { animation: pintar .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 50ms + 100ms); }
  .hero-pestanas a > * { animation: aparece .4s ease both; animation-delay: calc(var(--i, 0) * 50ms + 300ms); }
  .hero-fondo { animation: acerca 1.2s cubic-bezier(.2, .8, .2, 1) both; }
  @keyframes acerca { from { transform: scale(1.04); } }
  .hero-titular .mega { animation: entra-lado .7s cubic-bezier(.2, .8, .2, 1) both; }
  .hero-invitacion { animation: entra-lado .5s cubic-bezier(.2, .8, .2, 1) both .4s; }
  @keyframes pintar { from { transform: scaleY(0); } }
  @keyframes aparece { from { opacity: 0; } }
  @keyframes entra-lado { from { translate: -1rem 0; } }
  @keyframes revela { from { opacity: 0; translate: -1rem 0; } to { opacity: 1; translate: 0 0; } }
  @keyframes escala { from { opacity: .2; scale: .94; } to { opacity: 1; scale: 1; } }

  /* Contenido: destape lateral atado al scroll */
  .sd [data-revela] { animation: revela linear both; animation-timeline: view(); animation-range: entry 0% entry 30%; }
  .sd [data-revela="escala"] { animation-name: escala; animation-range: entry 0% entry 70%; }
  .io [data-revela] { transition: opacity .42s ease, translate .42s cubic-bezier(.2, .8, .2, 1), scale .42s; }
  .io [data-revela]:not(.visible) { translate: -1rem 0; }
  .io [data-revela="escala"]:not(.visible) { translate: 0 0; scale: .94; }

  /* Catálogo: las tarjetas entran escalonadas al filtrar (200 ms) */
  .tarjeta--nueva { animation: tarjeta-entra .2s ease-out both; animation-delay: calc(min(var(--i, 0), 4) * 20ms); }
  @keyframes tarjeta-entra { from { opacity: 0; scale: .96; } }
  .vista { translate: 100% 0; transition: translate .2s ease-in, overlay .2s allow-discrete, display .2s allow-discrete; }
  .vista[open] { translate: 0 0; transition-duration: .28s; transition-timing-function: cubic-bezier(.2, .8, .2, 1); }
  @starting-style { .vista[open] { translate: 100% 0; } }
  .vista::backdrop { opacity: 0; transition: opacity .2s, overlay .2s allow-discrete, display .2s allow-discrete; }
  .vista[open]::backdrop { opacity: 1; }
  @starting-style { .vista[open]::backdrop { opacity: 0; } }
  .js .menu.abierto { animation: menu-entra .2s cubic-bezier(.2, .8, .2, 1); }
  @keyframes menu-entra { from { opacity: 0; translate: 0 -.5rem; } }
  @media (min-width: 768px) { @keyframes menu-entra { from { opacity: 0; translate: 1.5rem 0; } } }
  .menu-boton-icono, .menu-boton-icono::after { transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
}
@media (prefers-reduced-motion: reduce) {
  [data-revela] { animation: none !important; opacity: 1 !important; translate: none !important; scale: none !important; }
}
