@font-face { font-family: 'Marcellus'; font-weight: 400; font-display: swap; src: url(../fuentes/marcellus-400.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 300; font-display: swap; src: url(../fuentes/jost-300.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 400; font-display: swap; src: url(../fuentes/jost-400.woff2) format('woff2'); }
@font-face { font-family: 'Jost'; font-weight: 500; font-display: swap; src: url(../fuentes/jost-500.woff2) format('woff2'); }

:root {
  /* beige sobrio: cálido pero agrisado, ni blanco ni amarillo */
  --beige: #e6dfd4; --beige-2: #dcd3c6; --beige-3: #cfc4b4;
  --crema: #ece0c8; --crema-2: #e2d3b6;
  --cuero: #1b130e; --cuero-2: #2b211b;
  --tinta: #221a14; --tinta-2: rgba(34,26,20,.62); --linea: rgba(34,26,20,.16);
  --hueso: #f2eee7;
  --serif: 'Marcellus', 'Times New Roman', serif;
  --sans: 'Jost', system-ui, sans-serif;
  --curva: cubic-bezier(.16, 1, .3, 1);
  --curva-2: cubic-bezier(.7, 0, .2, 1);
  --gutter: clamp(16px, 4vw, 64px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; font-family: var(--sans); font-weight: 400; font-size: 16px; color: var(--tinta); background: var(--beige); line-height: 1.55; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
.ph { background: #f0dc8a; color: #3b2a00; padding: 0 .3em; font-size: .92em; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* enlaces y botón (uno solo, rectangular) */
.enlace { display: inline-flex; gap: .6em; align-items: baseline; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .5s var(--curva); }
.enlace:hover { background-size: 40% 1px; }
.boton { display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 16px 22px; background: var(--cuero); color: var(--hueso); text-decoration: none; font-size: 15px; letter-spacing: .02em; border: 0; transition: background .3s; }
.boton:hover { background: #000; }

/* revelados de entrada: el estado oculto solo con .js */
.linea-m { display: block; overflow: hidden; padding: .12em 0 .16em; margin: -.12em 0 -.16em; }
.linea-m > span { display: block; }
.js.revela .entra .linea-m > span, .js [data-hero] .entra .linea-m > span { transform: translateY(135%); }
.js .entra.ok .linea-m > span { transform: none; transition: transform 1.3s var(--curva); transition-delay: calc(var(--d, 0) * 110ms + 200ms); }
.js.revela .aparece, .js [data-hero] .aparece { opacity: 0; transform: translateY(14px); }
.js .ok .aparece, .js .aparece.ok { opacity: 1; transform: none; transition: opacity 1s ease, transform 1.2s var(--curva); transition-delay: calc(var(--d, 0) * 110ms + 300ms); }

/* ---------- Armador ---------- */
.arm { --t: var(--tinta); --t2: var(--tinta-2); --l: var(--linea); --sup: var(--beige-2); --sel: var(--cuero); --sel-t: var(--hueso); color: var(--t); }
.arm.oscuro, .oscuro .arm { --t: var(--hueso); --t2: rgba(242,238,231,.6); --l: rgba(242,238,231,.16); --sup: #2a201a; --sel: var(--hueso); --sel-t: var(--cuero); }
.arm-productos { display: flex; gap: clamp(18px, 2.6vw, 36px); overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--l); margin-bottom: clamp(18px, 2.4vw, 30px); }
.arm-productos::-webkit-scrollbar { display: none; }
.arm-prod { flex: none; border: 0; background: none; padding: 0 0 14px; font-size: 15px; color: var(--t2); position: relative; transition: color .3s; }
.arm-prod::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--t); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--curva); }
.arm-prod:hover { color: var(--t); }
.arm-prod[aria-selected="true"] { color: var(--t); }
.arm-prod[aria-selected="true"]::after { transform: none; }

.arm-cuerpo { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, 1fr); gap: clamp(20px, 3.4vw, 56px); align-items: start; }
.arm-escena { position: sticky; top: 20px; aspect-ratio: 5 / 4; min-height: 320px; background: var(--sup); overflow: hidden; isolation: isolate; }
.arm-fondo { display: none; }
.arm-lienzo { position: absolute; inset: 9% 6% 20%; container-type: inline-size; }
.arm[data-producto="cinturon"] .arm-lienzo { inset: 12% 4% 22%; }
.arm-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.arm-lienzo.cambia .arm-svg { animation: arm-sube 1s var(--curva); }
@keyframes arm-sube { from { transform: translateY(5%); opacity: 0; } }
.arm-corte { animation: arm-corte 1s var(--curva-2) both; }
@keyframes arm-corte { from { clip-path: inset(-10% 100% -10% -10%); } to { clip-path: inset(-10% -10% -10% -10%); } }
.cambio-deco [data-parte="deco"] .cae, .cambio-union [data-parte="union"] .cae, .cambio-costura [data-parte="costura"] .cae { animation: arm-cae .7s var(--curva) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes arm-cae { from { transform: translateY(-10px); opacity: 0; } }
.cambio-hebilla .hebilla, .cambio-metal [data-parte="hebilla"], .cambio-modelo .pop, .cambio-deco .pop, .cambio-tamano [data-parte="tamano"], .cambio-ancho [data-parte="ancho"], .cambio-estilo g { animation: arm-fun .7s var(--curva) both; }
@keyframes arm-fun { from { opacity: .15; } }

.arm-precio { position: absolute; left: clamp(16px, 2vw, 28px); bottom: clamp(14px, 2vw, 24px); right: 16px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; color: var(--t); }
.arm-precio-etq { font-size: 13px; color: var(--t2); }
.arm-precio-num { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1; }
.arm-precio-num.cambia { animation: arm-fun .6s ease; }
.arm-precio-nota { font-size: 13px; color: var(--t2); flex-basis: 100%; }

.arm-panel { display: grid; gap: 22px; }
.arm-pasos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.arm-pasos button { border: 0; background: none; padding: 2px 0; font-size: 13px; color: var(--t2); display: inline-flex; gap: 6px; }
.arm-pasos .n { font-variant-numeric: tabular-nums; opacity: .7; }
.arm-pasos button.hecho { color: var(--t); }
.arm-pasos button[aria-current] { color: var(--t); text-decoration: underline; text-underline-offset: 5px; }

.arm-paso { min-height: 300px; }
.arm-paso.entra-der { animation: arm-der .6s var(--curva); }
.arm-paso.entra-izq { animation: arm-izq .6s var(--curva); }
@keyframes arm-der { from { opacity: 0; transform: translateX(16px); } }
@keyframes arm-izq { from { opacity: 0; transform: translateX(-16px); } }
.arm-paso-cab { margin-bottom: 18px; }
.arm-paso-num { font-size: 13px; color: var(--t2); }
.arm-paso-cab h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 42px); margin: 4px 0 2px; line-height: 1.05; }
.arm-paso-cab p { margin: 0; color: var(--t2); }

.arm-ops { display: grid; border-top: 1px solid var(--l); }
.arm-op { display: grid; grid-template-columns: 18px 1fr auto; grid-template-rows: auto auto; column-gap: 14px; align-items: baseline; text-align: left; padding: 16px 2px; border: 0; border-bottom: 1px solid var(--l); background: none; transition: padding .4s var(--curva); }
.arm-op:hover { padding-left: 8px; }
.arm-op-marca { grid-row: 1 / 3; align-self: center; width: 12px; height: 12px; border: 1px solid var(--t); border-radius: 50%; position: relative; }
.arm-op-marca::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: var(--t); transform: scale(0); transition: transform .35s var(--curva); }
.arm-op[aria-pressed="true"] .arm-op-marca::after { transform: none; }
.arm-op-n { font-size: 17px; }
.arm-op-d { grid-column: 2; font-size: 13px; color: var(--t2); }
.arm-op-p { grid-column: 3; grid-row: 1; font-size: 15px; color: var(--t2); font-variant-numeric: tabular-nums; }

