@charset "UTF-8";
:root {
  --crema: #F3EBDD;
  --beige: #D8BE94;
  --caramelo: #A9824F;
  --negro: #14100D;
  --tinta: var(--crema);
  --tinta-suave: rgba(243, 235, 221, .66);
  --vidrio: rgba(255, 248, 236, .07);
  --vidrio-borde: rgba(255, 245, 230, .2);
  --linea: rgba(243, 235, 221, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --serif: 'Abril Fatface', Georgia, serif;
  --sans: 'Archivo', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--negro);
  color: var(--tinta);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.en-reel { overflow: hidden; height: 100dvh; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
[hidden] { display: none !important; }

/* ---------- Fondo ---------- */
#cielo {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -1; opacity: 0; transition: opacity 1s var(--ease);
}
#cielo.listo { opacity: 1; }
.cielo-respaldo {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(45% 40% at 50% 52%, rgba(216, 190, 148, .2), transparent 70%),
    radial-gradient(50% 45% at 80% 85%, rgba(169, 130, 79, .35), transparent 70%),
    var(--negro);
}

/* Mural: el logo gigante como un grafiti de fondo */
.mural {
  position: fixed; left: 50%; top: 50%; z-index: -1; pointer-events: none;
  width: min(150vw, 1700px); aspect-ratio: 1445 / 800;
  transform: translate(-50%, calc(-50% + var(--mural-y, 0px)));
  background: var(--beige); opacity: .075;
  -webkit-mask: url(assets/logo.svg) center / contain no-repeat;
  mask: url(assets/logo.svg) center / contain no-repeat;
  transition: transform 1.2s var(--ease), opacity .6s;
}
@media (max-width: 700px) { .mural { width: 190vw; opacity: .09; } }

/* ---------- Vidrio ---------- */
.glass {
  background: var(--vidrio);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    inset 0 0 0 1px var(--vidrio-borde),
    inset 1.5px 2.5px 0 -1.5px rgba(255, 245, 230, .35),
    inset -1px -3px 8px -2px rgba(0, 0, 0, .4),
    0 10px 30px rgba(0, 0, 0, .35);
}

/* ---------- Cabecera ---------- */
.cabecera {
  position: fixed; z-index: 30;
  top: calc(22px + env(safe-area-inset-top, 0px));
  left: calc(24px + env(safe-area-inset-left, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  display: flex; justify-content: space-between; align-items: flex-start;
  pointer-events: none;
}
.cabecera > * { pointer-events: auto; }
.cabecera__pill {
  display: flex; align-items: center; gap: 4px;
  padding: 5px 6px 5px 16px; border-radius: 999px;
}
.marca { display: block; padding: 2px 6px 2px 0; }
.marca__logo {
  display: block; width: 132px; height: 70px;
  background: var(--beige);
  -webkit-mask: url(assets/logo.svg) center / contain no-repeat;
  mask: url(assets/logo.svg) center / contain no-repeat;
  transition: transform .4s var(--ease);
}
.marca:hover .marca__logo { transform: translateY(1px) scaleY(1.05); }
.pill-btn {
  display: grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-family: var(--mono); font-size: 15px;
  transition: background .25s;
}
.pill-btn:hover { background: rgba(255, 245, 230, .1); }
.pill-btn:focus-visible, .btn-principal:focus-visible, a:focus-visible, .riel button:focus-visible { outline: 2px solid var(--beige); outline-offset: 2px; }
#contador { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 999px; background: var(--beige); color: var(--negro); font-size: 13px; }
#contador.salta { animation: salta .5s var(--ease); }
@keyframes salta { 40% { transform: scale(1.35); } }
.pill-btn--mas { position: relative; width: 40px; }
.pill-btn--mas span { position: absolute; width: 16px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
.pill-btn--mas span:last-child { transform: rotate(90deg); }
.pill-btn--mas[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.pill-btn--mas[aria-expanded="true"] span:last-child { transform: rotate(135deg); }
.cabecera__der { padding-top: 12px; text-align: right; line-height: 1.7; color: var(--tinta-suave); }
.cabecera__der b { color: var(--tinta); font-weight: 500; }

/* ---------- Portada: reel vertical ---------- */
.reel { position: fixed; inset: 0; z-index: 1; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.reel__pista { position: absolute; left: 0; right: 0; top: 0; will-change: transform; }
.slide {
  --alto: 56dvh;
  height: var(--alto); display: flex; align-items: center; justify-content: center;
  padding: 8px 24px;
}
.slide__inner {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  will-change: transform, filter, opacity;
}
.slide a { display: block; height: 100%; width: min(100%, 720px); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.slide img {
  width: 100%; height: 100%; object-fit: contain; display: block; pointer-events: none;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55));
  transition: transform .5s var(--ease);
}
.slide.activa a:hover img { transform: scale(1.04) rotate(-1deg); }
.slide--agotado img { filter: grayscale(60%) brightness(.75) drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }

/* Cinta "agotado" cruzada sobre el producto */
.cinta-agotado {
  position: absolute; left: 50%; top: 50%; width: 140%; max-width: 900px;
  transform: translate(-50%, -50%) rotate(-9deg);
  background: var(--beige); color: var(--negro);
  font-family: var(--mono); font-size: 13px; letter-spacing: .2em; font-weight: 500;
  white-space: nowrap; overflow: hidden; padding: 7px 0; pointer-events: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .35);
}
/* Sticker de ahorro, pegado como en la calle */
.sticker {
  position: absolute; right: 12%; top: 10%; width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; pointer-events: none;
  background: var(--beige); color: var(--negro); transform: rotate(12deg);
  font-family: var(--serif); font-size: 20px; line-height: .95;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4), inset 0 0 0 3px var(--negro), inset 0 0 0 5px var(--beige), inset 0 0 0 6px var(--negro);
}
.sticker small { display: block; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; margin-top: 3px; }

/* Datos del producto activo */
.dato {
  position: fixed; left: 24px; bottom: 96px; z-index: 5; max-width: min(460px, 60vw);
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.dato > * { pointer-events: auto; }
.dato__num { display: flex; align-items: center; gap: 10px; color: var(--tinta-suave); }
.dato__num b { color: var(--beige); font-weight: 500; }
.dato__num i { width: 36px; height: 1px; background: var(--linea); }
.dato h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.2vw, 76px); line-height: .9; letter-spacing: -.01em; }
.dato__color { font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-suave); }
.dato__precio { display: flex; gap: 10px; align-items: baseline; }
.dato__precio s { color: var(--tinta-suave); }
.dato__ver { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; text-decoration: none; margin-top: 4px; }
.dato__ver span { transition: transform .3s var(--ease); }
.dato__ver:hover span { transform: translateX(4px); }
.dato.cambia > * { animation: sube .6s var(--ease) both; }
.dato.cambia > *:nth-child(2) { animation-delay: .04s; }
.dato.cambia > *:nth-child(3) { animation-delay: .08s; }
.dato.cambia > *:nth-child(4) { animation-delay: .12s; }
.dato.cambia > *:nth-child(5) { animation-delay: .16s; }
@keyframes sube { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

/* Riel de progreso, como las historias */
.riel {
  position: fixed; right: 24px; top: 50%; transform: translateY(-50%); z-index: 5;
  display: flex; flex-direction: column; gap: 5px; align-items: flex-end;
}
.riel button { width: 14px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: var(--linea); cursor: pointer; transition: width .4s var(--ease), background .4s; }
.riel button:hover { background: var(--tinta-suave); }
.riel button[aria-current="true"] { width: 34px; background: var(--beige); }
.desliza { position: fixed; right: 24px; bottom: 96px; z-index: 5; display: flex; align-items: center; gap: 10px; color: var(--tinta-suave); transition: opacity .6s; }
.desliza.oculta { opacity: 0; }
.desliza__raton { width: 18px; height: 28px; border: 1.5px solid currentColor; border-radius: 10px; position: relative; }
.desliza__raton::after { content: ''; position: absolute; left: 50%; top: 5px; width: 2px; height: 6px; margin-left: -1px; border-radius: 2px; background: currentColor; animation: rueda 1.6s ease-in-out infinite; }
@keyframes rueda { 60% { transform: translateY(8px); opacity: 0; } 100% { opacity: 0; } }

/* Cinta de calle que corre abajo */
.cinta {
  position: fixed; left: -4vw; right: -4vw; bottom: 26px; z-index: 6;
  transform: rotate(-1.6deg); overflow: hidden;
  background: var(--beige); color: var(--negro);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.cinta__track { display: flex; width: max-content; animation: corre 38s linear infinite; }
.cinta__track span { display: flex; gap: 28px; padding: 9px 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; white-space: nowrap; }
.cinta__track b { font-weight: 500; }
.cinta__track em { font-style: normal; font-family: var(--serif); letter-spacing: .02em; font-size: 15px; text-transform: none; line-height: 1; align-self: center; }
@keyframes corre { to { transform: translateX(-50%); } }
body:not(.en-reel) .cinta { display: none; }

@media (max-width: 700px) {
  .slide { --alto: 50dvh; padding: 8px 40px; }
  .dato { left: 16px; right: 56px; bottom: 82px; max-width: none; gap: 6px; }
  .dato h2 { font-size: 38px; }
  .dato__ver { padding: 10px 14px; }
  .riel { right: 14px; }
  .riel button { width: 10px; }
  .riel button[aria-current="true"] { width: 22px; }
  .desliza { display: none; }
  .sticker { width: 74px; height: 74px; font-size: 16px; right: 6%; top: 4%; }
  .cinta { bottom: 18px; }
}

/* ---------- Ficha de producto ---------- */
.ficha { position: relative; z-index: 1; min-height: 100dvh; }
.giro {
  position: relative; height: 54dvh; margin-top: 96px;
  display: grid; place-items: center;
  cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none;
  perspective: 1400px;
}
.giro.arrastrando { cursor: grabbing; }
.giro__escena { position: relative; width: min(88vw, 600px); height: 100%; transform-style: preserve-3d; }
.giro__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  pointer-events: none; will-change: transform, opacity;
  filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .55));
}
.giro__sombra {
  position: absolute; left: 50%; bottom: 4%; width: 46%; height: 26px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(6px);
}
.giro__pista {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; align-items: center; opacity: .75; transition: opacity .6s; white-space: nowrap;
}
.giro__pista.oculta { opacity: 0; }
.giro__pista i { font-style: normal; display: inline-block; animation: vaiven 1.6s ease-in-out infinite; }
.giro__pista i:last-child { animation-direction: reverse; }
@keyframes vaiven { 50% { transform: translateX(-4px); } }

