/* Percha · concepto de boutique editorial */
:root {
  --crema: #F5F1EA;
  --papel: #FBF8F3;
  --tinta: #111111;
  --gris: #5C554D;
  --linea: #E2DACD;
  --terracota: #B8664A;
  --terracota-txt: #8E4A30;
  --wa: #25D366;
  --f-tit: "Playfair Display", Georgia, serif;
  --f-txt: "Manrope", system-ui, sans-serif;
  --top-h: 96px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body { margin: 0; background: var(--crema); color: var(--tinta); font: 400 1rem/1.6 var(--f-txt); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--f-tit); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a, button, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--tinta); color: var(--crema); border-radius: 6px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.nota { margin-top: 14px; font-size: .875rem; color: var(--gris); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em; border: 0; border-radius: 999px;
  font: 600 1rem/1 var(--f-txt); text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), background-color .25s;
}
.btn svg { width: 1.25em; height: 1.25em; }
.btn:active { transform: scale(.97); }
.btn--negro { background: var(--tinta); color: var(--crema); }
.btn--negro:hover { background: #2A2724; }
.btn--wa { background: var(--wa); color: #052E16; }
.redondo { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--linea); border-radius: 50%; background: var(--papel); cursor: pointer; transition: background-color .2s; }
.redondo:hover { background: #fff; }
.redondo svg { width: 20px; height: 20px; }

/* ---------- Barra de concepto + navegación ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 50; }
.concepto { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; min-height: 32px; padding: 6px 16px; background: var(--tinta); color: #D9D2C6; font-size: .8125rem; text-align: center; }
.concepto strong { color: #fff; font-weight: 600; }
.concepto__cta { color: #F0B79E; font-weight: 600; text-underline-offset: 3px; }
.nav {
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 max(16px, calc((100% - 1180px) / 2));
  background: rgba(245, 241, 234, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linea);
}
.logo { font: italic 500 1.9rem/1 var(--f-tit); text-decoration: none; letter-spacing: -.02em; }
.nav__links { display: none; gap: 28px; }
.nav__links a { text-decoration: none; font-weight: 500; padding: 10px 0; }
.nav__links a:hover { color: var(--terracota-txt); }
.nav__bolsa { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; }
.nav__bolsa svg { width: 26px; height: 26px; }
.nav__cuenta { position: absolute; top: 6px; right: 4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--terracota); color: #fff; font: 700 .6875rem/19px var(--f-txt); text-align: center; }
@media (min-width: 860px) { .nav__links { display: flex; } }

/* ---------- Componente prenda: base gris + vistas teñidas (dodge + multiply limitados por la tela) ---------- */
.prenda { position: relative; aspect-ratio: var(--ar, .76); }
.prenda img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tinte { position: absolute; inset: 0; isolation: isolate; }
.tinte span {
  position: absolute; inset: 0;
  -webkit-mask: var(--mascara) center / 100% 100% no-repeat; mask: var(--mascara) center / 100% 100% no-repeat;
}
.tinte .t-dodge { mix-blend-mode: color-dodge; }
.tinte .t-mult { mix-blend-mode: multiply; }

/* ---------- Perchero (metal negro, prendas con física de péndulo) ---------- */
.perchero { position: relative; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.riel { position: relative; width: var(--rw); height: var(--rh); margin-inline: auto; will-change: transform; }
.riel__barra { position: absolute; left: 0; right: 0; top: 0; height: 7px; border-radius: 4px; background: linear-gradient(#3A3733, #111 60%); box-shadow: 0 2px 0 rgba(255, 255, 255, .15) inset, 0 6px 10px -6px rgba(0, 0, 0, .5); }
.riel__pata { position: absolute; top: 0; bottom: 0; width: 6px; border-radius: 3px; background: linear-gradient(90deg, #111, #3A3733 50%, #111); }
.riel__pata--a { left: 0; } .riel__pata--b { right: 0; }
.riel__pata::after { content: ""; position: absolute; bottom: 0; left: -26px; width: 58px; height: 6px; border-radius: 3px; background: #111; }
.riel__piso { position: absolute; left: 4%; right: 4%; bottom: -10px; height: 24px; border-radius: 50%; background: radial-gradient(closest-side, rgba(17, 17, 17, .16), transparent); }
.colgada { position: absolute; top: 0; width: var(--pw); transform-origin: 50% 0; will-change: transform; }
.colgada__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.colgada .prenda { filter: drop-shadow(0 16px 18px rgba(17, 17, 17, .14)); transition: filter .35s var(--ease); }
.colgada.encendida .prenda { filter: drop-shadow(0 22px 26px rgba(17, 17, 17, .2)) brightness(1.06); }
.colgada__btn:focus-visible { outline: 2px solid var(--tinta); outline-offset: 6px; }
.colgada.afuera { visibility: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding-top: var(--top-h); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.hero__texto { position: relative; z-index: 2; padding: 28px 16px 0; text-align: center; }
.hero__titulo { font: italic 500 clamp(4.6rem, 2rem + 13vw, 11rem)/.86 var(--f-tit); letter-spacing: -.045em; }
.hero__titulo { white-space: nowrap; }
.hero__titulo .letra { display: inline-block; }
.hero__sub { margin-top: 14px; font: 500 clamp(1.125rem, 1rem + .6vw, 1.5rem)/1.3 var(--f-txt); color: var(--gris); }
.hero__cta { margin-top: 22px; }
.perchero--hero { align-self: center; padding: 12px 0 56px; min-height: calc(min(32vw, 130px) * 1.402 + 46px + 68px); }
.hero__saltar { position: absolute; z-index: 5; right: 16px; bottom: 16px; min-height: 44px; padding: 0 18px; border: 1px solid var(--tinta); border-radius: 999px; background: var(--papel); font-weight: 600; cursor: pointer; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); grid-template-rows: 1fr; align-items: center; }
  .hero__texto { text-align: left; padding: 0 0 0 max(32px, calc((100vw - 1180px) / 2)); }
  .hero__titulo { font-size: clamp(5rem, 9vw, 9.5rem); }
  .perchero--hero { align-self: center; padding: 40px 0; min-height: calc(min(230px, 15.5vw) * 1.402 + 126px); margin-right: max(24px, calc((100vw - 1180px) / 2 - 40px)); }
}
/* Estado inicial de la intro (lo anima el JS) */
.intro .hero__texto > * { opacity: .01; }

/* ---------- Secciones ---------- */
.sec { padding-block: clamp(64px, 9vw, 120px); }
.sec__head { max-width: 40rem; margin-bottom: 32px; }
.sec__head h2, .envios h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); line-height: 1.02; letter-spacing: -.03em; }
.sec__head p { margin-top: 12px; color: var(--gris); font-size: 1.0625rem; }
.sec--perchero { background: var(--papel); border-block: 1px solid var(--linea); }
.sec--perchero .sec__head { text-align: center; margin-inline: auto; }
.perchero--tienda { cursor: grab; padding-top: 10px; }
.perchero--tienda:active { cursor: grabbing; }
.perchero__mandos { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }
.perchero__ayuda { color: var(--gris); font-size: .9375rem; }

.looks { display: grid; gap: 18px; }
.look { display: grid; grid-template-rows: auto 1fr; border-radius: 4px; overflow: hidden; background: var(--papel); border: 1px solid var(--linea); }
.look__escena { position: relative; height: 300px; background: linear-gradient(#EFE8DC, #E7DED0); display: flex; justify-content: center; align-items: flex-end; gap: 0; padding-top: 16px; overflow: hidden; }
.look__pieza { width: 150px; margin-inline: -16px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .45s var(--ease); }
.look__pieza:hover { transform: translateY(-6px) rotate(-1.5deg); }
.look__pieza:nth-child(2) { margin-top: 34px; }
.look__escena .prenda { filter: drop-shadow(0 14px 16px rgba(17, 17, 17, .16)); }
.look__precio { font-weight: 700; color: var(--tinta) !important; }
.look__txt { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.look__txt h3 { font-size: 1.6rem; }
.look__txt p { color: var(--gris); }
.look__txt .btn { margin-top: 10px; align-self: flex-start; min-height: 46px; }
@media (min-width: 860px) { .looks { grid-template-columns: repeat(3, 1fr); } }

.sec--claro { background: var(--papel); border-block: 1px solid var(--linea); }
.pasos { display: grid; gap: 22px; }
.pasos li { padding-top: 18px; border-top: 1px solid var(--tinta); }
.pasos__n { font: italic 500 2.6rem/1 var(--f-tit); color: var(--terracota-txt); }
.pasos h3 { margin-top: 8px; font-size: 1.5rem; }
.pasos p { margin-top: 6px; color: var(--gris); }
@media (min-width: 760px) { .pasos { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.envios__grid { display: grid; gap: 20px; margin-top: 28px; }
.envios__grid h3 { font-size: 1.35rem; }
.envios__grid p { margin-top: 6px; color: var(--gris); }
@media (min-width: 760px) { .envios__grid { grid-template-columns: repeat(3, 1fr); } }

.pie { padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); background: var(--tinta); color: #D9D2C6; font-size: .9375rem; }
.pie p + p { margin-top: 8px; }
.pie strong { color: #fff; }
.pie a { color: #F0B79E; }

/* ---------- Probador ---------- */
.probador { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 12px; }
.probador__fondo { position: absolute; inset: 0; background: rgba(245, 241, 234, .72); -webkit-backdrop-filter: blur(10px) saturate(.9); backdrop-filter: blur(10px) saturate(.9); }
.probador__cerrar { position: fixed; z-index: 3; right: max(12px, env(safe-area-inset-right)); width: 48px; height: 48px; }
.probador__caja { position: relative; z-index: 2; width: min(1040px, 100%); max-height: 100%; overflow: auto; display: grid; gap: 8px; align-items: center; overscroll-behavior: contain; }
.probador__figura { margin: 0; justify-self: center; width: min(52vw, 300px); transform-origin: 0 0; }
.probador__figura .prenda { filter: drop-shadow(0 24px 28px rgba(17, 17, 17, .18)); cursor: crosshair; }
.probador__panel { background: var(--papel); border: 1px solid var(--linea); border-radius: 6px; padding: 18px 18px 20px; }
.probador__linea { font-size: .8125rem; font-weight: 600; color: var(--terracota-txt); }
.probador__titulo { margin-top: 4px; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem); line-height: 1.05; letter-spacing: -.02em; }
.probador__precio { margin-top: 8px; font: 700 1.5rem/1 var(--f-txt); font-variant-numeric: tabular-nums; }
.probador__extra { margin-left: 8px; font-size: .875rem; font-weight: 500; color: var(--gris); }
.opciones { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.opciones legend { padding: 0; font-weight: 600; font-size: .9375rem; }
.opciones legend span { font-weight: 500; color: var(--gris); }
.muestras { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.muestra { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1px solid rgba(17, 17, 17, .18); background: var(--c); cursor: pointer; box-shadow: inset 0 -6px 10px rgba(0, 0, 0, .12), inset 0 4px 8px rgba(255, 255, 255, .18); transition: transform .25s var(--ease), box-shadow .25s; }
.muestra:hover { transform: scale(1.08); }
.muestra[aria-checked="true"] { box-shadow: 0 0 0 2px var(--papel), 0 0 0 4px var(--tinta), inset 0 -6px 10px rgba(0, 0, 0, .12); }
.tallas { position: relative; display: inline-flex; gap: 4px; margin-top: 10px; padding: 4px; border-radius: 999px; background: #EDE6DA; }
.tallas button { position: relative; z-index: 1; min-width: 46px; height: 40px; padding: 0 10px; border: 0; border-radius: 999px; background: none; font-weight: 600; cursor: pointer; transition: color .3s; }
.tallas button[aria-checked="true"] { color: var(--crema); }
.tallas__marca { position: absolute; z-index: 0; top: 4px; left: 0; height: 40px; width: var(--w, 46px); border-radius: 999px; background: var(--tinta); transform: translateX(var(--x, 4px)); transition: transform .45s var(--ease), width .45s var(--ease); }
.probador__agregar { width: 100%; margin-top: 20px; }
@media (min-width: 760px) {
  .probador__caja { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; }
  .probador__figura { width: min(34vw, 380px); }
  .probador__panel { padding: 30px 28px; }
}
@media (max-width: 759px) { .probador__figura { width: min(48vw, 220px, calc(38svh * .76)); } }
.probando .top { z-index: 105; }
.probador { padding-top: calc(var(--top-h) + 8px); }
.probador__cerrar { top: calc(var(--top-h) + 10px); }
.probador__caja { max-height: calc(100svh - var(--top-h) - 20px); }

/* ---------- Bolsa lateral ---------- */
.bolsa { position: fixed; inset: 0; z-index: 110; }
.bolsa__fondo { position: absolute; inset: 0; background: rgba(17, 17, 17, .38); }
.bolsa__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--papel); box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .35); }
.bolsa__cab { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 14px; border-bottom: 1px solid var(--linea); }
.bolsa__cab h2 { font-size: 1.8rem; }
.bolsa__lista { flex: 1; overflow: auto; padding: 8px 18px; overscroll-behavior: contain; }
.bolsa__item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--linea); }
.bolsa__item .prenda { width: 64px; }
.bolsa__item h3 { font-size: 1.15rem; }
.bolsa__item p { font-size: .875rem; color: var(--gris); }
.bolsa__item strong { font-variant-numeric: tabular-nums; }
.bolsa__quitar { border: 0; background: none; color: var(--gris); text-decoration: underline; font-size: .8125rem; cursor: pointer; min-height: 44px; }
.bolsa__vacia { padding: 24px 18px; color: var(--gris); }
.bolsa__pie { padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--linea); }
.bolsa__total { display: flex; justify-content: space-between; font-size: 1.125rem; }
.bolsa__total strong { font-variant-numeric: tabular-nums; }
.bolsa__pedir { width: 100%; margin-top: 14px; }

/* Miniatura que vuela a la bolsa */
.vuela { position: fixed; z-index: 130; left: 0; top: 0; width: 90px; transform-origin: 0 0; pointer-events: none; will-change: transform; }
.nav__bolsa.rebota { animation: rebota .55s var(--ease); }
@keyframes rebota { 30% { transform: scale(1.22) rotate(-8deg); } 60% { transform: scale(.94) rotate(4deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}
