/* ============================================================
   Zigzag Culture
   Blanco y negro como el logo y la vidriera; el rojo sale del
   sticker "ZIGZAG" del espejo del local. La línea en zigzag se
   dibuja bajo el logo y se repite bajo cada título.
   ============================================================ */

:root {
  --negro: #0c0c0c;
  --carbon: #171717;
  --humo: #2a2a2a;
  --hueso: #f1eee8;
  --blanco: #fff;
  --linea: #e4e0d8;
  --gris: #6c675f;
  --tinta: #111;
  --rojo: #e3282d;
  --whatsapp: #178143;

  --titulo: "Archivo", "Arial Narrow", Arial, sans-serif;
  --texto: "Figtree", "Segoe UI", Helvetica, Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-cajon: cubic-bezier(0.32, 0.72, 0, 1);
  --margen: clamp(16px, 4vw, 40px);
  --cabecera: 64px;
  --radio: 6px;
  --zz: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M0 9 8 1l8 8' fill='none' stroke='%23000' stroke-width='2.6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--cabecera) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--tinta);
  font: 400 1.0625rem/1.55 var(--texto);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }

.saltar { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--blanco); padding: 10px 14px; }
.saltar:focus { top: 8px; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ancho { width: min(1240px, 100% - 2 * var(--margen)); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; margin-right: .5em; vertical-align: -.2em; fill: currentColor; flex: none; }

h1, h2, h3 { font-family: var(--titulo); font-weight: 900; font-stretch: 70%; text-transform: uppercase; line-height: .92; letter-spacing: 0; text-wrap: balance; }
h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); }

/* ---------- Botones: bloque recto con sombra roja dura al pasar ---------- */
.boton {
  --b-fondo: var(--negro); --b-texto: var(--blanco); --b-sombra: var(--rojo);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 2px;
  background: var(--b-fondo); color: var(--b-texto);
  font: 800 1.02rem/1 var(--titulo); font-stretch: 85%; text-transform: uppercase; letter-spacing: .04em;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 var(--b-sombra);
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .15s ease;
}
.boton > span { display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) {
  .boton:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--b-sombra); }
}
.boton:active { transform: translate(0, 0) scale(.98); box-shadow: 0 0 0 var(--b-sombra); }
.boton--blanco { --b-fondo: var(--blanco); --b-texto: var(--negro); }
.boton--claro { --b-fondo: rgba(255, 255, 255, .12); --b-texto: var(--blanco); --b-sombra: rgba(255, 255, 255, .35); }
.boton--claro:hover { --b-fondo: rgba(255, 255, 255, .2); }
.boton--suave { --b-fondo: transparent; --b-texto: var(--negro); box-shadow: inset 0 0 0 2px var(--negro); }
@media (hover: hover) and (pointer: fine) { .boton--suave:hover { box-shadow: inset 0 0 0 2px var(--negro), 4px 4px 0 var(--rojo); } }
.boton--wa { --b-fondo: var(--whatsapp); --b-sombra: var(--negro); width: 100%; }
.acciones { display: flex; flex-wrap: wrap; gap: 14px 18px; margin-top: 28px; }
.acciones--centro { justify-content: center; }
.enlace { display: inline-flex; align-items: center; justify-self: start; font-weight: 700; text-decoration: underline; text-decoration-color: var(--rojo); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.enlace:hover { text-decoration-thickness: 5px; }

/* ---------- Cabecera ---------- */
.cabecera { position: sticky; top: 0; z-index: 50; background: var(--negro); color: var(--blanco); }
.cabecera__fila {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center;
  column-gap: clamp(14px, 2.2vw, 30px); min-height: var(--cabecera);
}
.cabecera__logo, .pie__logo {
  grid-column: 1; grid-row: 1;
  font: 900 1.55rem/1 var(--titulo); font-stretch: 100%; letter-spacing: -.065em; text-transform: lowercase; text-decoration: none;
}
.cabecera__menu, .cabecera__carrito--movil { display: none; }
.nav { display: contents; }
.nav__grupo { grid-row: 1; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.nav__grupo--izq { grid-column: 3; }
.nav__grupo--der { grid-column: 4; }
.nav a { font-size: .97rem; font-weight: 500; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .15s ease; }
.nav a:hover { border-bottom-color: var(--rojo); }
.cabecera__carrito {
  display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 8px 0 14px;
  border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; background: none; color: var(--blanco);
  font-weight: 600; font-size: .95rem;
  transition: background-color .15s ease, border-color .15s ease;
}
.cabecera__carrito:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }
.cabecera__carrito.cabecera__carrito--movil { display: none; }
.cabecera__carrito .ico { margin-right: .35em; }
.cabecera__carrito b {
  display: grid; place-items: center; min-width: 24px; height: 24px; margin-left: 8px; padding: 0 6px; border-radius: 999px;
  background: var(--rojo); color: var(--blanco); font-size: .8rem; font-weight: 700;
}
.cabecera__carrito b:empty, .cabecera__carrito[data-vacio] b { background: rgba(255, 255, 255, .16); color: var(--blanco); }
.salto { animation: salto .45s var(--ease-out); }
@keyframes salto { 0% { transform: scale(1); } 35% { transform: scale(1.18); } 100% { transform: scale(1); } }

/* Al llegar al catálogo, la cabecera se centra: logo al medio y el menú a los lados.
   El deslizamiento lo anima js/app.js; la línea en zigzag aparece desde el centro. */
.cabecera::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 6px;
  background: var(--rojo);
  -webkit-mask: var(--zz) 0 0 / 10px 6px repeat-x; mask: var(--zz) 0 0 / 10px 6px repeat-x;
  transform: scaleX(0); transition: transform .6s var(--ease-out);
}
.cabecera--centrada::after { transform: scaleX(1); }
.cabecera--centrada .cabecera__fila { grid-template-columns: 1fr auto 1fr; column-gap: clamp(20px, 3vw, 48px); }
.cabecera--centrada .cabecera__logo { grid-column: 2; }
.cabecera--centrada .nav__grupo--izq { grid-column: 1; justify-self: end; }
.cabecera--centrada .nav__grupo--der { grid-column: 3; justify-self: start; }

