/* ============================================================
   RIONA ZAPATOS — Primavera Verano 26·27  (v2)
   Moda editorial: foto a pantalla completa + espresso + oro
   ============================================================ */

:root {
  --bg:        #f5f1ea;
  --bg-2:      #ebe3d6;
  --paper:     #fbf9f5;
  --ink:       #1b1814;
  --ink-soft:  #3a332b;
  --ink-mute:  #7d746a;
  --gold:      #c39433;
  --gold-deep: #9c7424;
  --gold-soft: #e2c07a;
  --espresso:  #1c1511;
  --espresso-2:#2a201a;
  --cream-on-dark: rgba(245, 241, 234, .74);
  --line:      rgba(27, 24, 20, .14);
  --line-light:rgba(245, 241, 234, .2);

  --f-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --f-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(18px, 4.5vw, 72px);
  --max: 1360px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--ink); color: var(--bg); padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Shared ---------- */
.eyebrow {
  font-size: 11px;
  letter-spacing: .32em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
}
.section-head { max-width: var(--max); margin: 0 auto clamp(32px, 5vw, 64px); padding: 0 var(--pad); }
.section-title {
  font-family: var(--f-display);
  font-size: clamp(36px, 5.2vw, 76px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin-top: 14px;
  text-wrap: balance;
}
.section-title em { color: var(--gold-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); }
.btn-glass { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.08); }
.btn-glass:hover { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 11px; }
.btn-lg { padding: 20px 34px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Reveal (IO-driven, with safety) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Defensive: split-text elements must never stay hidden */
.reveal[data-split] { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 500;
  background: var(--espresso);
  display: grid; place-items: center; align-content: center; gap: 18px;
  transition: clip-path 1s var(--ease), opacity .6s ease;
  clip-path: inset(0 0 0 0);
  /* Safety: hide automatically at 4.5s even if JS fails */
  animation: splashSafety .01s 4.5s forwards;
}
.splash img { width: min(280px, 60vw); animation: splashIn 1.2s var(--ease) both; }
.splash span { font-size: 11px; letter-spacing: .4em; text-transform: uppercase; color: var(--cream-on-dark); animation: splashIn 1.2s .25s var(--ease) both; }
.splash.is-out { clip-path: inset(0 0 100% 0); pointer-events: none; }
@keyframes splashIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes splashSafety { to { opacity: 0; pointer-events: none; clip-path: inset(0 0 100% 0); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 32px;
  padding: 0 var(--pad);
  color: var(--ink);
  transition: background .4s ease, box-shadow .4s ease, color .4s ease;
}
.nav.is-over { color: #fff; }
.nav.is-solid { color: var(--ink); background: rgba(245, 241, 234, .95); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(10px)) {
  .nav.is-solid { background: rgba(245, 241, 234, .8); backdrop-filter: blur(14px) saturate(1.2); }
}
.nav-logo img { width: 92px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; }
.nav-links a {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; position: relative; padding: 6px 0;
}
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-wa { border-color: currentColor; color: inherit; background: transparent; }
.nav-wa:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.nav-toggle { display: none; }

/* ---------- Hero: foto a pantalla completa ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  background: var(--espresso);
  color: #fff;
  display: grid; place-items: center;
}
.hero-slides, .slide { position: absolute; inset: 0; }
.slide { display: block; opacity: 0; transition: opacity 1.6s ease; }
.slide.is-on { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 7s linear; }
.slide.is-on img { transform: scale(1); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 50% 50%, rgba(20, 14, 10, .62), rgba(20, 14, 10, .2) 70%),
    linear-gradient(180deg, rgba(20, 14, 10, .55) 0%, rgba(20, 14, 10, 0) 22%, rgba(20, 14, 10, 0) 62%, rgba(20, 14, 10, .78) 100%);
}
.hero-center { position: relative; z-index: 2; text-align: center; display: grid; justify-items: center; padding: 0 var(--pad); }
.hero-kicker { font-size: 11px; letter-spacing: .5em; text-transform: uppercase; font-weight: 600; opacity: .85; animation: rise 1.2s .6s var(--ease) both; }
.hero-logo { margin: 14px 0 6px; animation: rise 1.4s .75s var(--ease) both; }
.hero-logo img { width: clamp(240px, 32vw, 460px); filter: drop-shadow(0 6px 30px rgba(0,0,0,.35)); }
.hero-season { font-size: clamp(14px, 1.6vw, 20px); letter-spacing: .42em; text-transform: uppercase; font-weight: 700; color: var(--gold-soft); animation: rise 1.2s .95s var(--ease) both; }
.hero-sub { font-family: var(--f-display); font-style: italic; font-size: clamp(18px, 2vw, 26px); margin-top: 14px; opacity: .92; animation: rise 1.2s 1.05s var(--ease) both; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; animation: rise 1.2s 1.15s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero-cats {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: center;
  border-top: 1px solid rgba(255,255,255,.22);
  overflow-x: auto; scrollbar-width: none;
}
.hero-cats::-webkit-scrollbar { display: none; }
.hero-cats a {
  flex: none;
  padding: 20px clamp(14px, 2vw, 30px);
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
  text-decoration: none; color: rgba(255,255,255,.82);
  position: relative; transition: color .3s ease;
}
.hero-cats a + a::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 14px; margin-top: -7px; background: rgba(255,255,255,.3); }
.hero-cats a:hover { color: var(--gold-soft); }
.hero-dots { position: absolute; right: var(--pad); top: 50%; z-index: 2; display: grid; gap: 10px; transform: translateY(-50%); }
.hero-dots i { width: 2px; height: 26px; background: rgba(255,255,255,.3); transition: background .4s ease, height .4s ease; }
.hero-dots i.is-on { background: var(--gold); height: 44px; }

/* ---------- Beneficios ---------- */
.perks { background: var(--gold); color: #fff; overflow: hidden; padding: 14px 0; }
.perks-track { display: flex; width: max-content; align-items: center; gap: 26px; animation: marquee 40s linear infinite; }
.perks span { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.perks i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.7); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Líneas: lista editorial ---------- */
.lines {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(80px, 11vw, 160px) var(--pad);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.lines-photo {
  position: sticky; top: calc(var(--nav-h) + 24px);
  margin: 0; aspect-ratio: 619 / 810; max-height: calc(100vh - var(--nav-h) - 48px);
  overflow: hidden; border-radius: 4px; background: var(--bg-2);
}
.lines-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s ease, transform 1.2s var(--ease); }
.lines-photo img.is-on { opacity: 1; transform: none; }
.lines-list .section-title { margin-bottom: clamp(28px, 4vw, 48px); }
.lines-list ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lines-list li { border-bottom: 1px solid var(--line); }
.lines-list a {
  display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto;
  column-gap: 16px; align-items: baseline;
  padding: 22px 0; text-decoration: none;
  transition: padding .45s var(--ease);
}
.ln-num { grid-column: 1; grid-row: 1 / span 2; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--gold-deep); }
.ln-thumb { display: none; }
.ln-name { font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; transition: color .35s ease; }
.ln-name { grid-column: 2; grid-row: 1; }
.ln-tag { grid-column: 2; grid-row: 2; }
.ln-count { grid-column: 3; grid-row: 1 / span 2; align-self: center; font-size: 12px; font-weight: 700; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .35s ease, color .35s ease, border-color .35s ease; }
.ln-tag { font-size: 14px; color: var(--ink-mute); }
.lines-list a:hover, .lines-list a.is-active { padding-left: 14px; }
.lines-list a:hover .ln-name, .lines-list a.is-active .ln-name { color: var(--gold-deep); font-style: italic; }
.lines-list a:hover .ln-count, .lines-list a.is-active .ln-count { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- Catálogo (sin cambios) ---------- */
.catalog { padding: clamp(60px, 8vw, 120px) 0 clamp(80px, 10vw, 140px); background: var(--bg); }
.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.catalog-note { max-width: 34ch; color: var(--ink-mute); font-size: 15px; }
.filters {
  position: sticky; top: var(--nav-h); z-index: 20;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  max-width: var(--max); margin: 0 auto 36px; padding: 12px var(--pad);
  background: var(--bg);
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; cursor: pointer;
  border: 1px solid var(--line); background: transparent;
  padding: 10px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 500; letter-spacing: .04em;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.chip sup { font-size: 10px; color: var(--gold-deep); margin-left: 2px; }
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.is-active sup { color: var(--gold); }

.grid {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(36px, 4vw, 56px) clamp(18px, 2.4vw, 32px);
}
.card { display: flex; flex-direction: column; }
.card.is-hidden { display: none; }
.card.is-entering { animation: cardIn .7s var(--ease) both; animation-delay: var(--stagger, 0s); }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.card-media {
  position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  aspect-ratio: 414 / 460; overflow: hidden; background: var(--bg-2);
  border-radius: 4px;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter 1s var(--ease); }
.card-num {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  background: rgba(251, 249, 245, .88); padding: 5px 9px; border-radius: 999px;
}
.card-cta {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: var(--ink); color: var(--bg);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: 14px; border-radius: 999px; text-align: center;
  transform: translateY(calc(100% + 20px)); transition: transform .55s var(--ease);
}
.card-media:hover img, .card-media:focus-visible img { transform: scale(1.06); filter: saturate(1.08) brightness(1.03); }
.card-media:hover .card-cta, .card-media:focus-visible .card-cta { transform: none; }
.card-body { padding-top: 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.card-title { font-family: var(--f-display); font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.01em; }
.card-type { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }
.swatches { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0 0; padding: 0; }
.swatches li { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); }
.card-price { padding-top: 14px; border-top: 1px solid var(--line); margin-top: 16px; }
.price-cash strong { font-family: var(--f-display); font-size: 26px; font-weight: 500; letter-spacing: -.01em; }
.price-cash span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: var(--gold); color: #fff; padding: 3px 8px; border-radius: 999px; vertical-align: 5px; margin-left: 4px; font-weight: 600; }
.price-card { font-size: 13px; color: var(--ink-mute); margin-top: 2px; }
.catalog-foot { max-width: var(--max); margin: 56px auto 0; padding: 0 var(--pad); font-size: 13px; color: var(--ink-mute); text-align: center; }

/* ---------- Cuero: cita editorial ---------- */
.leather {
  position: relative;
  background: var(--bg-2);
  padding: clamp(110px, 14vw, 200px) var(--pad);
  min-height: 86vh;
  display: grid; place-items: center;
  overflow: hidden;
}
.leather-img { position: absolute; border-radius: 4px; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(28, 21, 17, .45); }
.leather-img-a { width: clamp(150px, 19vw, 280px); aspect-ratio: 559 / 810; left: var(--pad); top: 12%; }
.leather-img-b { width: clamp(130px, 15vw, 230px); aspect-ratio: 414 / 460; right: var(--pad); bottom: 12%; }
.leather-copy { position: relative; z-index: 2; max-width: 820px; text-align: center; display: grid; justify-items: center; gap: 24px; }
.leather-quote {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(32px, 4.6vw, 66px);
  line-height: 1.08; letter-spacing: -.02em;
  text-wrap: balance;
}
.leather-quote em { color: var(--gold-deep); }
.leather-text { max-width: 52ch; color: var(--ink-soft); font-size: 17px; }

/* ---------- Cómo comprar ---------- */
.buy {
  background: var(--espresso); color: var(--bg);
  padding: clamp(90px, 11vw, 160px) var(--pad);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 100px);
  align-items: start;
}
.buy .eyebrow { color: var(--gold); }
.buy .section-title em { color: var(--gold); }
.buy-head { position: sticky; top: calc(var(--nav-h) + 32px); }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: grid; grid-template-columns: clamp(64px, 8vw, 110px) 1fr; gap: 20px;
  padding: 28px 0; border-top: 1px solid var(--line-light);
}
.steps li:last-child { border-bottom: 1px solid var(--line-light); }
.steps span { font-family: var(--f-display); font-style: italic; font-size: clamp(44px, 5vw, 68px); color: var(--gold); line-height: .9; }
.steps h3 { font-size: 21px; font-weight: 700; margin-bottom: 6px; }
.steps p { color: var(--cream-on-dark); font-size: 15.5px; }
.buy-info { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(20px, 3vw, 40px); }
.info { background: var(--espresso-2); border: 1px solid var(--line-light); border-radius: 6px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 10px; align-content: start; }
.info h3 { font-family: var(--f-display); font-size: 30px; margin-bottom: 6px; color: var(--gold-soft); }
.info p { color: var(--cream-on-dark); }
.info strong { color: #fff; }

/* ---------- Talles ---------- */
.sizes {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(90px, 11vw, 160px) var(--pad);
  display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 100px);
}
.sizes-lead { margin-top: 18px; color: var(--ink-soft); font-size: 17px; max-width: 34ch; }
.tips { border-top: 1px solid var(--line); align-self: start; }
.tip { border-bottom: 1px solid var(--line); }
.tip summary {
  list-style: none; cursor: pointer;
  display: grid; grid-template-columns: 44px 1fr 24px; align-items: center; gap: 12px;
  padding: 22px 0; font-size: clamp(18px, 1.7vw, 22px); font-weight: 700; line-height: 1.3;
}
.tip summary::-webkit-details-marker { display: none; }
.tip summary::after { content: "+"; font-weight: 300; font-size: 28px; color: var(--gold-deep); text-align: center; transition: transform .35s var(--ease); }
.tip[open] summary::after { transform: rotate(45deg); }
.tip summary span { font-family: var(--f-display); font-style: italic; font-weight: 400; color: var(--gold-deep); font-size: 26px; }
.tip p { padding: 0 36px 24px 56px; color: var(--ink-soft); }
.size-table { grid-column: 1 / -1; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 3vw, 44px); }
.size-table-head h3 { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 34px); }
.size-table-head p { color: var(--ink-mute); margin-top: 6px; }
.size-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 24px; }
.size-row > div { display: grid; text-align: center; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; font-variant-numeric: tabular-nums; }
.size-row > div span:first-child { background: var(--ink); color: var(--bg); font-weight: 700; font-size: 20px; padding: 10px 0; }
.size-row > div span:last-child { font-weight: 600; padding: 12px 0; }
.size-note { margin-top: 18px; color: var(--ink-mute); font-size: 14px; }