.arm-cueros { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 16px 10px; }
.arm-cu { border: 0; background: none; padding: 0; display: grid; gap: 7px; text-align: left; }
.arm-cu-m { width: 100%; aspect-ratio: 1; background-size: cover; background-position: center; outline: 1px solid transparent; outline-offset: 3px; transition: outline-color .3s, transform .5s var(--curva); }
.arm-cu:hover .arm-cu-m { transform: scale(.96); }
.arm-cu[aria-pressed="true"] .arm-cu-m { outline-color: var(--t); }
.arm-cu-n { font-size: 12px; line-height: 1.25; color: var(--t2); }
.arm-cu[aria-pressed="true"] .arm-cu-n { color: var(--t); }

.arm-medida { display: grid; gap: 10px; color: var(--t2); }
.arm-medida-campo { display: flex; align-items: baseline; gap: 10px; }
.arm-medida input { width: 140px; font: inherit; font-family: var(--serif); font-size: 30px; padding: 6px 0; border: 0; border-bottom: 1px solid var(--t); background: transparent; color: var(--t); border-radius: 0; }
.arm-medida input:focus { outline: none; border-bottom-width: 2px; }
.arm-nota { font-size: 13px; color: var(--t2); }
.arm-resumen { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--l); }
.arm-resumen li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--l); font-size: 15px; }
.arm-resumen li span { color: var(--t2); }
.arm-resumen b { font-weight: 400; text-align: right; }
.arm-resumen-total b { font-family: var(--serif); font-size: 26px; }
.arm-wa { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; background: var(--sel); color: var(--sel-t); text-decoration: none; font-size: 16px; letter-spacing: .02em; transition: opacity .3s; }
.arm-wa:hover { opacity: .88; }
.arm-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 4px; }
.arm-nav button { border: 0; background: none; padding: 14px 0; font-size: 15px; }
.arm-nav .arm-atras { text-decoration: underline; text-underline-offset: 5px; color: var(--t2); }
.arm-nav .arm-sig { background: var(--sel); color: var(--sel-t); padding: 15px 26px; margin-left: auto; }
.arm-nav button:disabled { opacity: 0; pointer-events: none; }

@media (max-width: 860px) {
  .arm-cuerpo { grid-template-columns: 1fr; }
  .arm-escena { aspect-ratio: auto; height: min(40svh, 340px); min-height: 220px; top: 0; z-index: 2; margin: 0 calc(var(--gutter) * -1); }
  .arm-paso { min-height: 0; }
  .arm-cueros { grid-template-columns: repeat(4, 1fr); }
}

.quieto *, .quieto *::before, .quieto *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.quieto .aparece, .quieto .linea-m > span { opacity: 1 !important; transform: none !important; }
