/* Platinum Clean — "La caída" */
:root {
  /* colores del logo: azul marino #0b2a55, plata cepillada, blanco */
  --noche: #061428;
  --marino: #0b2a55;
  --marino-2: #173c70;
  --azul: #12417f;
  --plata: #c3cad3;
  --plata-2: #dde2e8;
  --papel: #f1f3f6;
  --papel-2: #e3e7ec;
  --blanco: #ffffff;
  --tinta: #061428;
  --tinta-2: #3b4a60;
  --accion: #ffffff;
  --accion-2: #dde2e8;
  --foco: #6f9be6;

  --m: clamp(16px, 3.2vw, 48px);
  --barra: 64px;

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --t-mega: clamp(3.3rem, 10vw, 11.5rem);
  --t-h1: clamp(2.3rem, 5.2vw, 5.8rem);
  --t-h2: clamp(2.3rem, 5.6vw, 6rem);
  --t-h3: clamp(1.35rem, 2.6vw, 2.6rem);
  --t-num: clamp(2.4rem, 4.8vw, 4.8rem);
  --t-lead: clamp(1.2rem, 1.9vw, 2rem);
  --t-body: 1.125rem;
  --t-small: 0.9375rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--barra) + 16px); }
html:not(.js-motion) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--noche);
  color: var(--tinta);
  font-family: var(--f);
  font-size: var(--t-body);
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--foco); outline-offset: 3px; border-radius: 4px; }

.saltar { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--accion); color: var(--noche); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.saltar:focus { top: 12px; }

/* display type */
.beat h2, .hero-txt h1, .pedido-cab h2, .industrias > h2, .nos-txt h2, .cierre h2, .linea-txt h2 {
  font-variation-settings: "wdth" 70;
  letter-spacing: -0.025em;
  line-height: 0.92;
  font-weight: 850;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 28px;
  background: var(--accion); color: var(--noche);
  border-radius: 999px; text-decoration: none; text-align: center; line-height: 1.2;
  font-weight: 750; font-size: 1rem; letter-spacing: -0.005em;
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: var(--accion-2); }
.btn:active { transform: scale(.97); }
.btn-chico { min-height: 40px; padding: 0 18px; font-size: .875rem; }
.btn-ancho { width: 100%; padding: 12px 24px; }
.liga { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; transition: text-underline-offset .2s; }
.liga:hover { text-underline-offset: 8px; }

/* ---------- barra ---------- */
.barra {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--barra);
  display: flex; align-items: center; gap: 24px; padding: 0 var(--m);
  background: var(--noche); color: var(--blanco);
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.marca img { width: 34px; height: auto; }
.marca span { font-weight: 800; font-size: 1.125rem; font-variation-settings: "wdth" 112; letter-spacing: -.01em; }
.marca b { font-weight: 400; color: var(--plata); }
.barra-nav { display: flex; gap: 28px; }
.barra-nav a { text-decoration: none; font-size: var(--t-small); font-weight: 600; color: var(--plata); transition: color .2s; }
.barra-nav a:hover { color: var(--blanco); }

/* =========================================================
   LA CAÍDA
   ========================================================= */
.caida { position: relative; color: var(--blanco); }
.caida-pin { position: relative; }
.burbujas { display: none; }
.faller { display: none; }

/* --- sin JS / movimiento reducido: secciones normales --- */
.beat {
  min-height: 86vh; padding: calc(var(--barra) + 64px) var(--m) 96px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-content: center; gap: 24px 48px;
}
.beat h2 { font-size: var(--t-mega); grid-column: 1; }
.beat > p { grid-column: 1; max-width: 34ch; font-size: var(--t-lead); line-height: 1.35; }
.beat-img { grid-column: 2; grid-row: 1 / span 2; width: min(100%, 420px); justify-self: center; align-self: center; }
.beat[data-campo="noche"] { background: var(--noche); }
.beat[data-campo="marino"] { background: var(--marino); }
.beat[data-campo="plata"] { background: var(--plata); color: var(--noche); }
.beat[data-campo="blanco"] { background: var(--blanco); color: var(--marino); }
.beat[data-campo="azul"] { background: var(--azul); }
.beat[data-campo="papel"] { background: var(--papel); color: var(--tinta); }