/* ---------- Contacto ---------- */
.contact { position: relative; overflow: hidden; background: var(--espresso); color: #fff; text-align: center; padding: clamp(120px, 15vw, 220px) var(--pad); }
.contact-photos { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.contact-photos img { width: 100%; height: 100%; object-fit: cover; }
.contact-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20,14,10,.62), rgba(20,14,10,.88)); }
.contact-inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; }
.contact .eyebrow { color: var(--gold-soft); }
.contact-title { font-family: var(--f-display); font-style: italic; font-size: clamp(48px, 8vw, 120px); line-height: 1; letter-spacing: -.02em; }
.contact-sub { color: rgba(255,255,255,.8); letter-spacing: .06em; }
.contact-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }

.footer { background: var(--espresso); color: rgba(245, 241, 234, .55); display: grid; justify-items: center; gap: 6px; padding: 40px var(--pad) 32px; font-size: 12px; letter-spacing: .06em; text-align: center; border-top: 1px solid var(--line-light); }
.footer img { width: 110px; margin-bottom: 8px; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0,0,0,.45);
  transition: transform .35s var(--ease);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.6s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Modal ---------- */
.modal {
  width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 0; border-radius: 8px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.5);
  overflow: auto;
}
.modal::backdrop { background: rgba(28, 21, 17, .62); }
@supports (backdrop-filter: blur(4px)) { .modal::backdrop { backdrop-filter: blur(4px); } }
.modal[open] { animation: modalIn .5s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close-form { position: absolute; top: 12px; right: 12px; z-index: 3; margin: 0; }
.modal-close { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--bg); font-size: 26px; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--ink); color: var(--bg); }
.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }
.modal-media { margin: 0; background: var(--bg-2); }
.modal-media img { width: 100%; height: 100%; object-fit: cover; min-height: 100%; transition: opacity .18s ease, transform .5s var(--ease); }
.modal-media img.is-swapping { opacity: 0; transform: scale(1.02); }
.modal-body { padding: clamp(24px, 3.4vw, 44px); display: flex; flex-direction: column; gap: 6px; }
.modal-title { font-family: var(--f-display); font-size: clamp(38px, 4vw, 52px); line-height: 1; margin: 4px 0; }
.modal-desc { color: var(--ink-soft); margin: 10px 0 8px; }
.opt { border: 0; padding: 0; margin: 14px 0 0; }
.opt legend { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; padding: 0; margin-bottom: 10px; }
.opt legend span { color: var(--gold-deep); letter-spacing: .06em; text-transform: none; font-weight: 600; margin-left: 6px; font-size: 13px; }
.opt-colors, .opt-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-color {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--paper); background: var(--c);
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .25s ease, transform .25s ease;
}
.opt-color:hover { transform: scale(1.08); }
.opt-color[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.opt-size {
  min-width: 48px; height: 44px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; border-radius: 4px;
  font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.opt-size:hover { border-color: var(--ink); }
.opt-size[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt-help { display: inline-block; margin-top: 10px; font-size: 13px; color: var(--ink-mute); }
.modal-price { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 18px; padding: 16px 0; border-block: 1px solid var(--line); }
.mp-label { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-mute); font-weight: 600; }
.mp-cash { font-family: var(--f-display); font-size: 32px; color: var(--gold-deep); line-height: 1.2; }
.mp-card { font-family: var(--f-display); font-size: 22px; line-height: 1.3; }
.mp-card small { display: block; font-family: var(--f-body); font-size: 12px; color: var(--ink-mute); }
.pay { margin-bottom: 14px; }
.pay[hidden] { display: none; }
.btn-mp { background: #009ee3; color: #fff; }
.btn-mp:hover { background: #007eb5; }
.btn-mp.is-disabled { opacity: .45; cursor: not-allowed; transform: none; }
.pay-hint { font-size: 13px; color: var(--ink-soft); text-align: center; margin-top: 8px; }
.pay-hint.is-shake { animation: shake .45s ease; color: var(--gold-deep); }
@keyframes shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.pay-steps { margin: 12px 0 0; padding: 12px 14px 12px 32px; background: var(--bg); border-radius: 6px; font-size: 13px; color: var(--ink-soft); display: grid; gap: 4px; }
.modal-fine { font-size: 12px; color: var(--ink-mute); margin-top: 10px; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav-logo img { width: 78px; }
  .nav-wa { margin-left: auto; }
  .nav-toggle {
    display: grid; gap: 6px; place-content: center;
    width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  }
  .nav-toggle span:not(.sr) { width: 24px; height: 1.5px; background: currentColor; transition: transform .35s var(--ease); }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; gap: 0;
    background: var(--bg); color: var(--ink); padding: 8px var(--pad) 24px;
    box-shadow: 0 20px 40px -20px rgba(0,0,0,.25);
    clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease);
    visibility: hidden;
  }
  .nav-links.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav-links a { font-family: var(--f-display); text-transform: none; letter-spacing: 0; font-size: 28px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .nav.menu-open { background: var(--bg); color: var(--ink); }

  .hero-dots { top: auto; bottom: 86px; right: 50%; transform: translateX(50%); grid-auto-flow: column; }
  .hero-dots i { width: 22px; height: 2px; }
  .hero-dots i.is-on { width: 38px; height: 2px; }
  .hero-cats { justify-content: flex-start; padding: 0 8px; }

  /* Líneas: lista con miniaturas */
  .lines { grid-template-columns: 1fr; }
  .lines-photo { display: none; }
  .lines-list a { grid-template-columns: 30px 72px 1fr auto; column-gap: 14px; padding: 16px 0; align-items: center; }
  .ln-name { grid-column: 3; }
  .ln-count { grid-column: 4; }
  .ln-thumb { display: block; grid-column: 2; grid-row: 1 / span 2; width: 72px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 3px; background: var(--bg-2); }
  .ln-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .ln-tag { font-size: 12.5px; line-height: 1.4; grid-column: 3; }
  .ln-name { font-size: 28px; }
  .lines-list a:hover, .lines-list a.is-active { padding-left: 0; }

  .leather { min-height: 0; display: block; padding-top: 72px; }
  .leather-img { position: static; display: inline-block; vertical-align: top; }
  .leather-img-a { width: 46%; margin-right: 4%; }
  .leather-img-b { width: 44%; margin-top: 60px; }
  .leather-copy { margin-top: 40px; }

  .buy, .sizes { grid-template-columns: 1fr; }
  .buy-head { position: static; }
  .buy-info { grid-template-columns: 1fr; }
  .contact-photos { grid-template-columns: 1fr; }
  .contact-photos img:not(:first-child) { display: none; }

  .modal-grid { grid-template-columns: 1fr; }
  .modal-media img { max-height: 46vh; }
}

@media (max-width: 560px) {
  .hero-center { margin-top: -40px; }
  .hero-ctas .btn { padding: 14px 22px; }
  .grid { gap: 32px 12px; }
  .card-title { font-size: 22px; }
  .card-type { font-size: 10px; letter-spacing: .08em; }
  .card-cat { display: none; }
  .price-cash strong { font-size: 19px; }
  .price-cash span { display: block; width: max-content; margin: 4px 0 0; vertical-align: 0; font-size: 9.5px; }
  .price-card { font-size: 11.5px; line-height: 1.4; }
  .card-cta { display: none; }
  .card-num { top: 8px; left: 8px; font-size: 10px; }
  .swatches li { width: 11px; height: 11px; }
  .steps li { grid-template-columns: 58px 1fr; gap: 14px; }
  .tip p { padding: 0 8px 22px 56px; }
  .size-row { grid-template-columns: repeat(3, 1fr); }
  .modal-price { grid-template-columns: 1fr; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* Only truly intrusive motion is gated */
@media (prefers-reduced-motion: reduce) {
  .perks-track { animation-duration: 90s; }
}
