/* =========================================================
   ALFA · Óptica — hoja de estilo
   Dirección editorial: papel cálido + tinta + violeta AR (#4C57F0)
   para acción + cobre (#A9502A) de marca. Curva física suave
   cubic-bezier(0.32, 0.72, 0, 1).
   ========================================================= */

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}

:root {
  /* color — manual v2: papel dominante, cobre marca, violeta solo acción */
  --ink: #14110E;
  --ink-soft: #3A332C;
  --paper: #F7F5F0;
  --paper-2: #EFEADF;
  --surface: #FFFFFF;
  --copper: #A9502A;
  --copper-soft: #C87A4E;
  --violet: #4C57F0;
  --violet-hover: #3B45D8;
  --violet-soft: #E8EAFE;
  --muted: #5E564C;           /* 6,4:1 sobre papel */
  --line: #DFD8CB;
  --oscuro: #1B1612;          /* oscuro cálido: solo Monturas y Lentes */
  --oscuro-2: #2A221B;

  /* tipografía */
  --font: "Manrope", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --tracking: -0.03em;

  /* movimiento */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur: 760ms;

  /* ritmo */
  --gutter: 24px;
  --section: clamp(84px, 12vh, 144px);
}

* { box-sizing: border-box; }

/* Lo que la marca oculta (datos pendientes, WhatsApp sin número, barra CTA)
   tiene que desaparecer aunque su componente declare display:flex. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--copper); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 200ms var(--ease);
}
.skip:focus { top: 16px; }

/* grano sutil de papel editorial */
.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap {
  width: min(1140px, 100% - var(--gutter) * 2);
  margin-inline: auto;
}

/* ---------------------------------------------------------
   Tipografía
   --------------------------------------------------------- */

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
}
.eyebrow--light { color: var(--copper-soft); }

.h2 {
  margin-top: 14px;
  max-width: 680px;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.04;
  letter-spacing: var(--tracking);
  font-weight: 600;
  text-wrap: balance;
}
.h2--wide { max-width: 900px; }
.h2--light { color: var(--paper); }

.lede {
  margin-top: 22px;
  max-width: 620px;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.58;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.lede--light { color: #C9C2B6; }

.body {
  margin-top: 22px;
  max-width: 540px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* ---------------------------------------------------------
   Botones
   --------------------------------------------------------- */

.btn {
  --btn-bg: var(--violet);
  --btn-fg: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: inherit;
  font-size: 0.96875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 320ms var(--ease), background-color 320ms var(--ease), box-shadow 320ms var(--ease);
}
.btn:hover {
  background: var(--violet-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(76, 87, 240, 0.28);
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--sm { padding: 8px 16px; font-size: 0.875rem; }

.btn--ghost {
  --btn-bg: rgba(20, 17, 14, 0.28);
  --btn-fg: var(--paper);
  border: 1px solid rgba(242, 236, 225, 0.34);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(242, 236, 225, 0.14);
  box-shadow: none;
}

.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--light:hover { background: #fff; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  border: 1px solid rgba(242, 236, 225, 0.3);
}
.btn--ghost-light:hover { background: rgba(242, 236, 225, 0.1); box-shadow: none; }

/* ---------------------------------------------------------
   Navegación: isla de cristal flotante
   --------------------------------------------------------- */

.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 8px 8px 20px;
  width: max-content;
  max-width: calc(100% - 32px);
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.58);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(242, 236, 225, 0.14);
  color: var(--paper);
  transform: translateX(-50%);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  transition: background-color 400ms var(--ease), border-color 400ms var(--ease);
}
.nav--solid {
  background: rgba(20, 17, 14, 0.9);
  border-color: rgba(242, 236, 225, 0.2);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.nav__mark { width: 42px; height: auto; color: var(--copper-soft); }
.nav__name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.nav__links { display: flex; gap: 2px; }
.nav__links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(242, 236, 225, 0.74);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 240ms var(--ease), background-color 240ms var(--ease);
}
.nav__links a:hover { color: var(--paper); background: rgba(242, 236, 225, 0.09); }

.nav__cta { margin-left: 2px; }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 1.5px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 420ms var(--ease), opacity 240ms var(--ease), top 420ms var(--ease);
}
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 22px; }
.nav--open .nav__toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav--open .nav__toggle span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 32px;
  background: rgba(20, 17, 14, 0.97);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 420ms var(--ease), visibility 420ms var(--ease);
}
.menu--open { opacity: 1; visibility: visible; }
.menu a {
  color: var(--paper);
  text-decoration: none;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: var(--tracking);
  padding: 10px 0;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}
.menu--open a { opacity: 1; transform: translateY(0); }
.menu--open a:nth-child(1) { transition-delay: 80ms; }
.menu--open a:nth-child(2) { transition-delay: 120ms; }
.menu--open a:nth-child(3) { transition-delay: 160ms; }
.menu--open a:nth-child(4) { transition-delay: 200ms; }
.menu--open a:nth-child(5) { transition-delay: 240ms; }
.menu--open a:nth-child(6) { transition-delay: 280ms; }
.menu--open a:nth-child(7) { transition-delay: 320ms; }