/* ---------- Portada ---------- */
.portada { position: relative; background: var(--negro); color: var(--blanco); }
.portada__fijo { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 112px) 72px; }
.portada__contenido { position: relative; }

/* Portada fija: queda en pantalla mientras bajás y las prendas entran desde los costados.
   El momento lo decide js/app.js según cuánto se bajó. */
.pin .portada { height: calc(100svh - var(--cabecera) + 65vh); }
.pin .portada__fijo {
  position: sticky; top: var(--cabecera);
  height: calc(100svh - var(--cabecera));
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 0 64px;
}
@media (min-width: 901px) { .pin .portada__lado { opacity: 0; } }
@media (max-width: 900px) { .pin .portada__marca { opacity: 0; } }
.pin .portada__pieza {
  transform: translate3d(var(--dx, 0), var(--dy, 0), 0); opacity: 0;
  will-change: transform, opacity;
  transition: transform .45s var(--ease-out), opacity .3s ease;
}
.pin .portada--marcas .portada__pieza {
  transform: none; opacity: 1;
  transition: transform 1s var(--ease-out) var(--retraso, 0s), opacity .6s ease var(--retraso, 0s);
}
.pin .portada__centro { transform: translateY(28px) scale(1.08); will-change: transform; transition: transform .45s var(--ease-out); }
.pin .portada--marcas .portada__centro { transform: none; transition: transform 1s var(--ease-out); }
.pin .portada__guia { transition: opacity .3s ease; }
.pin .portada--marcas .portada__guia { opacity: 0; }
.portada--midiendo .portada__pieza, .portada--midiendo .portada__centro { transition: none !important; }
.portada__guia { display: none; }
.pin .portada__guia {
  display: block; position: absolute; left: 50%; bottom: 22px;
  width: 2px; height: 44px; margin-left: -1px; overflow: hidden; background: rgba(255, 255, 255, .18);
}
.pin .portada__guia span {
  position: absolute; inset: 0 0 60% 0; background: var(--blanco);
  animation: guia 1.8s var(--ease-in-out) infinite;
}
@keyframes guia { from { transform: translateY(-100%); } to { transform: translateY(250%); } }