.miniaturas {
  display: flex; gap: 6px; padding: 6px; border-radius: 12px;
  margin: 10px 16px 0; overflow-x: auto; scrollbar-width: none;
}
.miniaturas button {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 8px; padding: 4px;
  border: 1px solid transparent; background: rgba(255, 245, 230, .06); cursor: pointer;
  transition: border-color .25s, background .25s;
}
.miniaturas button[aria-current="true"] { border-color: var(--beige); background: rgba(255, 245, 230, .12); }
.miniaturas img { width: 100%; height: 100%; object-fit: contain; display: block; }

.info { padding: 14px 16px 110px; display: flex; flex-direction: column; gap: 10px; }
.info__card { border-radius: 12px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.info__cat { color: var(--tinta-suave); }
.info h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: .95; letter-spacing: -.005em; }
.info h1 small { display: block; font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-top: 8px; color: var(--tinta-suave); }
.info p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--tinta-suave); }
.fila { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--linea); }
.fila__titulo { display: flex; gap: 8px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%; display: block;
  box-shadow: inset 0 0 0 1px rgba(255, 245, 230, .3);
  transition: box-shadow .25s, transform .25s;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-current="page"] { box-shadow: inset 0 0 0 1px rgba(255, 245, 230, .3), 0 0 0 2px var(--negro), 0 0 0 3.5px var(--beige); }