/* ---------------------------------------------------------
   Secciones
   --------------------------------------------------------- */

.scene {
  padding: var(--section) 0;
  position: relative;
  scroll-margin-top: 88px;
}

.focus {
  margin-top: 44px;
  max-width: 880px;
}

.focus__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  overflow: hidden;
  background: #1B130E;
  border: 1px solid rgba(20, 17, 14, 0.14);
  box-shadow: 0 24px 56px rgba(20, 17, 14, 0.12);
}

.focus__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(var(--focus-blur, 18px)) contrast(var(--focus-contrast, 0.92));
  transform: scale(var(--focus-scale, 1.07));
  transition: filter 70ms linear, transform 120ms linear;
  will-change: filter, transform;
}

.focus__reticle {
  position: absolute;
  inset: 20px;
  pointer-events: none;
}
.focus__cross {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 1px solid rgba(242, 236, 225, 0.45);
}
.focus__cross::before,
.focus__cross::after {
  content: "";
  position: absolute;
  background: rgba(242, 236, 225, 0.55);
}
.focus__cross::before { left: 50%; top: -7px; bottom: -7px; width: 1px; }
.focus__cross::after { top: 50%; left: -7px; right: -7px; height: 1px; }

.focus__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(242, 236, 225, 0.55);
  border-style: solid;
}
.focus__corner--tl { top: 0; left: 0; border-width: 1.5px 0 0 1.5px; }
.focus__corner--tr { top: 0; right: 0; border-width: 1.5px 1.5px 0 0; }
.focus__corner--bl { bottom: 0; left: 0; border-width: 0 0 1.5px 1.5px; }
.focus__corner--br { bottom: 0; right: 0; border-width: 0 1.5px 1.5px 0; }

.focus__hud {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.focus__badge,
.focus__readout {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.74);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(242, 236, 225, 0.14);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.focus__badge {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: rgba(242, 236, 225, 0.78);
}
.focus__readout.is-sharp {
  background: var(--violet);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.focus__controls {
  margin-top: 18px;
  padding: 20px 24px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.focus__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.focus__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
}
.focus__help { font-size: 0.8125rem; color: var(--muted); }

.focus__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 36px;
  margin-top: 8px;
  background: transparent;
  cursor: grab;
}
.focus__range:active { cursor: grabbing; }
.focus__range::-webkit-slider-runnable-track {
  height: 4px;
  background: linear-gradient(90deg, var(--line) 0%, var(--copper-soft) 65%, var(--violet) 100%);
  border-radius: 4px;
}
.focus__range::-moz-range-track {
  height: 4px;
  background: linear-gradient(90deg, var(--line) 0%, var(--copper-soft) 65%, var(--violet) 100%);
  border-radius: 4px;
}
.focus__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -11px;
  border-radius: 999px;
  background: var(--violet);
  border: 4px solid var(--surface);
  box-shadow: 0 3px 12px rgba(76, 87, 240, 0.38);
  transition: transform 240ms var(--ease);
}
.focus__range::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--violet);
  border: 4px solid var(--surface);
  box-shadow: 0 3px 12px rgba(76, 87, 240, 0.38);
}
.focus__range:hover::-webkit-slider-thumb { transform: scale(1.14); }