.beat-hero { grid-template-columns: minmax(0, 1fr) auto; align-content: end; min-height: 100vh; position: relative; }
.hero-marca {
  position: absolute; left: var(--m); right: var(--m); top: calc(var(--barra) + 2.5vh);
  display: flex; justify-content: space-between; align-items: flex-start; column-gap: .32em;
  font-size: 7.4vw; font-weight: 800; font-variation-settings: "wdth" 125; line-height: .86; letter-spacing: -.02em;
  color: var(--plata); pointer-events: none; user-select: none;
}
.hm-linea { display: flex; overflow: hidden; }
.hero-marca span { display: block; will-change: transform; }
/* celular: PLATINUM arriba y CLEAN abajo, para que no quede diminuto */
@media (max-width: 760px) { .hero-marca { flex-direction: column; row-gap: .04em; } }
.hero-txt { grid-column: 1; max-width: 62rem; }
.hero-txt h1 { font-size: var(--t-h1); max-width: 11.5ch; }
.hero-txt p { margin-top: 24px; max-width: 36ch; font-size: var(--t-lead); line-height: 1.35; color: var(--blanco); }
.hero-acciones { margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }
.beat-hero > .hero-dato { grid-column: 2; grid-row: 1; font-size: var(--t-small); align-self: end; text-align: right; font-size: var(--t-small); color: var(--plata); max-width: 14ch; line-height: 1.3; }
.hero-dato b { display: block; font-size: var(--t-num); line-height: 1; font-weight: 800; font-variation-settings: "wdth" 70; color: var(--blanco); letter-spacing: -.02em; margin-bottom: 6px; font-variant-numeric: tabular-nums; }

.beat-linea { display: block; min-height: auto; }
.linea-txt { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px 48px; align-items: end; }
.linea-txt h2 { font-size: var(--t-h2); }
.linea-txt p { font-size: var(--t-lead); line-height: 1.35; max-width: 34ch; color: var(--tinta-2); }
.estante { --base: min(22vw, 42vh); --solape: max(0px, calc((var(--base) * 7.36 - 92vw) / 16)); margin-top: clamp(28px, 5vh, 64px); display: flex; justify-content: center; align-items: flex-end; }
.estante li { position: relative; flex: none; width: calc(var(--base) * var(--k)); margin: 0 calc(var(--solape) * -1); z-index: var(--z); }
.estante img { width: 100%; }

/* --- con movimiento: escenario fijo --- */
.js-motion .caida { height: 760vh; }
.js-motion .caida-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--noche); }
.js-motion .burbujas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.js-motion .beat { position: absolute; inset: 0; min-height: 0; z-index: 2; background: none; padding: calc(var(--barra) + 4vh) var(--m) 6vh; grid-template-columns: minmax(0, 1fr); align-content: center; }
.js-motion .beat:not(.beat-hero):not(.beat-linea) { visibility: hidden; }
.js-motion .beat h2, .js-motion .beat > p { max-width: 54vw; }
.js-motion .beat > p:not(.hero-dato) { max-width: min(54vw, 30ch); }
.js-motion .beat-img { display: none; }
.js-motion .beat-hero { align-content: end; grid-template-columns: minmax(0, 1fr) auto; padding-bottom: clamp(32px, 7vh, 88px); }
.js-motion .beat-linea { visibility: hidden; display: flex; flex-direction: column; justify-content: center; }
.js-motion .estante .es-centro img { visibility: hidden; }
.js-motion .beat-linea .estante { margin-block: auto; }