.tallas { display: flex; gap: 6px; flex-wrap: wrap; }
.talla {
  min-width: 42px; height: 34px; padding: 0 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--linea); background: rgba(255, 245, 230, .04);
  font-family: var(--mono); font-size: 12px; transition: background .2s, border-color .2s;
}
.talla:hover { border-color: var(--beige); }
.talla[aria-pressed="true"] { background: var(--beige); color: var(--negro); border-color: var(--beige); }
.talla[disabled] { opacity: .4; cursor: not-allowed; }
.fila.falta .tallas { animation: tiembla .4s; }
@keyframes tiembla { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.estado { display: inline-flex; align-self: flex-start; padding: 3px 7px; border: 1px solid currentColor; border-radius: 4px; }
.estado--agotado { opacity: .6; }
.estado--preventa { background: var(--caramelo); color: var(--crema); border-color: var(--caramelo); }

.btn-principal {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; min-height: 54px; padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer;
  background: var(--beige); color: var(--negro);
  font-family: var(--mono); font-size: 13px; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .2s var(--ease), background .2s;
}
.btn-principal:hover { transform: translateY(-1px); background: #E4CDA6; }
.btn-principal:active { transform: translateY(1px); }
.btn-principal[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-principal.hecho { background: var(--crema); }
.precio { display: flex; align-items: baseline; gap: 10px; }

/* Precio que se derrite */
.derrite { position: relative; display: inline-block; opacity: .6; font-size: 13px; }
.derrite::after { content: ''; position: absolute; left: -2px; right: -2px; top: 54%; height: 1.5px; background: currentColor; transform-origin: left; animation: tacha .6s var(--ease) .3s both; }
@keyframes tacha { from { transform: scaleX(0); } }
.derrite i {
  position: absolute; top: 54%; width: 3px; border-radius: 0 0 3px 3px; background: currentColor;
  height: 0; animation: gotea 2.6s cubic-bezier(.5, 0, .75, 0) infinite; animation-delay: var(--d);
}
.derrite i::after { content: ''; position: absolute; left: 50%; bottom: -3px; width: 5px; height: 5px; border-radius: 50%; background: currentColor; transform: translateX(-50%); }
@keyframes gotea { 0%, 25% { height: 0; opacity: 1; } 75% { height: 11px; opacity: 1; } 100% { height: 14px; opacity: 0; } }
.ahorro { padding: 3px 8px; border-radius: 4px; background: var(--beige); color: var(--negro); font-weight: 500; }

.volver { display: none; }

@media (min-width: 900px) and (min-height: 560px) {
  .ficha { position: fixed; inset: 0; min-height: 0; }
  .giro { position: absolute; inset: 0; height: auto; margin: 0; }
  .giro__escena { width: min(46vw, 640px); height: 70dvh; }
  .giro__pista { top: auto; bottom: 112px; }
  .miniaturas { position: fixed; left: 24px; bottom: 30px; margin: 0; max-width: 40vw; }
  .info { position: fixed; right: 24px; bottom: 30px; width: 375px; padding: 0; }
  .volver { display: inline-flex; gap: 6px; align-items: center; text-decoration: none; padding: 8px 12px; border-radius: 999px; position: fixed; left: 24px; top: 116px; z-index: 5; }
}
@media (min-width: 900px) and (max-width: 1400px) and (min-height: 560px) {
  .giro { right: 400px; }
  .giro__escena { width: min(52vw, 620px); }
}

/* ---------- Menú y carrito ---------- */
.velo { position: fixed; inset: 0; z-index: 34; background: rgba(0, 0, 0, .4); }
.menu {
  position: fixed; top: 100px; left: 24px; z-index: 35;
  width: min(340px, calc(100vw - 48px)); padding: 10px; border-radius: 16px;
  display: flex; flex-direction: column;
  background: rgba(20, 16, 13, .55);
  animation: entra .35s var(--ease);
}
@keyframes entra { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.menu__item { display: flex; justify-content: space-between; align-items: center; padding: 12px; border-radius: 10px; text-decoration: none; font-family: var(--serif); font-size: 28px; }
.menu__item i { font-style: normal; font-family: var(--mono); font-size: 13px; color: var(--beige); }
.menu__item:hover { background: rgba(255, 245, 230, .07); }
.menu__nota { margin: 8px 12px 6px; padding-top: 12px; border-top: 1px solid var(--linea); color: var(--tinta-suave); line-height: 1.6; }

.carrito {
  position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 36;
  width: min(420px, calc(100vw - 24px)); border-radius: 18px; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(20, 16, 13, .6);
  animation: entra-der .4s var(--ease);
}
@keyframes entra-der { from { opacity: 0; transform: translateX(24px); } }
.carrito__top { display: flex; justify-content: space-between; align-items: center; }
.carrito h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; }
.cerrar { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--linea); background: transparent; font-size: 22px; cursor: pointer; }
.carrito__items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.vacio { margin: auto; text-align: center; color: var(--tinta-suave); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.vacio span { font-family: var(--serif); font-size: 26px; color: var(--tinta); }
.linea { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(255, 245, 230, .05); }
.linea img { width: 72px; height: 72px; object-fit: contain; }
.linea b { display: block; font-size: 14px; }
.linea small { display: block; color: var(--tinta-suave); margin-top: 2px; }
.cantidad { display: flex; align-items: center; gap: 4px; margin-top: 6px; }
.cantidad button { width: 26px; height: 26px; border-radius: 999px; border: 1px solid var(--linea); background: transparent; cursor: pointer; }
.linea__precio { font-family: var(--mono); font-size: 12px; align-self: start; padding-top: 4px; }
.carrito__pie { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--linea); padding-top: 14px; }
.carrito__total { display: flex; justify-content: space-between; font-size: 13px; }
.carrito__total strong { font-weight: 500; color: var(--beige); }
.carrito__nota { margin: 0; color: var(--tinta-suave); text-align: center; font-size: 11px; }
#pedir { justify-content: center; text-decoration: none; }
#pedir[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- Reseñas ---------- */
.estrellas { position: relative; display: inline-block; font-size: 14px; letter-spacing: 2px; line-height: 1; font-family: var(--sans); }
.estrellas::before {
  content: '★★★★★';
  background: linear-gradient(90deg, var(--beige) calc(var(--v) / 5 * 100%), rgba(243, 235, 221, .22) 0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.dato__estrellas { display: flex; align-items: center; gap: 8px; color: var(--tinta-suave); }
.dato.cambia > *:nth-child(6) { animation-delay: .2s; }
.opiniones {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 8px;
  margin-top: -4px; padding: 4px 0; border: 0; background: none; cursor: pointer; color: var(--tinta-suave);
}
.opiniones span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--linea); transition: color .2s; }
.opiniones:hover span { color: var(--tinta); }
.resenas small { display: block; color: var(--tinta-suave); margin-top: 4px; }
.resenas__cifra { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.resenas__cifra:empty { display: none; }
.resenas__cifra b { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; }
.resenas__cifra .estrellas { font-size: 18px; }
.resenas__cifra span { flex-basis: 100%; color: var(--tinta-suave); }
.resenas__cargando { color: var(--tinta-suave); margin: auto; }
.resena { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: rgba(255, 245, 230, .05); }
.resena__top { display: flex; justify-content: space-between; align-items: center; color: var(--tinta-suave); }
.resena p { margin: 0; font-size: 14px; line-height: 1.5; white-space: pre-line; }
.resena__foto img { display: block; width: 100%; max-height: 260px; object-fit: cover; border-radius: 8px; }
.resena__quien { color: var(--tinta-suave); font-size: 11px; }
.resena__quien b { color: var(--tinta); font-weight: 500; }
.resena__quien i { font-style: normal; color: var(--beige); }
#resenas-escribir { text-decoration: none; }

.pagina--resena { display: flex; flex-direction: column; gap: 12px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > span { color: var(--tinta-suave); }
.campo input, .campo textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--linea);
  background: rgba(0, 0, 0, .25); color: var(--tinta); font: inherit; font-size: 16px; resize: vertical;
}
.campo input:focus, .campo textarea:focus { outline: 0; border-color: var(--beige); }
.campo--foto { position: relative; }
.campo--foto input { position: absolute; inset: auto 0 0; height: 46px; opacity: 0; cursor: pointer; }
.campo--foto i { font-style: normal; display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 10px; border: 1px dashed var(--vidrio-borde); color: var(--beige); pointer-events: none; }
.campo--foto:focus-within i { border-color: var(--beige); }
.elegir-estrellas { display: flex; gap: 4px; }
.elegir-estrellas button {
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--linea); background: rgba(0, 0, 0, .2);
  font-size: 22px; line-height: 1; color: rgba(243, 235, 221, .25); cursor: pointer; transition: color .15s, transform .15s, border-color .15s;
}
.elegir-estrellas button:hover { transform: translateY(-2px); }
.elegir-estrellas button.on { color: var(--beige); border-color: rgba(216, 190, 148, .5); }
.elegir-estrellas button:focus-visible { outline: 2px solid var(--beige); outline-offset: 2px; }
.form-resena__prod { display: flex; align-items: center; gap: 12px; }
.form-resena__prod img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: rgba(255, 245, 230, .05); }
.form-resena__prod b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1; }
.form-resena__error { margin: 0; color: #F2B63A; min-height: 0; }
.form-resena__error:empty { display: none; }
.form-resena__hecho { margin: 0; color: var(--beige); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Lo que quiere la gente ---------- */
.pide {
  position: fixed; right: 24px; top: 104px; z-index: 5;
  display: inline-flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 999px; text-decoration: none;
}
.pide span { transition: transform .3s var(--ease); }
.pide:hover span { transform: translateX(4px); }
.pagina--buzon { max-width: 1040px; display: grid; gap: 14px; align-items: start; }
@media (min-width: 900px) { .pagina--buzon { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  height: 34px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--linea); background: rgba(255, 245, 230, .04);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; transition: background .2s, border-color .2s;
}
.chip:hover { border-color: var(--beige); }
.chip[aria-checked="true"] { background: var(--beige); color: var(--negro); border-color: var(--beige); }
.chip:focus-visible, .pedido__voto:focus-visible { outline: 2px solid var(--beige); outline-offset: 2px; }
.form-resena__error a { color: var(--beige); }
.muro { display: flex; flex-direction: column; gap: 10px; }
.pagina .muro__titulo { margin: 4px 2px 0; font-family: var(--serif); font-weight: 400; font-size: 32px; letter-spacing: 0; text-transform: none; color: var(--tinta); }
.muro__lista { display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.muro__lista .vacio { padding: 28px 0; }
.pedido {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 12px 12px 14px; border-radius: 12px; background: rgba(20, 16, 13, .45); border: 1px solid var(--linea);
}
.pedido__pos { color: var(--beige); }
.pedido__cuerpo { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pedido__cuerpo p { margin: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.pedido__cuerpo span { color: var(--tinta-suave); font-size: 11px; }
.pedido__cuerpo i { font-style: normal; color: var(--beige); }
.pedido--traida { border-color: rgba(216, 190, 148, .45); }
.pedido__voto {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; padding: 8px 10px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--linea); background: rgba(255, 245, 230, .05); font-size: 10px; transition: background .2s, border-color .2s;
}
.pedido__voto span { font-family: var(--serif); font-size: 22px; letter-spacing: 0; line-height: 1; }
.pedido__voto:hover:not([disabled]) { border-color: var(--beige); }
.pedido__voto[aria-pressed="true"] { background: var(--beige); color: var(--negro); border-color: var(--beige); cursor: default; }
@media (max-width: 700px) {
  .pide { top: 80px; right: 14px; padding: 8px 12px; font-size: 11px; }
}

/* ---------- WhatsApp flotante ---------- */
.wa {
  position: fixed; right: 24px; bottom: 28px; z-index: 20;
  display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; text-decoration: none;
  background: rgba(20, 16, 13, .6); transition: transform .3s var(--ease), bottom .5s var(--ease), right .5s var(--ease);
}
.wa:hover { transform: translateY(-2px); }
.wa__icono { flex: none; width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: #25D366; fill: #fff; box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); animation: llama-wa 2.6s ease-in-out infinite; }
@keyframes llama-wa { 50% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); } }
.wa__texto { white-space: nowrap; }
body.en-reel .wa { bottom: 140px; }
@media (min-width: 900px) and (min-height: 560px) {
  body.en-ficha .wa { right: 415px; bottom: 30px; }
}
@media (max-width: 700px) {
  .wa { right: 14px; bottom: 18px; padding: 4px; }
  .wa__icono { width: 46px; height: 46px; padding: 11px; }
  .wa__texto { display: none; }
  body.en-reel .wa { bottom: 84px; }
}

/* ---------- Página simple (envíos) ---------- */
.pagina { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 130px 18px 120px; }
.pagina .info__card { gap: 16px; background: rgba(20, 16, 13, .45); }
.pagina h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; }
.pagina h2 { margin: 0 0 4px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--beige); }
.pagina p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--tinta-suave); }

