/* =========================================================
   Hotel Resort Mattress — estilos (borrador 3: bilingüe, mayoreo)
   Paleta azul noche + dorado tomada del material de la marca Biolatex.
   ========================================================= */

:root {
  --navy: #0e1a33;
  --navy-2: #16264a;
  --navy-3: #22355e;
  --gold: #c6a15b;
  --gold-light: #dcc08a;
  --ivory: #f7f4ee;
  --sand: #ece6db;
  --ink: #1b1d22;
  --muted: #6c707a;
  --line: #ddd5c6;
  --white: #ffffff;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 4px;
  --shadow: 0 24px 50px rgba(14, 26, 51, .14);
  --header-h: 78px;
}

/* ---------- Idioma: se oculta el que no está activo ---------- */
html[lang="en"] .es,
html[lang="es"] .en { display: none !important; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body { font-family: var(--sans); color: var(--ink); background: var(--ivory); line-height: 1.7; font-weight: 400; font-size: 15px; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.1; color: var(--navy); }
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin-bottom: 1.1rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.35rem; margin-bottom: .3rem; }
em { font-style: italic; color: var(--gold); }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 32px); }

.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }

.section__head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section__head p:not(.eyebrow) { color: var(--muted); }

/* ---------- Fotos (recortes 800×1000, proporción 4:5) ---------- */
.foto { aspect-ratio: 4 / 5; width: 100%; background-size: cover; background-position: center; background-repeat: no-repeat; background-color: var(--navy-2); }
.foto--cama      { background-image: url("assets/fotos/cama.jpg"); }
.foto--bodega    { background-image: url("assets/fotos/bodega.jpg"); }
.foto--detalle   { background-image: url("assets/fotos/cama.jpg"); background-size: 200% 200%; background-position: 80% 48%; }
.foto--cama-zoom { background-image: url("assets/fotos/cama.jpg"); background-size: 150% 150%; background-position: 60% 60%; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 16px 34px;
  font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius); cursor: pointer; text-align: center;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn--small { padding: 11px 22px; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); }
.btn--line { border-color: rgba(255,255,255,.5); color: var(--white); }
.btn--line:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Barra de anuncio ---------- */
.announce { background: var(--gold); color: var(--navy); text-align: center; font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 9px 16px; }
.announce a { font-weight: 700; border-bottom: 1px solid currentColor; }

/* ---------- Encabezado ---------- */
.header { position: sticky; top: 0; z-index: 50; background: var(--navy); transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.25); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header__right { display: flex; align-items: center; gap: 14px; }

.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; flex-shrink: 0; }
.logo__main { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--white); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.logo__sub { font-size: .6rem; letter-spacing: .7em; margin-right: -.7em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: rgba(255,255,255,.85); font-size: .72rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.nav a:not(.btn):hover { color: var(--gold); }

/* Selector EN / ES */
.lang { display: flex; border: 1px solid rgba(198,161,91,.5); border-radius: 999px; padding: 3px; }
.lang button { background: none; border: 0; color: rgba(255,255,255,.7); font: 600 .66rem var(--sans); letter-spacing: .12em; padding: 6px 10px; border-radius: 999px; cursor: pointer; transition: background .25s, color .25s; }
.lang button.is-active { background: var(--gold); color: var(--navy); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; padding: 8px; }
.nav-toggle span { display: block; height: 1.5px; background: var(--white); margin: 6px 0; transition: transform .3s, opacity .3s; }

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center;
  background:
    radial-gradient(circle at 20% 30%, rgba(198,161,91,.12), transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--white);
  min-height: calc(100vh - var(--header-h) - 34px);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__text, .hero__media { position: relative; z-index: 1; }
.hero__text { padding: 80px clamp(24px, 6vw, 96px); }
.hero h1 { color: var(--white); }
.stars { color: var(--gold); letter-spacing: .35em; margin: 1.4rem 0; font-size: 1.05rem; }
.hero__lead { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 520px; margin-bottom: 2.4rem; font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__media { align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 40px clamp(24px, 4vw, 60px); }

/* Entrada del título línea por línea */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: subir 1.1s cubic-bezier(.2,.8,.2,1) var(--d) forwards; }
.hero__in { opacity: 0; transform: translateY(18px); animation: aparecer 1s ease var(--d) forwards; }
@keyframes subir { to { transform: none; } }
@keyframes aparecer { to { opacity: 1; transform: none; } }

/* Foto con zoom lento y marco dorado que se dibuja */
.hero__frame { position: relative; width: 100%; max-width: 520px; opacity: 0; animation: aparecer 1.4s ease .5s forwards; }
.hero__frame .foto { box-shadow: 0 40px 80px rgba(0,0,0,.45); }
.foto--kenburns { animation: kenburns 16s ease-in-out infinite alternate; }
@keyframes kenburns { from { background-size: 100% 100%; } to { background-size: 107% 107%; } }
.hero__border { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); pointer-events: none; overflow: visible; }
.hero__border rect { fill: none; stroke: var(--gold); stroke-width: .35; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100; animation: trazar 2.4s ease 1s forwards; }
@keyframes trazar { to { stroke-dashoffset: 0; } }