.focus__scale {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.focus__scale b { color: var(--violet); font-weight: 700; }

/* Cartilla Snellen */
.chart {
  margin-top: 56px;
  max-width: 880px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.chart__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.chart__note { font-size: 0.875rem; color: var(--muted); }

.chart__lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.1;
}
.chart__lines li {
  position: relative;
  width: 100%;
  text-align: center;
  opacity: calc(1.04 - var(--n) * 0.05);
}
.chart__lines li::after {
  content: attr(data-acuity);
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.chart__lines li:nth-child(1) { font-size: 3.5rem; }
.chart__lines li:nth-child(2) { font-size: 2.5rem; }
.chart__lines li:nth-child(3) { font-size: 1.875rem; }
.chart__lines li:nth-child(4) { font-size: 1.5rem; }
.chart__lines li:nth-child(5) { font-size: 1.25rem; }
.chart__lines li:nth-child(6) { font-size: 1rem; border-bottom: 1px dashed rgba(169, 80, 42, 0.32); padding-bottom: 8px; }
.chart__lines li:nth-child(7) { font-size: 0.875rem; }
.chart__lines li:nth-child(8) { font-size: 0.75rem; }

.chart__ask {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.chart__ask p { font-size: 0.9375rem; font-weight: 600; }

.chart__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.chart__btns button {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background-color 240ms var(--ease), color 240ms var(--ease), border-color 240ms var(--ease), transform 240ms var(--ease);
}
.chart__btns button:hover { border-color: var(--violet); transform: translateY(-2px); }
.chart__btns button[aria-pressed="true"] {
  background: var(--violet);
  border-color: var(--violet);
  color: #fff;
}

.chart__result {
  margin-top: 20px;
  max-width: 640px;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--copper);
  min-height: 1.5em;
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}
.chart__result:empty { opacity: 0; transform: translateY(8px); }

.chart__legal {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ---------------------------------------------------------
   04 · LA MONTURA — fotografía macro real + anatomía interactiva
   --------------------------------------------------------- */
.montura { background: var(--paper); }

.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}

.frame-switch {
  margin-top: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.frame-switch__btn {
  text-align: left;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 300ms var(--ease), background-color 300ms var(--ease), transform 300ms var(--ease), box-shadow 300ms var(--ease);
}
.frame-switch__btn:hover {
  border-color: var(--ink-soft);
  transform: translateY(-2px);
}
.frame-switch__btn.is-active {
  border-color: var(--violet);
  background: #FFFFFF;
  box-shadow: 0 12px 28px rgba(20, 17, 14, 0.08), 0 0 0 1px var(--violet);
}
.frame-switch__kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.frame-switch__btn.is-active .frame-switch__kicker { color: var(--violet); }
.frame-switch__btn b {
  display: block;
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.spec-grid {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.spec-item b {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.spec-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Placa fotográfica macro + hotspots */
.frame-stage { margin: 0; }

.frame-plate {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: #1C1510;
  border: 1px solid rgba(20, 17, 14, 0.12);
  box-shadow: 0 28px 64px rgba(20, 17, 14, 0.16);
}

.frame-plate__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 640ms var(--ease), transform 900ms var(--ease);
}
.frame-plate__img.is-active {
  opacity: 1;
  transform: scale(var(--plate-zoom, 1.0));
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 45%);
}

.hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hotspot {
  position: absolute;
  left: var(--hx);
  top: var(--hy);
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid #FFFFFF;
  background: rgba(20, 17, 14, 0.78);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: left 520ms var(--ease), top 520ms var(--ease), transform 280ms var(--ease), background-color 280ms var(--ease);
}
.hotspot::before {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  opacity: 0.7;
  animation: pulsePin 2.6s var(--ease) infinite;
}
.hotspot:hover { transform: translate(-50%, -50%) scale(1.12); }
.hotspot.is-active {
  background: var(--violet);
  border-color: #FFFFFF;
  transform: translate(-50%, -50%) scale(1.14);
}

@keyframes pulsePin {
  0% { transform: scale(0.85); opacity: 0.75; }
  70% { transform: scale(1.32); opacity: 0; }
  100% { transform: scale(1.32); opacity: 0; }
}

.frame-callout {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(20, 17, 14, 0.82);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(242, 236, 225, 0.16);
  color: var(--paper);
  transition: opacity 280ms var(--ease), transform 280ms var(--ease);
}
.frame-callout__tag {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper-soft);
}
.frame-callout__title {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 600;
  color: #FFFFFF;
}
.frame-callout__desc {
  margin-top: 4px;
  font-size: 0.84375rem;
  line-height: 1.48;
  color: rgba(242, 236, 225, 0.82);
}

.frame-caption {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.frame-caption i {
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--copper);
  font-weight: 600;
}

/* ---------------------------------------------------------
   05 · EL LENTE — Laboratorio óptico interactivo + capas 3D
   --------------------------------------------------------- */
.lente { background: var(--paper-2); }

.lente__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
}
.lente__intro { margin-top: 0; }

.optics {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 32px;
  align-items: start;
}

.optics__tabs {
  display: grid;
  gap: 12px;
}

.optics-tab {
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(250, 246, 238, 0.72);
  color: var(--ink);
  font-family: inherit;
  cursor: pointer;
  transition: background-color 320ms var(--ease), border-color 320ms var(--ease), transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
.optics-tab:hover {
  background: var(--surface);
  border-color: #B4A894;
}
.optics-tab.is-active {
  background: #FFFFFF;
  border-color: var(--violet);
  box-shadow: 0 16px 36px rgba(20, 17, 14, 0.08), 0 0 0 1px var(--violet);
}

.optics-tab__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.optics-tab__num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--copper);
  font-variant-numeric: tabular-nums;
}
.optics-tab.is-active .optics-tab__num { color: var(--violet); }

.optics-tab__pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.optics-tab.is-active .optics-tab__pill {
  background: var(--violet-soft);
  color: var(--violet);
}

.optics-tab__title {
  display: block;
  margin-top: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.optics-tab__sub {
  display: block;
  margin-top: 2px;
  font-size: 0.9375rem;
  color: var(--muted);
}

.optics-tab__detail {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-soft);
  transition: max-height 400ms var(--ease), opacity 320ms var(--ease), margin-top 320ms var(--ease);
}
.optics-tab.is-active .optics-tab__detail {
  margin-top: 12px;
  max-height: 120px;
  opacity: 1;
}

/* Escenario simulador de lente */
.optics__stage {
  display: grid;
  gap: 16px;
}

.sim {
  --sim-w: 600px;
  --sim-h: 380px;
  --loupe-r: 108px;
  --loupe-x: 320px;
  --loupe-y: 190px;
  --uv-amt: 0.78;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  overflow: hidden;
  background: #14110E;
  border: 1px solid rgba(20, 17, 14, 0.16);
  box-shadow: 0 24px 56px rgba(20, 17, 14, 0.14);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.sim:active { cursor: grabbing; }

.sim__outside {
  position: absolute;
  inset: 0;
}
.sim__outside img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 480ms var(--ease);
}

/* Estados del mundo EXTERIOR (sin tratamiento) según la pestaña activa */
.optics[data-mode="ar"] .sim__outside img {
  filter: brightness(0.72) contrast(0.92) saturate(0.95);
}
.optics[data-mode="blue"] .sim__outside img {
  filter: brightness(1.06) contrast(0.95) saturate(1.18) hue-rotate(-14deg);
}
.optics[data-mode="photo"] .sim__outside img {
  filter: brightness(calc(1 + var(--uv-amt) * 0.34)) contrast(0.92) saturate(1.08);
}
.optics[data-mode="prog"] .sim__outside img {
  filter: blur(5.5px) brightness(0.94);
}

/* Capas físicas de molestia visual fuera del lente */
.sim__glare,
.sim__bluecast,
.sim__uvsun,
.sim__nearblur {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 480ms var(--ease);
}

/* Halos y reflejo fantasma sin antirreflejo */
.sim__glare {
  background:
    radial-gradient(circle at 76% 58%, rgba(255, 224, 166, 0.85) 0%, rgba(255, 180, 90, 0.28) 14%, transparent 34%),
    radial-gradient(circle at 58% 66%, rgba(255, 215, 150, 0.72) 0%, rgba(255, 165, 80, 0.22) 11%, transparent 28%),
    linear-gradient(122deg, transparent 22%, rgba(255, 255, 255, 0.24) 36%, rgba(255, 255, 255, 0.04) 44%, transparent 56%),
    linear-gradient(122deg, transparent 58%, rgba(220, 230, 255, 0.18) 66%, transparent 74%);
}
.optics[data-mode="ar"] .sim__glare { opacity: 1; }

/* Dominante fría azul de pantalla */
.sim__bluecast {
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(76, 118, 255, 0.28), rgba(64, 92, 240, 0.14));
  mix-blend-mode: screen;
}
.optics[data-mode="blue"] .sim__bluecast { opacity: 1; }