.js-motion .faller {
  display: block; position: absolute; left: 50%; top: 50%; z-index: 3;
  width: min(36vw, 56vh); margin-left: calc(min(36vw, 56vh) / -2);
  aspect-ratio: 4 / 5; margin-top: calc(min(36vw, 56vh) * -0.625);
  will-change: transform; pointer-events: none;
}
.faller-entra, .faller-giro { width: 100%; height: 100%; will-change: transform; }
.faller-img { width: 100%; height: 100%; object-fit: contain; }
.destello { position: absolute; width: 22%; left: 30%; top: -6%; fill: var(--blanco); opacity: 0; transform: scale(0); }

/* =========================================================
   ARMA TU PEDIDO
   ========================================================= */
.pedido { position: relative; z-index: 4; background: var(--blanco); padding: clamp(96px, 14vh, 180px) var(--m) clamp(96px, 14vh, 180px); }
.pedido-cab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(40px, 6vw, 80px); }
.pedido-cab h2 { font-size: var(--t-h2); }
.pedido-cab p { font-size: var(--t-lead); line-height: 1.35; max-width: 34ch; }
.pedido-cuerpo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 48px; align-items: start; }

.prod {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 8px 24px; align-items: center;
  padding: 18px 20px 18px 12px; border-radius: 14px;
}
.prod:nth-child(odd) { background: var(--papel); }
.prod-foto img { width: 84px; height: 100px; object-fit: contain; }
.prod-txt h3 { font-size: 1.375rem; font-weight: 750; line-height: 1.15; letter-spacing: -.01em; }
.prod-txt h3 span { font-weight: 450; color: var(--tinta-2); }
.prod-txt p { margin-top: 4px; font-size: 1rem; color: var(--tinta-2); }
.tallas { display: flex; gap: 8px; }
.talla {
  position: relative; display: grid; justify-items: center; min-width: 76px; min-height: 56px; padding: 8px 12px;
  border-radius: 12px; background: var(--blanco); color: var(--tinta); text-decoration: none;
  transition: background-color .2s, color .2s, transform .15s;
}
.prod:nth-child(even) .talla { background: var(--papel); }
.talla:hover { background: var(--noche) !important; color: var(--blanco); }
.talla:active { transform: scale(.95); }
.talla-l { font-size: .875rem; font-weight: 600; color: inherit; opacity: .75; }
.talla-p { font-size: 1.125rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.talla.agregada { background: var(--tapa) !important; color: var(--blanco); }
.talla-n { position: absolute; top: -8px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--marino); color: var(--blanco); font-size: .875rem; font-weight: 800; display: grid; place-items: center; }