/* La vidriera del local, en blanco y negro, apenas detrás */
.portada__foto {
  position: absolute; inset: 0; pointer-events: none;
  background: url("../assets/local/vidriera.webp") center 40% / cover no-repeat;
  filter: grayscale(1) contrast(1.15) blur(3px);
  opacity: .16;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 85%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 20%, transparent 85%);
}
.portada__escena {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3.4fr) minmax(0, 1fr);
  align-items: center; gap: clamp(20px, 3.5vw, 52px);
}
.portada__lado { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 100%; }
.portada__lado--izq { border-right: 1px solid rgba(255, 255, 255, .14); padding-right: clamp(12px, 2.5vw, 36px); }
.portada__lado--der { border-left: 1px solid rgba(255, 255, 255, .14); padding-left: clamp(12px, 2.5vw, 36px); }
.portada__marca { display: grid; gap: 6px; justify-items: center; text-decoration: none; transition: transform .2s var(--ease-out); }
.portada__marca img { width: clamp(64px, 6.6vw, 92px); aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: 4px; box-shadow: 0 10px 26px rgba(0, 0, 0, .5); }
.portada__marca span { font: 800 .72rem/1 var(--titulo); font-stretch: 85%; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }
@media (hover: hover) and (pointer: fine) {
  .portada__marca:hover { transform: translateY(-3px) rotate(-2deg); }
  .portada__marca:hover span { color: var(--blanco); }
}

/* El logo entra letra por letra en zigzag (una de arriba, otra de abajo)
   y después se dibuja la línea roja debajo. */
/* El tamaño del logo sale del ancho de su columna, así nunca pisa las fotos de los costados */
.portada__centro { display: grid; place-items: center; padding-block: 18px; container-type: inline-size; }
.logo-zz { display: grid; justify-items: center; width: 100%; }
.logo-zz__letras {
  display: inline-flex;
  font: 900 clamp(2.4rem, 16cqi, 9.6rem)/.9 var(--titulo); font-stretch: 100%;
  letter-spacing: -.065em; text-transform: lowercase; padding-right: .065em;
}
.logo-zz__letras i { display: inline-block; font-style: normal; }
.logo-zz__letras i:nth-child(odd) { --y: -.55em; --r: -8deg; }
.logo-zz__letras i:nth-child(even) { --y: .55em; --r: 8deg; }
.logo-zz__linea { width: 92%; height: clamp(12px, 1.7vw, 24px); margin-top: .5em; overflow: visible; }
.logo-zz__linea path { fill: none; stroke: var(--rojo); stroke-width: 4; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }

.portada__texto { position: relative; text-align: center; padding-top: clamp(24px, 4vw, 46px); }
.portada h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); font-stretch: 72%; }
.portada h1 em { font-style: inherit; color: var(--rojo); }
.portada__texto p { max-width: 52ch; margin: 14px auto 0; color: rgba(255, 255, 255, .78); font-size: 1.1rem; text-wrap: balance; }
.portada__pie {
  position: absolute; left: 0; right: 0; bottom: 22px;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 28px;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55);
}
.portada__pie span { display: inline-flex; align-items: center; gap: 10px; }
.portada__pie span + span::before { content: ""; width: 6px; height: 6px; background: var(--rojo); transform: rotate(45deg); }
.pin .portada__pie { display: none; }