/* Resplandor UV de mediodía sabanero */
.sim__uvsun {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 248, 225, 0.92) 0%, rgba(255, 218, 155, 0.36) 32%, transparent 68%);
}
.optics[data-mode="photo"] .sim__uvsun { opacity: var(--uv-amt); }

/* Lupa del lente oftálmico ALFA */
.sim__loupe {
  position: absolute;
  left: var(--loupe-x);
  top: var(--loupe-y);
  width: calc(var(--loupe-r) * 2);
  height: calc(var(--loupe-r) * 2);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(255, 255, 255, 0.65),
    0 0 0 6px rgba(20, 17, 14, 0.32),
    inset 0 0 24px rgba(76, 87, 240, 0.22);
  pointer-events: none;
  z-index: 3;
}

.sim__loupe-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
  background: #14110E;
}

.sim__loupe-inner img {
  position: absolute;
  max-width: none;
  width: var(--sim-w);
  height: var(--sim-h);
  left: calc(var(--loupe-r) - var(--loupe-x));
  top: calc(var(--loupe-r) - var(--loupe-y));
  object-fit: cover;
  transform: scale(1.035);
  transform-origin: var(--loupe-x) var(--loupe-y);
  filter: contrast(1.07) saturate(1.05);
  transition: filter 420ms var(--ease);
}

/* Tinte dinámico dentro de la lupa */
.sim__loupe-tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 320ms var(--ease), background-color 320ms var(--ease);
}

.optics[data-mode="blue"] .sim__loupe-tint {
  background: rgba(246, 224, 188, 0.11);
  opacity: 1;
}

.optics[data-mode="photo"] .sim__loupe-tint {
  background: linear-gradient(160deg, rgba(34, 26, 20, 0.82), rgba(74, 48, 30, 0.68));
  opacity: calc(var(--uv-amt) * 0.78);
}

/* Guías grabadas de lente progresivo */
.sim__prog-zones {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transition: opacity 360ms var(--ease);
  pointer-events: none;
}
.sim__prog-zones span {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.66);
  border: 1px solid rgba(242, 236, 225, 0.25);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.sim__prog-zones span:nth-child(2) {
  border-color: rgba(122, 131, 255, 0.65);
}
.optics[data-mode="prog"] .sim__prog-zones { opacity: 1; }

/* Reflejo físico antirreflejo violeta #4C57F0 sobre el bisel del cristal */
.sim__loupe-ar {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(122, 131, 255, 0.34) 0%, rgba(76, 87, 240, 0.08) 28%, transparent 52%, rgba(200, 122, 78, 0.16) 100%);
  pointer-events: none;
}