/* ---------- Entrada: la tienda de noche en el valle; al entrar, la cámara cruza la puerta ---------- */
#intro {
  position: fixed; inset: 0; z-index: 100; background: #070504; cursor: pointer;
  transition: transform 1.1s cubic-bezier(.7, 0, .2, 1);
  --suelo: 86%;
}
#intro.sale { transform: translateY(calc(100% + 130px)); }
#intro.fuera { display: none; }
.entrada__marco { position: absolute; inset: 0; overflow: hidden; }
.entrada__camara { position: absolute; inset: 0; transition: transform 1.7s cubic-bezier(.6, 0, .25, 1) .35s; will-change: transform; }
.entrada__cielo {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 84% 14%, rgba(243, 235, 221, .9) 0 1.6vmin, rgba(243, 235, 221, .12) 1.8vmin, transparent 9vmin),
    radial-gradient(90% 50% at 50% var(--suelo), rgba(169, 130, 79, .3), transparent 70%),
    linear-gradient(#050404 0%, #0d0a08 50%, #1c140e var(--suelo));
}
.entrada__montes { position: absolute; left: 0; width: 100%; bottom: calc(100% - var(--suelo)); height: 46%; }
.entrada__montes .luz { animation: titila var(--t, 3s) ease-in-out var(--d, 0s) infinite alternate; }
@keyframes titila { to { opacity: .2; } }
.palmera {
  position: absolute; bottom: calc(100% - var(--suelo)); height: 78%; aspect-ratio: 210 / 400; fill: #030202;
  transform-origin: 50% 100%; animation: mece 7s ease-in-out infinite alternate;
}
.palmera--izq { left: max(-4vw, calc(50% - 860px)); }
.palmera--der { right: max(-4vw, calc(50% - 860px)); --lado: -1; animation-delay: -3s; height: 70%; }
@keyframes mece { from { transform: scaleX(var(--lado, 1)) rotate(-1.4deg); } to { transform: scaleX(var(--lado, 1)) rotate(1.4deg); } }
.entrada__calle {
  position: absolute; left: 0; right: 0; top: var(--suelo); bottom: 0;
  background: linear-gradient(#120d0a, #040303); border-top: 1px solid rgba(216, 190, 148, .35);
}

.fachada {
  position: absolute; left: 50%; bottom: calc(100% - var(--suelo)); transform: translateX(-50%);
  width: min(84vw, 980px, 112vh); aspect-ratio: 16 / 9.6;
  display: grid; grid-template-rows: 19% 1fr;
  -webkit-box-reflect: below 0 linear-gradient(transparent 66%, rgba(255, 255, 255, .2));
}
.fachada__marquesina {
  position: relative; display: grid; place-items: center;
  background: linear-gradient(#211913, #110c09); border: 1px solid rgba(216, 190, 148, .25); border-bottom: 2px solid var(--caramelo);
  box-shadow: 0 -30px 60px rgba(0, 0, 0, .6);
}
.fachada__letrero { width: 38%; height: 72%; filter: drop-shadow(0 0 4px rgba(243, 235, 221, .9)) drop-shadow(0 0 20px rgba(216, 190, 148, .6)); animation: neon 7s steps(1) infinite; }
.fachada__letrero span {
  display: block; width: 100%; height: 100%; background: var(--crema);
  -webkit-mask: url(assets/logo.svg) center / contain no-repeat; mask: url(assets/logo.svg) center / contain no-repeat;
}
@keyframes neon { 0%, 100% { opacity: 1; } 61% { opacity: .55; } 62% { opacity: 1; } 64% { opacity: .4; } 65% { opacity: 1; } }
.fachada__bombillos { position: absolute; left: 3%; right: 3%; bottom: -7px; display: flex; justify-content: space-between; }
.fachada__bombillos i {
  width: 6px; height: 6px; border-radius: 50%; background: #F6D58E; box-shadow: 0 0 8px 2px rgba(246, 213, 142, .7);
  animation: bombillo 2.4s ease-in-out calc(var(--n) * .12s) infinite;
}
@keyframes bombillo { 0%, 100% { opacity: 1; } 50% { opacity: .25; box-shadow: none; } }
.fachada__frente {
  display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 2.2%;
  padding: 2.4% 2.4% 0; background: linear-gradient(#1a1410, #0e0a08);
  border-left: 1px solid rgba(216, 190, 148, .2); border-right: 1px solid rgba(216, 190, 148, .2);
}
.vitrina, .puerta { position: relative; overflow: hidden; border: 2px solid var(--caramelo); border-bottom: 0; }
.vitrina { container-type: size; background: radial-gradient(70% 45% at 50% 0%, rgba(246, 213, 142, .35), transparent 70%), linear-gradient(#2e2117, #130d09); }
.vitrina::after, .puerta__hoja::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 255, 255, .08) 36%, transparent 44%, transparent 62%, rgba(255, 255, 255, .05) 67%, transparent 72%);
}
.repisa { position: absolute; left: 10%; right: 10%; height: 2px; background: var(--beige); box-shadow: 0 0 14px 2px rgba(216, 190, 148, .55); }
.repisa:nth-child(1) { top: 46%; }
.repisa:nth-child(2) { top: 90%; }
.repisa img {
  position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 92%; height: 36cqh; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .6));
}
.puerta__adentro {
  position: absolute; inset: 0; transition: filter 1s;
  background: radial-gradient(80% 60% at 50% 18%, #F6DDA9 0%, #B08550 34%, #3c2a1a 72%, #1a120c 100%);
  filter: brightness(.75);
}
.puerta__muro {
  position: absolute; left: 18%; right: 18%; top: 10%; height: 26%;
  background: var(--negro);
  -webkit-mask: url(assets/logo.svg) center / contain no-repeat; mask: url(assets/logo.svg) center / contain no-repeat;
  opacity: .85;
}
.puerta__oso { position: absolute; left: 50%; bottom: 20%; width: 46%; transform: translateX(-50%); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .5)); }
.puerta__mostrador {
  position: absolute; left: 12%; right: 12%; bottom: 0; height: 22%;
  background: linear-gradient(#1c140e, #0c0806); border-top: 3px solid var(--beige); box-shadow: 0 -4px 18px rgba(246, 213, 142, .35);
}
.puerta__hoja {
  position: absolute; top: 0; bottom: 0; width: 50%;
  background: rgba(20, 16, 13, .28); border: 1px solid rgba(216, 190, 148, .45);
  transition: transform .95s cubic-bezier(.7, 0, .2, 1);
}
.puerta__hoja--izq { left: 0; }
.puerta__hoja--der { right: 0; }
.puerta__hoja::before { content: ''; position: absolute; top: 40%; height: 22%; width: 3px; border-radius: 2px; background: var(--beige); box-shadow: 0 0 8px rgba(216, 190, 148, .6); }
.puerta__hoja--izq::before { right: 10%; }
.puerta__hoja--der::before { left: 10%; }
.entrar {
  position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); z-index: 2;
  padding: .55em 1.3em; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: rgba(20, 16, 13, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--beige); color: var(--crema);
  font-family: var(--serif); font-size: clamp(18px, 2.6vw, 30px); letter-spacing: .06em; text-transform: uppercase;
  animation: llama 2.2s ease-in-out infinite; transition: opacity .3s;
}
.entrar:focus-visible { outline: 2px solid var(--crema); outline-offset: 4px; }
@keyframes llama { 0%, 100% { box-shadow: 0 0 0 0 rgba(216, 190, 148, .5); } 50% { box-shadow: 0 0 0 12px rgba(216, 190, 148, 0); } }
#intro.entrando { cursor: default; }
#intro.entrando .entrar { opacity: 0; }
#intro.entrando .puerta__hoja--izq { transform: translateX(-101%); }
#intro.entrando .puerta__hoja--der { transform: translateX(101%); }
#intro.entrando .puerta__adentro { filter: brightness(1.1); }
#intro.entrando .intro__lugar { opacity: 0; transition: opacity .3s; }