/* Entrada de la portada: una sola secuencia al cargar */
@media (prefers-reduced-motion: no-preference) {
  .portada__foto { animation: foto-entra 2.4s var(--ease-out) both; }
  .logo-zz__letras i { animation: letra-zz .75s var(--ease-out) both; animation-delay: calc(.2s + var(--k) * 55ms); }
  .logo-zz__linea path { stroke-dasharray: 1; animation: traza 1s var(--ease-in-out) 1s both; }
  html:not(.pin) .portada__lado--izq .portada__marca { animation: desde-izq .8s var(--ease-out) both; animation-delay: calc(1.8s + var(--n, 0) * 70ms); }
  html:not(.pin) .portada__lado--der .portada__marca { animation: desde-der .8s var(--ease-out) both; animation-delay: calc(1.8s + var(--n, 0) * 70ms); }
  .portada__linea { animation: sube .7s var(--ease-out) both; animation-delay: calc(1.5s + var(--d) * 90ms); }
  .portada__pie { animation: aparece .8s ease 2.1s both; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-zz, .portada__marca, .portada__linea { animation: aparece .4s ease both; }
}
@keyframes aparece { from { opacity: 0; } }
@keyframes foto-entra { from { opacity: 0; transform: scale(1.08); } }
@keyframes letra-zz { from { opacity: 0; transform: translateY(var(--y)) rotate(var(--r)); } }
@keyframes traza { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes desde-izq { from { opacity: 0; transform: translateX(-32px); } }
@keyframes desde-der { from { opacity: 0; transform: translateX(32px); } }
@keyframes sube { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Cinta que corre debajo de la portada ---------- */
.cinta { overflow: hidden; background: var(--rojo); color: var(--blanco); border-block: 2px solid var(--negro); }
.cinta__pista { display: flex; width: max-content; animation: cinta 32s linear infinite; }
.cinta span {
  display: inline-flex; align-items: center; gap: 22px; padding: 11px 0 11px 22px;
  font: 900 1.2rem/1 var(--titulo); font-stretch: 70%; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.cinta span::after { content: ""; width: 18px; height: 8px; background: currentColor; -webkit-mask: var(--zz) 0 0 / 9px 8px repeat-x; mask: var(--zz) 0 0 / 9px 8px repeat-x; }
@keyframes cinta { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .cinta__pista { animation: none; } }

/* ---------- Aparecer al hacer scroll ---------- */
.js [data-revelar] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-revelar].visto { opacity: 1; transform: none; }
/* La línea en zigzag de cada título se dibuja de izquierda a derecha */
.js .seccion__titulo[data-revelar] h2::after, .js .dos > [data-revelar] h2::after { clip-path: inset(0 100% 0 0); transition: clip-path .8s var(--ease-in-out) .25s; }
.js .seccion__titulo[data-revelar].visto h2::after, .js .dos > [data-revelar].visto h2::after { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-revelar] { transform: none; transition: opacity .4s ease; }
  .js .seccion__titulo[data-revelar] h2::after, .js .dos > [data-revelar] h2::after { clip-path: none; transition: none; }
}

/* ---------- Secciones ---------- */
.seccion { padding-block: clamp(56px, 8vw, 104px); }
.seccion--hueso { background: var(--hueso); }
.seccion--noche { background: var(--negro); color: var(--blanco); }
.seccion__titulo { display: grid; gap: 14px; margin-bottom: clamp(28px, 4vw, 44px); }
.seccion__titulo h2::after, .dos h2::after {
  content: ""; display: block; width: 96px; height: 10px; margin-top: 14px;
  background: var(--rojo);
  -webkit-mask: var(--zz) 0 0 / 16px 10px repeat-x; mask: var(--zz) 0 0 / 16px 10px repeat-x;
}
.seccion__titulo p { max-width: 60ch; color: var(--gris); }
.seccion--noche .seccion__titulo p { color: rgba(255, 255, 255, .72); }
.seccion__titulo--fila { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.seccion__titulo--fila > div { display: grid; gap: 14px; }

/* ---------- Buscador y categorías ---------- */
.buscador { position: relative; display: block; width: min(100%, 360px); }
.buscador svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--gris); pointer-events: none; }
.buscador input {
  width: 100%; min-height: 50px; padding: 0 16px 0 46px;
  border: 2px solid var(--linea); border-radius: 999px; background: var(--blanco);
  font-size: 1rem; transition: border-color .15s ease;
}
.buscador input:focus { outline: none; border-color: var(--negro); }
.buscador input::-webkit-search-cancel-button { cursor: pointer; }

.pestanas { display: flex; gap: 8px; padding: 2px 2px 4px; margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.pestana {
  flex: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--linea); border-radius: 999px;
  background: var(--blanco); color: var(--tinta); font-weight: 600; font-size: .97rem;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .16s var(--ease-out);
}
.pestana small { font-weight: 500; font-size: .82rem; opacity: .6; margin-left: 4px; }
.pestana:hover { border-color: var(--negro); }
.pestana:active { transform: scale(.97); }
.pestana[aria-pressed="true"] { background: var(--negro); border-color: var(--negro); color: var(--blanco); }

/* ---------- Grilla de productos ---------- */
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(14px, 2vw, 24px); }
.tarjeta { display: flex; flex-direction: column; border: 1px solid var(--linea); border-radius: var(--radio); background: var(--blanco); overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.tarjeta__abrir { display: grid; gap: 6px; padding: 0 0 14px; border: 0; background: none; text-align: left; flex: 1; align-content: start; }
.tarjeta__abrir > :not(.tarjeta__foto) { padding-inline: 16px; }
.tarjeta__foto { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--hueso); margin-bottom: 8px; overflow: hidden; }
.tarjeta__foto img, .ficha__foto img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta__foto img { transition: transform .45s var(--ease-out); }
.etiqueta {
  position: absolute; left: 10px; top: 10px; padding: 5px 10px;
  background: var(--rojo); color: var(--blanco); font: 900 .95rem/1 var(--titulo); font-stretch: 75%; text-transform: uppercase; letter-spacing: .03em;
  transform: rotate(-4deg); box-shadow: 2px 2px 0 var(--negro);
}
.tarjeta__marca { font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.tarjeta__nombre { font: 900 1.35rem/1 var(--titulo); font-stretch: 75%; text-transform: uppercase; }
.tarjeta__datos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tarjeta__datos span { padding: 2px 9px; border-radius: 999px; background: var(--hueso); color: var(--gris); font-size: .82rem; font-weight: 500; }
.tarjeta__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-top: 1px solid var(--linea); }
.tarjeta__precio { font-size: .95rem; font-weight: 600; color: var(--gris); }
.tarjeta__precio b { color: var(--tinta); font-size: 1.05rem; }
.tarjeta__precio small { font-weight: 500; }
.tarjeta__sumar {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px 0 12px;
  border: 0; border-radius: 2px; background: var(--negro); color: var(--blanco); font-weight: 700; font-size: .92rem;
  transition: background-color .15s ease, transform .16s var(--ease-out);
}
.tarjeta__sumar svg { width: 18px; height: 18px; }
.tarjeta__sumar:hover { background: var(--humo); }
.tarjeta__sumar:active { transform: scale(.96); }
.tarjeta__sumar.hecho { background: var(--whatsapp); }
@media (hover: hover) and (pointer: fine) {
  .tarjeta:hover { border-color: #c9c3b8; box-shadow: 0 14px 34px rgba(0, 0, 0, .08); }
  .tarjeta__abrir:hover .tarjeta__foto img { transform: scale(1.04); }
}
.vacio { padding: 28px; border: 1px dashed var(--linea); border-radius: var(--radio); text-align: center; color: var(--gris); }
.vacio a, .pedido a { color: var(--tinta); font-weight: 600; text-decoration-color: var(--rojo); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.pedido { margin-top: 30px; color: var(--gris); }

/* ---------- Outfits ---------- */
.outfits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 30px); }
.outfit { display: grid; gap: 10px; align-content: start; }
.outfit__foto { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radio); background: var(--carbon); }
.outfit__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.outfit h3 { margin-top: 6px; font-size: 1.7rem; }
.outfit__prendas { display: flex; flex-wrap: wrap; gap: 6px; }
.outfit__prendas li { padding: 3px 10px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; font-size: .85rem; color: rgba(255, 255, 255, .8); }
.outfit .enlace { margin-top: 4px; }
@media (hover: hover) and (pointer: fine) { .outfit:hover .outfit__foto img { transform: scale(1.04); } }