.sim__loupe-tag {
  position: absolute;
  left: 50%;
  bottom: -13px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--violet);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 16px rgba(76, 87, 240, 0.4);
}

.sim__topbar {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.sim__chip,
.sim__hint {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.68);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(242, 236, 225, 0.15);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.sim__hint { color: var(--copper-soft); }

.sim__uvbar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 5;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(20, 17, 14, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(242, 236, 225, 0.16);
  color: var(--paper);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  cursor: default;
}
.sim__uvbar[hidden] { display: none; }
.sim__uvbar label { font-weight: 600; white-space: nowrap; }
.sim__uvbar input { flex: 1; accent-color: var(--copper-soft); cursor: pointer; }
.sim__uvbar span {
  font-variant-numeric: tabular-nums;
  color: var(--copper-soft);
  font-weight: 600;
  white-space: nowrap;
}

/* Tarjeta inferior de corte multicapa + foto real del lente */
.stack-card {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 20px;
  align-items: center;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.iso-stack {
  width: 100%;
  height: auto;
  overflow: visible;
}
.iso-layer {
  opacity: 0.42;
  transition: transform 520ms var(--ease), opacity 420ms var(--ease), filter 420ms var(--ease);
}
.iso-layer.is-highlighted {
  opacity: 1;
  transform: translateY(-9px);
  filter: drop-shadow(0 10px 14px rgba(76, 87, 240, 0.22));
}

.stack-card__meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.stack-card__lens-thumb {
  width: 84px;
  height: 62px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(20, 17, 14, 0.15);
}
.stack-card__lens-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.stack-card__copy {
  margin-top: 6px;
  font-size: 0.84375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.stack-card__copy code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--violet-soft);
  color: var(--violet);
}

/* ---------------------------------------------------------
   06 · Tagline
   --------------------------------------------------------- */
.tagline {
  padding: calc(var(--section) * 1.15) 0;
  background: var(--paper);
}
.tagline__text {
  max-width: 920px;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.tagline__text .w {
  color: #8A8174;
  transition: color 680ms var(--ease);
}
.tagline__text .w.is-on { color: var(--ink); }

/* ---------------------------------------------------------
   07 · Gente
   --------------------------------------------------------- */
.gente { background: var(--paper); padding-top: 0; }

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.quote {
  padding: 28px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote blockquote {
  font-size: 1.0625rem;
  line-height: 1.55;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.quote blockquote::before { content: "“"; color: var(--copper); font-weight: 700; margin-right: 2px; }
.quote blockquote::after { content: "”"; color: var(--copper); font-weight: 700; margin-left: 2px; }
.quote figcaption {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--paper-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------------------------------------------------------
   08 · La marca + Bento de vista previa (Manual + WebApp)
   --------------------------------------------------------- */
.kit { background: var(--paper-2); }
.kit__wrap {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 56px;
  align-items: center;
}
.btn--lg { margin-top: 32px; padding: 15px 28px; }
.kit__note {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 44ch;
}

.kit-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.kit-card {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 320ms var(--ease), box-shadow 320ms var(--ease);
}
a.kit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(20, 17, 14, 0.14);
}

.kit-card--dark {
  background: var(--ink);
  border-color: #2A241E;
  color: var(--paper);
}
.kit-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.kit-card--dark .kit-card__label { color: var(--copper-soft); }

.kit-card__logo {
  width: 100%;
  max-width: 180px;
  margin-inline: auto;
  color: var(--paper);
}

.kit-card__foot {
  font-size: 0.78125rem;
  color: var(--muted);
}
.kit-card--dark .kit-card__foot { color: rgba(242, 236, 225, 0.62); }
.kit-card__foot code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
}

.kit-swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.kit-swatches i {
  display: block;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1px solid rgba(20, 17, 14, 0.14);
}

.kit-card--app {
  grid-column: 1 / -1;
  background: #FFFFFF;
}
.kit-card__app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.kit-card__pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 0.75rem;
  font-weight: 700;
}
.kit-rx {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.6fr;
  gap: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--paper-2);
}
.kit-rx small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}
.kit-rx b {
  display: block;
  margin-top: 3px;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* ---------------------------------------------------------
   09 · Agenda + Footer
   --------------------------------------------------------- */
.agenda {
  background: var(--ink);
  color: var(--paper);
  padding-bottom: calc(var(--section) * 1.1);
}
.agenda__wrap { position: relative; }

.agenda__grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: start;
}

.agenda__alt {
  margin-top: 32px;
  font-size: 0.9375rem;
  color: rgba(242, 236, 225, 0.62);
}
.agenda__alt a { color: var(--copper-soft); text-decoration: none; }
.agenda__alt a:hover { text-decoration: underline; }