.intro__lugar { position: absolute; top: max(22px, 4vh); left: 16px; right: 16px; text-align: center; color: var(--tinta-suave); opacity: 0; animation: aparece .8s var(--ease) .7s forwards; }
@keyframes aparece { to { opacity: 1; } }
.intro__gotas { position: absolute; left: 0; top: 100%; width: 100%; height: 120px; fill: #040303; margin-top: -1px; }

/* En el celular la tienda es más alta que ancha. */
@media (max-aspect-ratio: 4 / 5) {
  #intro { --suelo: 80%; }
  /* En pantallas bajitas se encoge para que el letrero quede por debajo de la fecha. */
  .fachada { width: min(90vw, (80vh - 104px) * 3 / 4.4); width: min(90vw, (80dvh - 104px) * 3 / 4.4); aspect-ratio: 3 / 4.4; grid-template-rows: 15% 1fr; }
  .fachada__letrero { width: 62%; }
  .fachada__frente { grid-template-columns: .62fr 1.2fr .62fr; }
  .palmera { height: 58%; }
  .palmera--der { height: 52%; }
  .entrada__montes { height: 34%; }
}

/* ---------- Transición entre vistas ---------- */
#app > * { animation: vista .6s var(--ease); }
@keyframes vista { from { opacity: 0; } }

@media (max-width: 520px) {
  .cabecera { top: 14px; left: 14px; right: 14px; }
  .marca__logo { width: 96px; height: 52px; }
  .cabecera__der { padding-top: 8px; font-size: 10px; }
  .menu { top: 84px; left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cinta__track { animation: none; }
}