/* ---------- Bloques de dos columnas ---------- */
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.dos h2 { margin-bottom: 20px; }
.dos__bajada { max-width: 46ch; font-size: 1.12rem; color: var(--gris); }

/* El local */
.dos--local { align-items: center; }
/* La vidriera arriba y entera (que no se corte el logo); el local y "Las primeras" debajo */
.collage { display: grid; grid-template-columns: 1.55fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; }
.collage__foto { position: relative; overflow: hidden; border-radius: var(--radio); background: var(--linea); }
.collage__foto--grande { grid-row: 1 / -1; aspect-ratio: 606 / 784; }
/* Las chicas se acomodan al alto de la vidriera (no la estiran) */
.collage__foto:not(.collage__foto--grande) img { position: absolute; inset: 0; }
.collage__foto img { width: 100%; height: 100%; object-fit: cover; }
.collage figcaption {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 10px;
  background: var(--blanco); font: 800 .78rem/1 var(--titulo); font-stretch: 85%; letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(-3deg); box-shadow: 2px 2px 0 var(--negro);
}
.ventajas { display: grid; gap: 4px; margin-top: 28px; border-top: 2px solid var(--negro); }
.ventajas li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.ventajas svg { grid-row: span 2; width: 30px; height: 30px; color: var(--rojo); }
.ventajas b { font: 900 1.3rem/1.05 var(--titulo); font-stretch: 75%; text-transform: uppercase; }
.ventajas span { color: var(--gris); }