/* --- formulario --- */
.contact {
  background: var(--paper);
  color: var(--ink);
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.contact__title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__opt { text-transform: none; letter-spacing: 0; font-weight: 400; }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 240ms var(--ease), box-shadow 240ms var(--ease);
}
.field textarea { resize: vertical; min-height: 88px; }
.field select {
  appearance: none;
  cursor: pointer;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%237C7367' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(76, 87, 240, 0.18);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #c0392b; }

.field__err {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: #c0392b;
  min-height: 1.1em;
}
.field__err:empty { min-height: 0; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
  cursor: pointer;
}
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--violet); }
.check a { color: var(--violet); text-underline-offset: 2px; }

.btn--block { display: block; width: 100%; margin-top: 20px; text-align: center; }

.contact__note {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.agenda__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.agenda__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(242, 236, 225, 0.16);
}
.agenda__meta dt {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-soft);
}
.agenda__meta dd {
  margin-top: 8px;
  font-size: 1rem;
  color: rgba(242, 236, 225, 0.85);
}

.foot {
  background: var(--ink);
  color: var(--paper);
  padding: 32px 0 48px;
  border-top: 1px solid rgba(242, 236, 225, 0.12);
}
.foot__wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.foot__suffix {
  font-weight: 400;
  letter-spacing: 0;
  font-size: 0.8125rem;
  color: rgba(242, 236, 225, 0.55);
}
.foot__links { display: flex; flex-wrap: wrap; gap: 24px; }
.foot__links a {
  font-size: 0.8125rem;
  color: rgba(242, 236, 225, 0.72);
  text-decoration: none;
  transition: color 240ms var(--ease);
}
.foot__links a:hover { color: var(--paper); }
.foot__note { font-size: 0.75rem; color: rgba(242, 236, 225, 0.66); }

/* CTA fijo */
/* botón flotante: WhatsApp + agenda */

/* ---------------------------------------------------------
   Revelados
   --------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------------
   Legal (privacidad.html y terminos.html)
   --------------------------------------------------------- */

.legal-body { background: var(--paper); }