.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2; display: grid; justify-items: center; gap: 8px; color: rgba(255,255,255,.6); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; }
.hero__scroll i { width: 1px; height: 42px; background: linear-gradient(var(--gold), transparent); animation: gotear 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes gotear { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Barra de confianza ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; gap: 14px; align-items: flex-start; padding: 30px 22px; border-right: 1px solid var(--line); }
.trust__item:last-child { border-right: 0; }
.trust__icon { color: var(--gold); font-size: .7rem; margin-top: 5px; }
.trust__item strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); font-weight: 600; }
.trust__item p { color: var(--muted); font-size: .86rem; }

/* ---------- Franja en movimiento ---------- */
.marquee { background: var(--navy); color: var(--gold-light); overflow: hidden; padding: 22px 0; }
.marquee__track { display: flex; align-items: center; gap: 38px; width: max-content; animation: deslizar 38s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: 1.7rem; white-space: nowrap; }
.marquee i { font-style: normal; color: var(--gold); font-size: .9rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes deslizar { to { transform: translateX(-50%); } }

/* ---------- Manifiesto ---------- */
.manifesto { padding: clamp(80px, 11vw, 140px) 0; text-align: center; }
.manifesto__quote { font-family: var(--serif); font-size: clamp(1.8rem, 3.4vw, 2.7rem); line-height: 1.3; color: var(--navy); font-style: italic; margin-bottom: 1.6rem; }
.manifesto__quote .w { opacity: .14; transition: opacity .35s ease; }
.manifesto__quote .w.on { opacity: 1; }
.manifesto__text { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* =========================================================
   DESPIECE 3D
   ========================================================= */
.explode { height: 420vh; position: relative; background: radial-gradient(ellipse at 70% 50%, #fbf8f2 0%, var(--sand) 70%); }
.explode__sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; align-items: center; overflow: hidden; }
.explode__inner { display: grid; grid-template-columns: 1fr 1.35fr; gap: 30px; align-items: center; }

.explode__steps { list-style: none; margin-top: 1.8rem; display: grid; gap: 4px; }
.explode__steps li { display: flex; gap: 18px; padding: 14px 0 14px 18px; border-left: 2px solid var(--line); opacity: .38; cursor: pointer; transition: opacity .4s, border-color .4s, background .4s; }
.explode__steps li:hover { opacity: .7; }
.explode__steps li.is-active { opacity: 1; border-color: var(--gold); background: linear-gradient(90deg, rgba(198,161,91,.08), transparent); }
.explode__num { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); min-width: 30px; line-height: 1.2; }
.explode__steps p { color: var(--muted); font-size: .88rem; }

.explode__stage { position: relative; height: 100%; min-height: 460px; display: grid; place-items: center; perspective: 1700px; padding-right: 170px; }

/* El conjunto se ve en isométrico; script.js ajusta el giro y la inclinación con el scroll y el mouse */
.stack { position: relative; width: 340px; height: 240px; transform-style: preserve-3d; transform: rotateX(60deg) rotateZ(-38deg); }
/* Sombra en el piso */
.stack::before { content: ""; position: absolute; inset: -10%; background: radial-gradient(ellipse, rgba(14,26,51,.28), transparent 65%); transform: translateZ(-120px); filter: blur(12px); }

.slab { position: absolute; inset: 0; transform-style: preserve-3d; transform: translateZ(var(--z, 0px)); }
.slab::before, .slab::after { content: ""; position: absolute; }
.slab::before { left: 0; top: 100%; width: 100%; height: var(--t); transform-origin: top; transform: rotateX(-90deg); }   /* frente */
.slab::after  { top: 0; left: 100%; width: var(--t); height: 100%; transform-origin: left; transform: rotateY(90deg); }   /* costado */
.slab__anchor { position: absolute; left: 100%; top: 100%; width: 1px; height: 1px; }

/* Base: núcleo de alta densidad (con poros finos) */
.slab--base { background: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1.5px) 0 0 / 8px 8px, #2b2e35; }
.slab--base::before { background: linear-gradient(#1c1e23, #111215); }
.slab--base::after  { background: #17191d; }
/* Etiqueta blanca "BIO LATEX" en el frente, como el colchón real */
.slab__tag {
  position: absolute; left: 70%; top: 100%; width: 54px; height: 44px;
  transform-origin: top; transform: rotateX(-90deg) translateY(13px);
  background: #f4f4f2; color: #2c6e3f; font: 700 7px/1 var(--sans); letter-spacing: .08em;
  display: grid; place-items: end center; padding-bottom: 6px; border: 1px solid #ccc;
  backface-visibility: hidden;
}
.slab__tag::before { content: "❦"; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); font-size: 14px; color: #3d8a52; }

/* Gel: azul con microesferas */
.slab--gel { background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.45) 1.5px, transparent 2.5px) 0 0 / 12px 12px, linear-gradient(135deg, #a9cbe6, #6f9cc6); }
.slab--gel::before { background: linear-gradient(#5a87b3, #4a7299); }
.slab--gel::after  { background: #4c789f; }

/* Látex: crema con perforaciones */
.slab--latex { background: radial-gradient(circle, rgba(120,95,50,.18) 1.8px, transparent 2.4px) 0 0 / 14px 14px, #f1e6cf; }
.slab--latex::before { background: linear-gradient(#dccdae, #cdbb98); }
.slab--latex::after  { background: #cbbb9a; }

/* Cubierta: acolchado de panal (hexágonos) gris, con banda negra al frente */
.slab--top {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20.78' height='36' viewBox='0 0 20.78 36'%3E%3Cg fill='none' stroke='%23c7cad0' stroke-opacity='.75' stroke-width='1'%3E%3Cpath d='M10.39 0 20.78 6v12L10.39 24 0 18V6z'/%3E%3Cpath d='M0 18v12M20.78 18v12M0 30l10.39 6 10.39-6'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 24px 41.6px,
    radial-gradient(circle at 40% 35%, #a2a7b0, #858a94);
}
.slab--top::before { background: #1b1d22; border-top: 3px solid #b9bdc4; }
.slab--top::after  { background: #15171b; border-left: 3px solid #b9bdc4; }

/* Capa activa: brillo dorado */
.slab { transition: box-shadow .4s; }
.slab.is-active { box-shadow: 0 0 0 2px var(--gold), 0 0 50px rgba(198,161,91,.6); }

/* Etiquetas flotantes con línea guía */
.callout-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.callout-lines line { stroke: var(--gold); stroke-width: 1; }
.callout-lines circle { fill: var(--gold); }
.callout {
  position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none;
  font-size: .66rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--navy);
  padding: 7px 12px; background: rgba(255,255,255,.85); border: 1px solid var(--line); backdrop-filter: blur(4px);
  opacity: 0; transition: background .3s, color .3s, border-color .3s;
}
.callout.is-active { background: var(--navy); color: var(--gold-light); border-color: var(--navy); }

/* Burbujas de aire (cuando se resalta el látex) */
.air { position: absolute; left: 50%; top: 50%; width: 260px; height: 220px; transform: translate(-60%, -70%); pointer-events: none; opacity: 0; transition: opacity .5s; }
.air.is-on { opacity: 1; }
.air i { position: absolute; bottom: 0; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid rgba(111,156,198,.8); animation: burbuja 2.6s ease-in infinite; opacity: 0; }
.air i:nth-child(1) { left: 10%; animation-delay: 0s; }
.air i:nth-child(2) { left: 25%; animation-delay: .7s; width: 6px; height: 6px; }
.air i:nth-child(3) { left: 38%; animation-delay: 1.4s; }
.air i:nth-child(4) { left: 52%; animation-delay: .3s; width: 10px; height: 10px; }
.air i:nth-child(5) { left: 64%; animation-delay: 1.1s; width: 6px; height: 6px; }
.air i:nth-child(6) { left: 76%; animation-delay: 1.8s; }
.air i:nth-child(7) { left: 88%; animation-delay: .5s; width: 7px; height: 7px; }
.air i:nth-child(8) { left: 45%; animation-delay: 2.1s; width: 5px; height: 5px; }
@keyframes burbuja { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-200px); opacity: 0; } }

/* Nombre del producto al volver a armarse */
.explode__final { position: absolute; left: 0; right: 170px; bottom: 6%; text-align: center; opacity: 0; transform: translateY(14px); transition: opacity .6s, transform .6s; pointer-events: none; }
.explode__final.is-on { opacity: 1; transform: none; }
.explode__final span { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--navy); letter-spacing: .04em; }
.explode__final small { font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }

.explode__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); }
.explode__progress i { display: block; height: 100%; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }

/* ---------- Tecnología ---------- */
.tech { padding: clamp(70px, 9vw, 120px) 0; background: var(--white); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 40px; margin-bottom: 4.5rem; }
.feature__icon { width: 50px; height: 50px; border: 1px solid var(--gold); border-radius: 50%; display: grid; place-items: center; color: var(--gold); margin-bottom: 14px; }
.feature__icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); font-size: .9rem; }

/* Tabla comparativa */
.compare { max-width: 860px; margin: 0 auto; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 600; vertical-align: bottom; }
.compare th small { font-size: .62rem; letter-spacing: .12em; color: var(--gold-light); font-weight: 500; }
.compare td:first-child { text-align: left; font-family: var(--serif); font-size: 1.15rem; color: var(--navy); }
.compare .compare__us { background: var(--navy); color: var(--white); }
.compare th.compare__us { color: var(--white); font-family: var(--serif); font-size: 1.3rem; letter-spacing: .06em; text-transform: none; }
/* Puntos de calificación (1 a 3) */
.dots { display: inline-flex; gap: 5px; }
.dots::before, .dots::after, .dots { --c: var(--line); }
.dots::before { content: ""; width: 34px; height: 8px; background:
  radial-gradient(circle, var(--d1) 3.5px, transparent 4px) 0 50% / 12px 8px no-repeat,
  radial-gradient(circle, var(--d2) 3.5px, transparent 4px) 12px 50% / 12px 8px no-repeat,
  radial-gradient(circle, var(--d3) 3.5px, transparent 4px) 24px 50% / 12px 8px no-repeat; }
.dots--1 { --d1: var(--gold); --d2: #d9d3c7; --d3: #d9d3c7; }
.dots--2 { --d1: var(--gold); --d2: var(--gold); --d3: #d9d3c7; }
.dots--3 { --d1: var(--gold); --d2: var(--gold); --d3: var(--gold); }
.compare__us .dots--3 { --d1: var(--gold-light); --d2: var(--gold-light); --d3: var(--gold-light); }
.compare__note { text-align: center; font-size: .76rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Colección ---------- */
.collection { padding: clamp(70px, 9vw, 120px) 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { background: var(--white); display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-6px); }
.card__media { position: relative; overflow: hidden; }
.card__media .foto { transition: transform .8s; }
.card:hover .card__media .foto { transform: scale(1.04); }
.card__badge { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--white); color: var(--navy); padding: 6px 12px; font-size: .62rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.card__badge--gold { background: var(--gold); }
.card__body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card__line { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.card__body h3 { margin: .3rem 0 .7rem; }
.card__body > p:not(.card__line) { color: var(--muted); font-size: .9rem; }
.card__specs { list-style: none; display: flex; margin-top: 1.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card__specs li { flex: 1; padding: 12px 0; font-size: .86rem; font-weight: 500; }
.card__specs li + li { border-left: 1px solid var(--line); padding-left: 16px; }
.card__specs li > span:first-child { display: block; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.collection__note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 2.6rem; font-style: italic; }

/* ---------- Medidas ---------- */
.sizes { padding: clamp(70px, 9vw, 120px) 0; background: var(--white); }
.sizes__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: end; text-align: center; }
.size__shape { width: calc(var(--w) * 0.75px); height: calc(var(--h) * 0.75px); margin: 0 auto 1.2rem; border: 1.5px solid var(--navy); border-radius: 3px; background: linear-gradient(180deg, var(--sand) 0 18%, var(--ivory) 18%); }
.size p { color: var(--muted); font-size: .84rem; }
.size .size__price { margin-top: .6rem; font-family: var(--serif); font-size: 1.5rem; color: var(--navy); }
.size__price small { display: block; font-family: var(--sans); font-size: .6rem; letter-spacing: .22em; color: var(--gold); font-weight: 600; }
.sizes__note { text-align: center; color: var(--muted); font-size: .76rem; margin-top: 2.4rem; }

/* ---------- Pilares ---------- */
.pillars { background: var(--sand); padding: clamp(70px, 9vw, 120px) 0; }
.pillars__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.pillars__media .foto { max-width: 480px; }
.pillar { display: flex; gap: 22px; padding: 22px 0; border-top: 1px solid var(--line); }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__num { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); min-width: 34px; }
.pillar p { color: var(--muted); font-size: .92rem; }

/* ---------- Programa de mayoreo ---------- */
.trade { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); padding: clamp(70px, 9vw, 120px) 0; }
.trade h2, .trade h4 { color: var(--white); }
.trade__head { max-width: 760px; margin-bottom: 3.5rem; }
.trade__head p:not(.eyebrow) { color: rgba(255,255,255,.72); font-weight: 300; }
.trade__benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 4rem; }
.trade__benefits > div { padding: 26px 22px; border: 1px solid rgba(198,161,91,.3); }
.trade__benefits h4 { color: var(--gold-light); font-size: 1.25rem; margin-bottom: .5rem; }
.trade__benefits p { color: rgba(255,255,255,.65); font-size: .88rem; font-weight: 300; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(198,161,91,.35); }
.steps li { padding: 30px 26px 10px 0; }
.steps li + li { padding-left: 26px; border-left: 1px solid rgba(198,161,91,.2); }
.steps__num { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--gold); margin-bottom: .6rem; }
.steps p { color: rgba(255,255,255,.65); font-size: .9rem; font-weight: 300; }

/* ---------- Preguntas frecuentes ---------- */
.faq { padding: clamp(70px, 9vw, 120px) 0; }
.faq__item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; font-family: var(--serif); font-size: 1.45rem; color: var(--navy); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--gold); font-family: var(--sans); font-weight: 300; font-size: 1.5rem; line-height: 1; transition: transform .3s; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--muted); margin-top: .8rem; }

/* ---------- Contacto ---------- */
.contact { background: var(--sand); padding: clamp(70px, 9vw, 120px) 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.contact__text > p:not(.eyebrow) { color: var(--muted); }
.contact__info { list-style: none; margin-top: 2.2rem; display: grid; gap: 18px; }
.contact__info span { display: block; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.contact__info a { font-weight: 500; }
.contact__form { background: var(--white); padding: 40px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact__form label { display: grid; gap: 7px; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--navy); }
.contact__form .full { grid-column: 1 / -1; }
.contact__form input, .contact__form select, .contact__form textarea { font: inherit; font-size: .92rem; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink); padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); }
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }

/* ---------- Pie de página ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.6); padding: 64px 0 40px; text-align: center; }
.footer__inner { display: grid; justify-items: center; gap: 18px; }
.footer__tag { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.footer__place { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-top: -8px; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.footer__nav a:hover { color: var(--gold); }
.footer__copy { font-size: .75rem; opacity: .7; margin-top: 10px; }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Menos movimiento si el usuario lo pidió en su sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .explode { height: auto; }
  .explode__sticky { position: relative; height: auto; padding: 80px 0; }
}

/* =========================================================
   Escritorio angosto
   ========================================================= */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .nav a:not(.btn) { font-size: .66rem; letter-spacing: .12em; }
  .nav .btn { display: none; }
}

/* =========================================================
   Tableta y celular
   ========================================================= */
@media (max-width: 960px) {
  .hero, .pillars__inner, .contact__inner { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero__text { padding: 64px 24px 24px; }
  .hero__media { padding: 24px 24px 64px; }
  .hero__scroll { display: none; }
  .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .features { grid-template-columns: 1fr 1fr; }
  .trust__grid, .trade__benefits { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(2) { border-right: 0; }
  .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .sizes__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }

  /* Despiece en celular: texto compacto arriba, colchón abajo, sin etiquetas flotantes */
  .explode__inner { grid-template-columns: 1fr; gap: 0; align-content: center; }
  .explode__text h2 { font-size: 1.9rem; margin-bottom: .4rem; }
  .explode__steps { margin-top: .6rem; gap: 0; }
  .explode__steps li { padding: 7px 0 7px 14px; }
  .explode__steps p { display: none; }
  .explode__steps h4 { font-size: 1.1rem; }
  .explode__stage { min-height: 0; height: 46vh; padding-right: 0; }
  .stack { width: 230px; height: 160px; }
  .callout, .callout-lines { display: none; }
  .explode__final { right: 0; bottom: 0; }
  .explode__final span { font-size: 1.8rem; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 24px; padding: 34px 16px 40px;
    background: var(--navy); border-top: 1px solid rgba(198,161,91,.25);
    transform: translateY(-140%); transition: transform .35s; z-index: -1;
  }
  .nav .btn { display: inline-block; }
  .nav a:not(.btn) { font-size: .76rem; }
  .nav.is-open { transform: none; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 600px) {
  .logo__main { font-size: 1.3rem; }
  .features, .trust__grid, .trade__benefits { grid-template-columns: 1fr; }
  .trust__item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .steps li { padding-left: 0 !important; border-left: 0 !important; border-bottom: 1px solid rgba(198,161,91,.2); padding-bottom: 24px; }
  .size__shape { width: calc(var(--w) * 0.55px); height: calc(var(--h) * 0.55px); }
  .contact__form { grid-template-columns: 1fr; padding: 26px; }
  .hero__actions .btn { width: 100%; }
  .announce { font-size: .62rem; letter-spacing: .06em; }
  .compare th, .compare td { padding: 12px 6px; }
  .compare td:first-child { font-size: .98rem; }
  .compare th.compare__us { font-size: 1.05rem; }
  .dots::before { width: 30px; }
}