.nota { position: sticky; top: calc(var(--barra) + 24px); background: var(--noche); color: var(--blanco); border-radius: 20px; padding: 28px; }
.nota-cab { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.nota-cab img { width: 40px; }
.nota-cab h3 { font-size: 1.375rem; font-weight: 750; }
.nota-fecha { font-size: .875rem; color: var(--plata); }
.nota-lineas li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 10px 0; }
.nota-lineas li + li { margin-top: 2px; }
.nl-nombre { font-size: .875rem; line-height: 1.3; }
.nl-nombre small { display: block; color: var(--plata); font-size: .875rem; }
.nl-cant { display: flex; align-items: center; gap: 4px; }
.nl-cant button { width: 36px; height: 36px; border: 0; border-radius: 999px; background: var(--marino-2); color: var(--blanco); font: inherit; font-weight: 700; cursor: pointer; transition: background-color .2s; }
.nl-cant button:hover { background: var(--blanco); color: var(--noche); }
.nl-cant output { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.nl-sub { min-width: 64px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.nota-vacia { color: var(--plata); font-size: 1rem; padding: 8px 0 4px; }
.nota.tiene .nota-vacia { display: none; }
.nota-total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 20px; padding-top: 18px; box-shadow: inset 0 2px 0 var(--marino-2); }
.nota-total span { color: var(--plata); }
.nota-total b { font-size: var(--t-h3); font-weight: 800; font-variation-settings: "wdth" 75; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.nota-letra { margin-top: 14px; font-size: .875rem; line-height: 1.45; color: var(--plata); }

/* =========================================================
   INDUSTRIAS
   ========================================================= */
.industrias { position: relative; z-index: 4; background: var(--marino); color: var(--blanco); padding: clamp(96px, 14vh, 180px) var(--m); }
.industrias > h2 { font-size: var(--t-h2); max-width: 19ch; margin-bottom: clamp(48px, 7vw, 96px); }
.ind-lista { display: grid; gap: clamp(48px, 6vw, 88px); }
.ind { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 20px 40px; align-items: start; }
.ind h3 { font-size: var(--t-h3); font-weight: 800; font-variation-settings: "wdth" 80; line-height: 1; letter-spacing: -.02em; }
.ind p { font-size: 1.125rem; color: var(--blanco); max-width: 40ch; }
.ind-prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ind-prods li { display: grid; justify-items: center; text-align: center; gap: 6px; }
.ind-prods img { height: 120px; width: auto; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.ind:hover .ind-prods img { transform: translateY(-6px) rotate(-3deg); }
.ind-prods span { font-size: .875rem; line-height: 1.25; color: var(--plata); }
.ind-mayoreo { margin-top: clamp(64px, 8vw, 112px); font-size: var(--t-lead); line-height: 1.35; max-width: 40ch; }

/* =========================================================
   NOSOTROS
   ========================================================= */
.nosotros { position: relative; z-index: 4; background: var(--papel); padding: clamp(96px, 14vh, 180px) var(--m); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(40px, 7vw, 120px); }
.nos-txt h2 { font-size: var(--t-h2); max-width: 17ch; }
.nos-grande { margin-top: 36px; font-size: var(--t-lead); line-height: 1.25; font-weight: 500; letter-spacing: -.01em; max-width: 30ch; }
.nos-txt p:not(.nos-grande) { margin-top: 24px; max-width: 54ch; color: var(--tinta-2); }
.nos-datos { display: grid; gap: 36px; align-content: end; }
.nos-datos dt { font-size: var(--t-num); font-weight: 850; font-variation-settings: "wdth" 70; line-height: .95; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nos-datos dd { margin-top: 6px; color: var(--tinta-2); }
.nos-fotos { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(12px, 2vw, 32px); margin-top: clamp(24px, 4vw, 56px); }
.nos-fotos figure { margin: 0; }
.nos-fotos img { width: 100%; background: var(--blanco); }
.nos-fotos figcaption { margin-top: 12px; font-size: .875rem; color: var(--tinta-2); }

/* =========================================================
   CIERRE + PIE
   ========================================================= */
.cierre { position: relative; z-index: 4; background: var(--noche); color: var(--blanco); padding: clamp(96px, 14vh, 180px) var(--m) clamp(48px, 8vh, 96px); display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: center; }
.cierre h2 { font-size: var(--t-h2); max-width: 15ch; }
.cierre-txt p { margin-top: 24px; font-size: var(--t-lead); line-height: 1.35; max-width: 30ch; }
.cierre-num { display: block; margin: 36px 0 24px; font-size: var(--t-num); font-weight: 850; font-variation-settings: "wdth" 70; letter-spacing: -.02em; line-height: 1; text-decoration: none; color: var(--plata); transition: color .2s; font-variant-numeric: tabular-nums; }
.cierre-num:hover { color: var(--blanco); }
.cierre-foto { width: 100%; }

.pie { position: relative; z-index: 4; background: var(--noche); color: var(--plata); padding: 24px var(--m) 32px; overflow: hidden; }
.pie-marca { display: flex; justify-content: space-between; font-size: 18vw; font-weight: 900; font-variation-settings: "wdth" 62; line-height: .85; letter-spacing: -.03em; color: var(--plata); margin: 0 0 48px; white-space: nowrap; user-select: none; }
.pie-marca span { display: block; }
.pie-filas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 48px; font-size: 1rem; }
.pie-filas li + li { margin-top: 8px; }
.pie-filas a { text-decoration: none; color: var(--blanco); }
.pie-filas a:hover { text-decoration: underline; }
.pie-letra { margin-top: 48px; font-size: .875rem; }

.barra-pedido {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 8px 0 20px; border-radius: 999px;
  background: var(--noche); color: var(--blanco); text-decoration: none; font-weight: 650;
  box-shadow: 0 10px 30px rgba(11, 22, 40, .35);
}
.barra-pedido b { background: var(--blanco); color: var(--noche); border-radius: 999px; padding: 10px 18px; }
.barra-pedido[hidden] { display: none; }

/* =========================================================
   CELULAR / TABLETA
   ========================================================= */
@media (max-width: 1080px) {
  .pedido-cuerpo { grid-template-columns: 1fr; }
  .nota { position: relative; top: 0; }
  .ind { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ind-prods { grid-column: 1 / -1; max-width: 420px; }
}
@media (min-width: 1081px) { .barra-pedido { display: none !important; } }

@media (max-width: 760px) {
  :root { --barra: 58px; }
  .barra { gap: 12px; }
  .barra-nav { display: none; }
  .beat { grid-template-columns: 1fr; }
  .beat-img { grid-column: 1; grid-row: auto; width: min(70%, 300px); }
  .hero-txt h1 { font-size: clamp(2.3rem, 10.4vw, 3.6rem); }
  .hero-txt p { font-size: 1.125rem; margin-top: 16px; }
  .hero-acciones { margin-top: 22px; }
  .beat-hero > .hero-dato { display: none; }
  .linea-txt { grid-template-columns: 1fr; }
  .estante { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2vw; width: min(100%, 44vh); margin-inline: auto; }
  .estante li { width: auto; margin: -2.2vh 0 0; }
  .estante li:nth-child(-n+3) { margin-top: 0; }
  .estante .es-centro { transform: scale(1.12); }

  .js-motion .beat { align-content: end; padding-bottom: 9vh; }
  .js-motion .beat h2, .js-motion .beat > p, .js-motion .beat > p:not(.hero-dato) { max-width: 100%; }
  .js-motion .beat > p { font-size: 1.125rem; }
  .beat > h2 { font-size: clamp(3.1rem, 15.5vw, 5.2rem); }
  .js-motion .beat-hero { grid-template-columns: 1fr; padding-bottom: 5vh; }
  .js-motion .beat-linea { justify-content: flex-start; padding-top: calc(var(--barra) + 4vh); }
  .js-motion .beat-linea .linea-txt p { font-size: 1rem; }
  .js-motion .faller { width: min(58vw, 34vh); margin-left: calc(min(58vw, 34vh) / -2); margin-top: calc(min(58vw, 34vh) * -0.625); }
  .hero-marca { top: calc(var(--barra) + 2vh); }

  .pedido-cab { grid-template-columns: 1fr; }
  .prod { grid-template-columns: 64px minmax(0, 1fr); padding: 16px 12px; }
  .prod-foto img { width: 64px; height: 78px; }
  .tallas { grid-column: 1 / -1; }
  .talla { flex: 1; }
  .nota { padding: 22px; }
  .ind { grid-template-columns: 1fr; }
  .ind-prods img { height: 96px; }
  .nosotros, .cierre { grid-template-columns: 1fr; }
  .nos-fotos { grid-template-columns: 1fr; }
  .pie-filas { grid-template-columns: 1fr; }
  .pie { padding-bottom: 96px; }
}

/* cortina de color que sube en la caída (la crea app.js) */
.cortina { position: absolute; inset: 0; z-index: 0; will-change: transform; pointer-events: none; } /* la posición inicial la pone app.js (yPercent: 100); un transform aquí se sumaría y la dejaría fuera de pantalla */
/* sin reacciones al cursor mientras hay scroll (evita destellos en botones que pasan bajo el mouse) */
html.desplazando main, html.desplazando .barra-pedido { pointer-events: none; }
/* las piezas que entran desde los lados no deben crear scroll horizontal en celular */
html, body { overflow-x: clip; }