.legal { padding: 140px 0 96px; }
.legal .wrap { width: min(760px, 100% - var(--gutter) * 2); }
.legal h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 600;
  text-wrap: balance;
}
.legal__meta {
  margin-top: 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.legal__lead {
  margin-top: 24px;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.legal h2 {
  margin-top: 48px;
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.legal p {
  margin-top: 14px;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.legal ul { margin-top: 14px; padding-left: 20px; list-style: disc; }
.legal li { margin-top: 8px; color: var(--ink-soft); }
.legal a { color: var(--violet); text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal__note {
  margin-top: 56px;
  padding: 16px 20px;
  border-left: 3px solid var(--copper);
  background: var(--paper-2);
  border-radius: 0 10px 10px 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */

@media (max-width: 920px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav { gap: 8px; padding: 6px 6px 6px 16px; }

  .split,
  .lente__header,
  .optics,
  .kit__wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .split__media { order: -1; }
  .frame-plate { aspect-ratio: 4 / 4.4; }
  .quotes { grid-template-columns: 1fr; }
  .agenda__meta { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .frame-switch,
  .spec-grid,
  .stack-card,
  .kit-bento,
  .kit-rx {
    grid-template-columns: 1fr;
  }
  .sim { --loupe-r: 82px; aspect-ratio: 4 / 3; }
  .chart { padding: 24px 18px; }
  .chart__lines li::after { display: none; }
  .chart__btns button { width: 40px; height: 40px; }
  .agenda__grid { grid-template-columns: 1fr; gap: 40px; }
  .contact { padding: 24px 20px; }

  /* en móvil el flotante ocupa el ancho: agenda a la izquierda, WhatsApp a la derecha */
}

/* ---------------------------------------------------------
   Accesibilidad: reducción de movimiento
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal],
  .tagline__text .w {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .focus__img { filter: blur(var(--focus-blur, 18px)); }
  .tagline__text .w { color: var(--ink) !important; }
}

/* Objetivos táctiles (revisión UX 10-nov-2026): enlaces del pie y de contacto
   medían 13-21 px de alto en el móvil y las casillas 13-18 px. */
footer a, footer button { display: inline-flex; align-items: center; min-height: 32px; }
input[type="checkbox"], input[type="radio"] { width: 20px; height: 20px; flex: none; }

/* ── Rediseño «La consulta abierta» (10-nov-2026) ─────────────────────────── */

/* Ritmo: papel por defecto; dos tramos oscuros cálidos (Monturas, Lentes). */
.scene--oscura { background: var(--oscuro); color: #F3EEE6; }
.scene--oscura .eyebrow { color: var(--copper-soft); }

/* Dos caminos */
.caminos__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); margin-top: 32px; }
.camino { display: grid; gap: 10px; padding: 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; color: var(--ink); text-decoration: none; transition: border-color .3s var(--ease), transform .3s var(--ease); }
.camino:hover { border-color: var(--copper); transform: translateY(-2px); }
.camino__k { font-size: 12px; letter-spacing: .16em; color: var(--copper); font-weight: 600; }
.camino__t { font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.camino__d { color: var(--muted); line-height: 1.55; }
.camino__cta { color: var(--violet); font-weight: 600; min-height: 32px; display: inline-flex; align-items: center; }

/* Un solo CTA fijo: barra inferior en móvil; en escritorio manda la nav. */
.cta-bar { position: fixed; inset: auto 0 0 0; z-index: 60; display: flex; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 245, 240, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
.cta-bar a { flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 900px) { .cta-bar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 72px; } }
/* El botón secundario de la barra va sobre papel: contorno de tinta. */
.cta-bar .cta-bar__wa { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }

/* ── Hero «¿Cómo ves Modelia?» ───────────────────────────────────────────────
   Escritorio: la calle a sangre y un velo de papel a la izquierda, donde vive
   el texto (legible esté la foto borrosa o nítida). Móvil: la calle es una
   banda arriba y el texto va debajo sobre papel; nada se pisa con la barra CTA. */
.btn--linea { --btn-bg: transparent; --btn-fg: var(--ink); border: 1.5px solid var(--ink); }
.btn--linea:hover { background: var(--ink); color: var(--paper); box-shadow: none; }

.hero { position: relative; min-height: min(100svh, 940px); display: grid; align-items: center;
  overflow: hidden; background: var(--paper); padding: 0; }
.hero__escena { position: absolute; inset: 0; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06);
  transition: filter 0.18s linear; will-change: filter; }
.hero__escena::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, var(--paper) 0%, rgba(247,245,240,.96) 30%, rgba(247,245,240,.6) 48%, rgba(247,245,240,0) 66%),
    linear-gradient(180deg, rgba(247,245,240,0) 80%, var(--paper) 100%); }
.hero__reticula { position: absolute; inset: 16% 8% 18% 52%; pointer-events: none; opacity: .5;
  transition: opacity .4s var(--ease); }
.hero--nitido .hero__reticula { opacity: .12; }
.hero__texto { position: relative; z-index: 1; padding-block: 120px 64px; }
.hero__texto > * { max-width: 560px; }
.hero__t { font-size: clamp(42px, 6.4vw, 88px); font-weight: 600; letter-spacing: -0.035em;
  line-height: 0.98; margin: 10px 0 14px; }
.hero__sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--muted); margin: 0 0 24px; max-width: 34ch; }
.hero__panel { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center;
  padding: 16px 18px; margin-bottom: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 16px 40px -24px rgba(20,17,14,.35); }
.hero__panel .focus__dial { grid-row: auto; grid-column: auto; width: 112px; }
.hero__panel .focus__dial::after { inset: 30px; }
.hero__control { display: grid; gap: 8px; min-width: 0; }
/* experience.css (se carga después) pone .focus__range/.focus__scale en la
   columna 2: aquí todo va en una sola columna. */
.hero__control > .focus__range, .hero__control > .focus__scale,
.hero__control > .focus__label, .hero__control > .hero__readout { grid-column: 1 / -1; }
.hero__control .focus__range { width: 100%; min-height: 32px; accent-color: var(--copper); }
.hero--nitido .hero__control .focus__range { accent-color: var(--violet); }
.hero__control .focus__scale { display: flex; justify-content: space-between; gap: 8px; font-size: 12px;
  color: var(--muted); font-variant-numeric: tabular-nums; }
.hero__control .focus__scale b { color: var(--violet); font-weight: 600; }
.hero__readout { margin: 0; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hero--nitido .hero__readout { color: var(--violet); font-weight: 600; }
.hero__acciones { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 899px) {
  .hero { display: block; min-height: 0; }
  .hero__escena { position: relative; height: 34svh; min-height: 220px; }
  .hero__escena::after { background: linear-gradient(180deg, rgba(247,245,240,0) 62%, var(--paper) 100%); }
  .hero__reticula { inset: 22% 14%; }
    .hero__texto { padding-block: 4px 32px; margin-top: -28px; }
  .hero__t { font-size: clamp(38px, 11vw, 56px); }
}
@media (max-width: 560px) {
  .hero__panel { grid-template-columns: 1fr; gap: 10px; padding: 14px; }
  .hero__panel .focus__dial { display: none; }   /* en el móvil manda el anillo */
  .hero__acciones .btn { flex: 1 1 auto; }
}

/* ── El examen ─────────────────────────────────────────────────────────── */
.examen__grid { display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); align-items: start; }
.examen__texto .lede { margin-bottom: 8px; }
.pasos { list-style: none; counter-reset: p; padding: 0; margin: 24px 0; display: grid; gap: 16px; }
.pasos li { counter-increment: p; display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; }
.pasos li::before { content: counter(p, decimal-leading-zero); grid-row: span 2; color: var(--copper);
  font-weight: 600; font-size: 13px; letter-spacing: .1em; padding-top: 3px; font-variant-numeric: tabular-nums; }
.pasos strong { font-weight: 600; }
.pasos span { color: var(--muted); }
.ficha { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 28px;
  padding: 16px 0; border-block: 1px solid var(--line); }
.ficha dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ficha dd { margin: 4px 0 0; font-weight: 600; }

/* Promesas (las «tres cosas» repartidas donde se cumplen). */
.promesa { margin: 16px 0 0; padding-left: 14px; border-left: 2px solid var(--copper); max-width: 46ch; }
.promesa strong { font-weight: 600; }
.scene--oscura .promesa { color: rgba(243, 238, 230, .86); border-left-color: var(--copper-soft); }

/* Texto corrido en las dos secciones oscuras: el gris de papel no se lee
   sobre oscuro (≥ 7:1 con este tono). */
.scene--oscura .lede, .scene--oscura .body { color: rgba(243, 238, 230, 0.84); }

/* ── Alfonso y el local ────────────────────────────────────────────────── */
.local__grid { display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); align-items: center; }
.local__img { margin: 0; }
.local__img img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line); display: block; }
.local__img figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }
/* El lema es cita, no segundo titular. */
.local .local__lema { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 500; line-height: 1.3;
  color: var(--copper); margin: 18px 0; max-width: 30ch; }