/* Campos de formulario */
.campo { grid-column: 1 / -1; display: grid; gap: 6px; }
.campo label, .campo legend { font-weight: 600; font-size: .95rem; }
.campo legend { padding: 0; margin-bottom: 6px; }
.campo small { color: var(--gris); font-weight: 400; }
.campo input, .campo textarea, .campo select {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--linea); border-radius: 8px; background: var(--blanco);
  font-size: 1rem; transition: border-color .15s ease;
}
.campo textarea { resize: vertical; min-height: 84px; }
.campo select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23111' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
}
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--negro); }
.campo input[aria-invalid="true"] { border-color: #b3261e; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 2px solid var(--linea); border-radius: 999px; background: var(--blanco);
  font-weight: 600; font-size: .95rem; transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chips input:checked + span { background: var(--negro); border-color: var(--negro); color: var(--blanco); }
.chips input:focus-visible + span { outline: 3px solid var(--rojo); outline-offset: 2px; }

/* ---------- Contacto ---------- */
.estado { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 8px 14px; border-radius: 999px; background: var(--hueso); font-weight: 600; font-size: .95rem; }
.estado::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #a19b91; }
.estado--abierto { background: #e6f4ec; color: #0f5e31; }
.estado--abierto::before { background: var(--whatsapp); box-shadow: 0 0 0 4px rgba(23, 129, 67, .18); }
.datos { display: grid; border-top: 2px solid var(--negro); }
.datos > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--linea); }
.datos dt { color: var(--gris); }
.datos dd { font-weight: 600; font-size: 1.08rem; }
.datos a { text-decoration-color: var(--rojo); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.mapa { width: 100%; height: 100%; min-height: 420px; border: 0; border-radius: var(--radio); background: var(--hueso); }

/* ---------- Pie ---------- */
.pie { background: var(--negro); color: rgba(255, 255, 255, .7); padding-block: 44px 110px; font-size: .95rem; }
.pie__fila { display: grid; gap: 12px; justify-items: start; }
.pie__marca { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 4px; }
.pie__logo { color: var(--blanco); font-size: 2rem; }
.pie__by { font: 800 1rem/1 var(--titulo); font-stretch: 85%; letter-spacing: .04em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.pie__by a { color: var(--blanco); text-decoration: underline; text-decoration-color: var(--rojo); text-decoration-thickness: 3px; text-underline-offset: 5px; text-transform: none; letter-spacing: 0; }
.pie a { color: var(--blanco); text-underline-offset: 4px; }
.pie__legal { color: rgba(255, 255, 255, .5); font-size: .85rem; max-width: 80ch; }

/* ---------- WhatsApp flotante y barra del pedido ---------- */
.flotante {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: inline-flex; align-items: center; gap: 9px; min-height: 54px; padding: 0 22px 0 16px;
  background: var(--whatsapp); color: var(--blanco); border-radius: 999px; text-decoration: none; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  transition: background-color .15s ease, transform .3s var(--ease-out);
}
.flotante svg { width: 26px; height: 26px; fill: currentColor; }
.flotante:hover { background: #126836; }
.barra-pedido { display: none; }

/* ---------- Ficha de producto ---------- */
.ficha { width: min(940px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 14px; background: var(--blanco); color: var(--tinta); overflow: auto; overscroll-behavior: contain; }
.ficha::backdrop { background: rgba(0, 0, 0, .72); }
.ficha[open] { animation: ficha-entra .25s var(--ease-out); }
.ficha[open]::backdrop { animation: aparece .25s var(--ease-out); }
@keyframes ficha-entra { from { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) { .ficha[open] { animation: aparece .2s ease; } }
.ficha__cerrar, .carrito__cerrar {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--hueso); color: var(--tinta); transition: background-color .15s ease;
}
.ficha__cerrar { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 255, 255, .92); }
.ficha__cerrar svg, .carrito__cerrar svg { width: 22px; height: 22px; }
.ficha__cerrar:hover, .carrito__cerrar:hover { background: var(--linea); }
.ficha__cuerpo { display: grid; grid-template-columns: 1fr 1.05fr; }
.ficha__foto { position: relative; background: var(--hueso); }
.ficha__foto > img { aspect-ratio: 4 / 5; height: auto; position: sticky; top: 0; }
.ficha__info { display: grid; gap: 14px; align-content: start; padding: 40px 28px 28px; }
.ficha__marca { font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.ficha__info h3 { font-size: clamp(2rem, 4vw, 2.8rem); margin-right: 40px; }
.ficha__info > p { color: var(--gris); }
.ficha__opciones { display: grid; gap: 12px; padding: 16px; border-radius: 10px; background: var(--hueso); }
.ficha__compra { display: flex; gap: 12px; align-items: stretch; }
.ficha__compra .boton { flex: 1; padding-inline: 18px 22px; white-space: nowrap; }
.ficha__nota { padding: 12px 14px; border-left: 4px solid var(--rojo); background: #faf6f2; color: var(--gris); font-size: .92rem; }
.ficha__consulta { justify-self: start; font-size: .95rem; font-weight: 600; color: var(--whatsapp); text-underline-offset: 4px; display: inline-flex; align-items: center; }
.cantidad { display: inline-flex; align-items: center; border: 2px solid var(--linea); border-radius: 999px; background: var(--blanco); }
.cantidad button { display: grid; place-items: center; width: 44px; height: 46px; border: 0; background: none; color: var(--negro); }
.cantidad button svg { width: 18px; height: 18px; }
.cantidad button:disabled { color: #c2bdb4; cursor: default; }
.cantidad output { min-width: 28px; text-align: center; font-weight: 700; }
.cantidad--chica button { width: 34px; height: 34px; }
.cantidad--chica button svg { width: 15px; height: 15px; }

/* ---------- Cajón del pedido ---------- */
.carrito {
  margin: 0 0 0 auto; width: min(440px, 100%); height: 100dvh; max-height: 100dvh; max-width: 100%;
  padding: 0; border: 0; background: var(--blanco); color: var(--tinta);
  overflow-y: auto; overscroll-behavior: contain;
}
.carrito[open] { display: flex; flex-direction: column; animation: cajon-entra .34s var(--ease-cajon); }
.carrito::backdrop { background: rgba(0, 0, 0, .55); }
.carrito[open]::backdrop { animation: aparece .3s ease; }
.carrito.saliendo { transform: translateX(100%); transition: transform .24s cubic-bezier(.4, 0, 1, 1); }
.carrito.saliendo::backdrop { opacity: 0; transition: opacity .24s ease; }
@keyframes cajon-entra { from { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .carrito[open] { animation: aparece .2s ease; }
  .carrito.saliendo { transform: none; opacity: 0; transition: opacity .15s ease; }
}
.carrito__cabeza { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--linea); background: var(--blanco); }
.carrito__cabeza h2 { font-size: 2rem; margin-right: auto; }
.carrito__vaciar { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--gris); font-size: .9rem; font-weight: 600; }
.carrito__vaciar:hover { background: var(--hueso); color: #b3261e; }
.carrito__lista { flex: 1 0 auto; padding: 14px 16px; display: grid; gap: 10px; align-content: start; }
.renglon { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--linea); border-radius: 10px; animation: renglon .3s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms); }
@keyframes renglon { from { opacity: 0; transform: translateY(8px); } }
.renglon__foto { position: relative; width: 56px; height: 70px; border-radius: 6px; overflow: hidden; background: var(--hueso); }
.renglon__foto img { width: 100%; height: 100%; object-fit: cover; }
.renglon__nombre { font-weight: 700; line-height: 1.2; }
.renglon__opciones { font-size: .85rem; color: var(--gris); line-height: 1.35; margin-top: 2px; }
.renglon__acciones { display: grid; justify-items: end; gap: 6px; }
.renglon__quitar { border: 0; background: none; padding: 2px 4px; color: var(--gris); font-size: .82rem; text-decoration: underline; text-underline-offset: 3px; }
.renglon__quitar:hover { color: #b3261e; }
.carrito__vacio { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; text-align: center; color: var(--gris); }
.carrito__vacio svg { width: 44px; height: 44px; color: var(--linea); }
.carrito__vacio b { color: var(--tinta); font-size: 1.1rem; }
.carrito__pie { display: grid; gap: 12px; padding: 16px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); background: var(--hueso); }
.carrito__pie .boton--wa { position: sticky; bottom: max(12px, env(safe-area-inset-bottom)); filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .2)); }
.carrito__pie .campo input, .carrito__pie .campo textarea { min-height: 44px; }
.carrito__pie .campo textarea { min-height: 64px; }
.carrito__total { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.carrito__total span { color: var(--gris); font-weight: 500; white-space: nowrap; }
.carrito__aviso { padding: 10px 12px; border-radius: 10px; background: #fff6e0; color: #7a5300; font-size: .9rem; }
.carrito__error { color: #b3261e; font-weight: 600; font-size: .95rem; }
.carrito[data-vacio] .carrito__pie { display: none; }

/* Aviso flotante y vuelo al pedido */
.aviso {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 60;
  padding: 12px 18px; border-radius: 999px; background: var(--negro); color: var(--blanco); font-weight: 600; font-size: .95rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .2s ease;
}
.aviso--ver { transform: translate(-50%, 0); opacity: 1; }
.vuelo { position: fixed; z-index: 70; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; pointer-events: none; box-shadow: 0 12px 28px rgba(0, 0, 0, .3); background: var(--hueso); }
.vuelo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pantallas medianas y chicas ---------- */
@media (max-width: 900px) {
  .cabecera__menu {
    grid-column: 4; grid-row: 1;
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; background: none; color: var(--blanco); font-weight: 500;
  }
  .cabecera__carrito.cabecera__carrito--movil { display: inline-flex; grid-column: 3; grid-row: 1; padding: 0 6px 0 12px; }
  .cabecera__carrito--movil .ico { margin-right: 0; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--negro); padding: 4px var(--margen) 22px; border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .nav--abierto { display: flex; }
  .nav__grupo { display: contents; }
  .nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .nav .cabecera__carrito { display: none; }
  .cabecera__fila { grid-template-columns: auto 1fr auto auto; column-gap: 10px; }
  .cabecera--centrada .cabecera__fila { grid-template-columns: 1fr auto 1fr; column-gap: 10px; }
  .cabecera--centrada .cabecera__carrito--movil { grid-column: 1; justify-self: start; }
  .cabecera--centrada .cabecera__menu { grid-column: 3; justify-self: end; }

  .portada__escena { grid-template-columns: repeat(3, auto); justify-content: center; gap: 14px 22px; }
  .portada__centro { grid-column: 1 / -1; grid-row: 1; width: 100%; justify-self: center; padding-bottom: 10px; }
  .portada__lado { display: contents; }
  .portada__marca { align-self: center; }
  .portada__marca img { width: clamp(58px, 17vw, 84px); }

  .outfits { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(74%, 320px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--margen)); padding-inline: var(--margen); scroll-padding-inline: var(--margen); }
  .outfit { scroll-snap-align: start; }

  .dos { grid-template-columns: 1fr; }
  .mapa { min-height: 320px; }
  .ficha__cuerpo { grid-template-columns: 1fr; }
  .ficha__foto > img { position: static; aspect-ratio: 1 / 1; }
  .ficha__info { padding: 22px 18px 24px; }

  /* Barra fija con el pedido, solo cuando hay prendas */
  .barra-pedido:not([hidden]) {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 45;
    display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 8px 8px 10px;
    border: 0; border-radius: 16px; background: var(--negro); color: var(--blanco); text-align: left;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
    animation: barra-entra .4s var(--ease-out);
  }
  .barra-pedido__n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--rojo); color: var(--blanco); font-weight: 800; font-size: 1.1rem; }
  .barra-pedido__txt { flex: 1; display: grid; line-height: 1.2; }
  .barra-pedido__txt small { color: rgba(255, 255, 255, .7); font-size: .85rem; }
  .barra-pedido__ir { padding: 12px 16px; border-radius: 10px; background: var(--whatsapp); font-weight: 700; font-size: .95rem; }
  .con-pedido .flotante { transform: translateY(-78px); }
  .con-pedido .aviso { bottom: calc(max(24px, env(safe-area-inset-bottom)) + 76px); }
  .con-pedido .pie { padding-bottom: 170px; }
}
@keyframes barra-entra { from { opacity: 0; transform: translateY(24px); } }
@media (max-width: 560px) {
  .flotante span { display: none; }
  .flotante { padding: 0; width: 56px; justify-content: center; }
  .cabecera__logo { font-size: 1.3rem; }
  .grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tarjeta__abrir > :not(.tarjeta__foto) { padding-inline: 10px; }
  .tarjeta__nombre { font-size: 1.12rem; }
  .tarjeta__datos span:nth-child(n+2) { display: none; }
  .tarjeta__pie { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; }
  .tarjeta__sumar { justify-content: center; }
  .tarjeta__precio { font-size: .85rem; }
  .datos > div { grid-template-columns: 96px 1fr; }
  .buscador { width: 100%; }
  .ficha { width: 100%; max-height: calc(100dvh - 12px); margin-bottom: 0; border-radius: 14px 14px 0 0; }
  .ficha__compra .boton .ico { display: none; }
  .collage { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .collage__foto--grande { grid-column: 1 / -1; grid-row: auto; }
  .collage__foto:not(.collage__foto--grande) { aspect-ratio: 4 / 5; }
}