.local .local__lema .w { color: inherit; }


/* ── Agenda: en papel (el oscuro queda solo para Monturas y Lentes) ────── */
.agenda { background: var(--paper-2); color: var(--ink); }
.agenda__alt { color: var(--muted); }
.agenda__alt a { color: var(--copper); font-weight: 600; display: inline-flex; align-items: center; min-height: 32px; margin-right: 12px; }
.agenda__meta { border-top-color: var(--line); }
.agenda__meta dt { color: var(--copper); }
.agenda__meta dd { color: var(--ink); }
.agenda .contact { background: var(--surface); box-shadow: 0 24px 60px -30px rgba(20, 17, 14, 0.35); border: 1px solid var(--line); }
.form__estado { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.form__estado[data-estado="demo"] { color: var(--copper); }
.form__estado[data-estado="enviando"] { color: var(--muted); }
.form__estado[data-estado="error"] { color: #A3301F; }
.form__estado[data-estado="ok"] { color: #1C6B4F; }
.mapa { margin: 32px 0 0; }
.mapa a { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
.mapa img { width: 100%; height: auto; display: block; }
.mapa figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ── Galería de monturas (renders de Blender sobre papel) ──────────────── */
.monturas__rotulo { margin-top: clamp(48px, 7vw, 88px); }
.monturas__galeria { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 44%), 1fr)); }   /* dos columnas en el móvil */
.montura-card { display: grid; gap: 4px; padding: 12px 14px 16px; background: var(--paper); color: var(--ink);
  border-radius: 18px; }
.montura-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 6px; }
.montura-card strong { font-weight: 600; }
.montura-card span { font-size: 13px; color: var(--muted); }
.monturas__nota { margin-top: 14px; font-size: 12px; color: rgba(243, 238, 230, .7); }
/* El logo de la nav también es un objetivo táctil (medía 24 px de alto). */
.nav__brand { min-height: 32px; display: inline-flex; align-items: center; }

/* ── La lente del hero ───────────────────────────────────────────────────────
   Copia nítida de la foto, enmascarada por los dos aros del símbolo v3
   (r = 34/208 del ancho, centros a ±44/208). La montura en cobre va encima.
   --lx/--ly: centro de la lente (sigue al puntero en escritorio). */
.hero__escena { --lw: min(36vw, 500px); --lx: 70%; --ly: 46%;
  --lr: calc(var(--lw) * 0.1635); --lo: calc(var(--lw) * 0.2115); }
.hero__nitida { position: absolute; inset: 0; filter: none !important;
  -webkit-mask-image:
    radial-gradient(circle var(--lr) at calc(var(--lx) - var(--lo)) var(--ly), #000 97%, transparent 100%),
    radial-gradient(circle var(--lr) at calc(var(--lx) + var(--lo)) var(--ly), #000 97%, transparent 100%);
          mask-image:
    radial-gradient(circle var(--lr) at calc(var(--lx) - var(--lo)) var(--ly), #000 97%, transparent 100%),
    radial-gradient(circle var(--lr) at calc(var(--lx) + var(--lo)) var(--ly), #000 97%, transparent 100%);
  transition: opacity .3s var(--ease); }
.hero__montura { position: absolute; width: var(--lw); height: auto; pointer-events: none;
  left: calc(var(--lx) - var(--lw) / 2); top: calc(var(--ly) - var(--lw) * 0.2404);
  color: var(--copper); filter: drop-shadow(0 6px 14px rgba(20, 17, 14, .35)); }
.hero--nitido .hero__montura { opacity: .9; }
@media (max-width: 899px) {
  .hero__escena { --lw: min(78vw, 420px); --lx: 50%; --ly: 52%; }
}
@media (prefers-reduced-motion: reduce) { .hero__montura, .hero__nitida { transition: none; } }
