/* ==========================================================================
   Óptica Sagrada Visión — estilos
   Paleta tomada del afiche: azul marino, azul acero, celeste y burdeo.
   ========================================================================== */

:root {
  --navy-950: #0a1630;
  --navy-900: #0f1f3d;
  --navy: #1c3564;
  --steel: #3e6591;
  --steel-2: #5c7fb3;
  --sky: #bcd8f1;
  --sky-2: #dcebf8;
  --mist: #f3f7fc;
  --white: #ffffff;
  --berry: #8c1d4d;
  --berry-2: #b84a72;
  --wa: #1faa59;
  --ink: #16233f;
  --muted: #5b6b86;
  --line: rgba(28, 53, 100, .12);

  --sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

  --radius: 24px;
  --shadow-sm: 0 6px 20px -10px rgba(15, 31, 61, .25);
  --shadow-lg: 0 40px 90px -40px rgba(15, 31, 61, .55);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--sky); color: var(--navy-900); }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 40px); }
.section { padding: clamp(88px, 12vw, 160px) 0; position: relative; }

.eyebrow {
  margin: 0 0 18px;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; opacity: .6; }

.h2 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 4.6vw, 3.8rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--navy);
}
.h2 em, .hero-title em, .footer-tag em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--steel);
}
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.link { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--navy);
  --fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 18px 40px -18px rgba(15, 31, 61, .6); }
.btn:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.btn-primary { --bg: var(--navy); }
.btn-light { --bg: var(--white); --fg: var(--navy); }
.btn-outline { --bg: transparent; --fg: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
.btn-outline:hover { --bg: rgba(255, 255, 255, .1); }
.btn-ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { --bg: var(--white); }
.btn-berry { --bg: var(--berry); }
.btn-wa { --bg: var(--wa); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.icon-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--navy);
  background: var(--mist);
  transition: background .3s, transform .4s var(--ease);
}
.icon-btn:hover { background: var(--sky-2); transform: rotate(90deg); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--navy-900);
  color: var(--sky);
  transition: opacity .8s var(--ease) .1s, visibility 0s linear .9s;
}
.preloader-eye { width: 96px; height: 60px; animation: blink 1.6s var(--ease) infinite; }
.preloader span { font-size: .72rem; letter-spacing: .5em; text-transform: uppercase; opacity: .7; }
body.loaded .preloader { opacity: 0; visibility: hidden; }
@keyframes blink { 0%, 40%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.08); } 60% { transform: scaleY(1); } }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--white);
  transition: background .5s var(--ease), color .4s, box-shadow .5s, padding .5s var(--ease);
  padding: 18px 0;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  color: var(--navy);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(15, 31, 61, .35);
  padding: 10px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 8px;
  text-decoration: none;
  line-height: 1;
}
.brand-word { font-size: 1.35rem; font-weight: 300; letter-spacing: .3em; }
.brand-eye { width: 36px; height: 23px; }
.brand-sub { grid-column: 1 / -1; margin-top: 5px; font-size: .56rem; font-weight: 400; letter-spacing: .52em; opacity: .8; }

.nav-links { display: flex; gap: 34px; }
.nav-links a {
  position: relative;
  font-size: .9rem;
  font-weight: 400;
  text-decoration: none;
  letter-spacing: .03em;
  opacity: .9;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn {
  position: relative;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px currentColor;
  transition: transform .4s var(--ease), background .3s;
}
.nav.is-scrolled .cart-btn { box-shadow: inset 0 0 0 1px var(--line); }
.cart-btn:hover { transform: scale(1.06); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -3px; right: -3px;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px;
  background: var(--berry);
  color: var(--white);
  font-size: .7rem; font-weight: 600;
  display: grid; place-items: center;
  transform: scale(0);
  transition: transform .4s var(--ease);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

.burger { display: none; width: 46px; height: 46px; border-radius: 50%; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 19px; }
.burger span:last-child { top: 26px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 120px;
  color: var(--white);
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 80% 20%, #2b4f86 0%, transparent 60%),
    radial-gradient(900px 600px at 10% 90%, #274877 0%, transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy) 60%, #22406f);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  mix-blend-mode: luminosity;
  transition: opacity 1.6s var(--ease);
}
.hero-video.is-ready { opacity: .38; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-curves { position: absolute; inset: 0; width: 100%; height: 100%; }
.curve {
  fill: none;
  stroke: var(--sky);
  stroke-width: 1.4;
  stroke-opacity: .35;
  stroke-dasharray: 2200;
  stroke-dashoffset: 2200;
  animation: draw 3.6s var(--ease) forwards;
}
.curve.c2 { animation-delay: .4s; stroke-opacity: .25; }
.curve.c3 { animation-delay: .8s; stroke-opacity: .2; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-veil { position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to bottom, transparent, rgba(10, 22, 48, .35)); }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(32px, 6vw, 90px);
}
.hero .eyebrow { color: var(--sky); }
.hero-title {
  margin: 0 0 28px;
  font-size: clamp(3rem, 7.2vw, 6.6rem);
  font-weight: 200;
  line-height: .98;
  letter-spacing: -.035em;
}
.hero-title em { color: var(--sky); font-size: 1.08em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; transform: translateY(110%); transition: transform 1.3s var(--ease); }
.hero-title .line:nth-child(2) > span { transition-delay: .12s; }
.hero-title .line:nth-child(3) > span { transition-delay: .24s; }
body.loaded .hero-title .line > span { transform: none; }

.lead { max-width: 520px; margin: 0 0 36px; font-size: 1.12rem; color: rgba(255, 255, 255, .82); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 40px 0 0; padding: 0; font-size: .88rem; color: rgba(255, 255, 255, .8); }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 16px; height: 16px; color: var(--sky); }

/* Tabla de Snellen con lente revelador */
.chart-card { margin: 0; justify-self: end; width: min(100%, 440px); }
.chart-inner {
  --cx: 50%; --cy: 50%;
  position: relative;
  padding: 36px 28px 30px;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff, #f1f6fc);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, .6);
  color: var(--navy-900);
  overflow: hidden;
  cursor: none;
  touch-action: pan-y;
}
.chart-layer { display: grid; gap: 6px; text-align: center; user-select: none; }
.chart-row { position: relative; display: block; font-weight: 600; letter-spacing: .28em; line-height: 1.15; }
.chart-row i { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--steel); opacity: .7; }
.chart-row.is-green::after { content: ''; display: block; width: 60%; height: 3px; margin: 8px auto 0; border-radius: 2px; background: #3dbb6c; }
.chart-row.is-red::after { content: ''; display: block; width: 60%; height: 3px; margin: 8px auto 0; border-radius: 2px; background: #d9475c; }
.chart-blur { filter: blur(4.2px); opacity: .75; }
.chart-sharp {
  position: absolute; inset: 36px 28px 30px;
  -webkit-mask-image:
    radial-gradient(circle 50px at calc(var(--cx) - 70px) var(--cy), #000 96%, transparent 100%),
    radial-gradient(circle 50px at calc(var(--cx) + 70px) var(--cy), #000 96%, transparent 100%);
  mask-image:
    radial-gradient(circle 50px at calc(var(--cx) - 70px) var(--cy), #000 96%, transparent 100%),
    radial-gradient(circle 50px at calc(var(--cx) + 70px) var(--cy), #000 96%, transparent 100%);
}
.chart-glasses {
  position: absolute; left: 28px; top: 36px;
  width: 300px; height: 120px;
  overflow: visible;
  pointer-events: none;
  transform: translate(calc(var(--cx) - 150px), calc(var(--cy) - 60px));
  fill: rgba(188, 216, 241, .1);
  stroke: var(--navy);
  stroke-width: 5;
  stroke-linecap: round;
  filter: drop-shadow(0 8px 12px rgba(15, 31, 61, .25));
}
.chart-glasses path { fill: none; }
.chart-card figcaption { margin-top: 16px; text-align: center; font-size: .82rem; color: rgba(255, 255, 255, .7); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 10px;
  font-size: .68rem; letter-spacing: .4em; text-transform: uppercase; text-decoration: none;
  color: rgba(255, 255, 255, .7);
}
.scroll-cue span { width: 1px; height: 48px; background: linear-gradient(var(--sky), transparent); position: relative; overflow: hidden; }
.scroll-cue span::after { content: ''; position: absolute; left: 0; top: -50%; width: 1px; height: 50%; background: var(--white); animation: cue 2s var(--ease) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--navy-900); color: var(--sky); overflow: hidden; padding: 22px 0; border-top: 1px solid rgba(188, 216, 241, .12); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 200; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.marquee i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--sky); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Anatomía (vista explosionada) ---------- */
.anatomy { position: relative; height: 420vh; background: var(--mist); }
.anatomy-sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background:
    radial-gradient(700px 500px at 72% 50%, rgba(188, 216, 241, .7), transparent 70%),
    linear-gradient(180deg, var(--mist), #eaf2fb);
}
.anatomy-grid { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); align-items: center; gap: 40px; }
.anatomy-copy .h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

.steps-list { list-style: none; margin: 34px 0 28px; padding: 0; display: grid; gap: 4px; }
.steps-list li {
  position: relative;
  padding: 12px 0 12px 44px;
  opacity: .38;
  transition: opacity .5s var(--ease);
}
.steps-list li:nth-child(1) { --n: '01'; }
.steps-list li:nth-child(2) { --n: '02'; }
.steps-list li:nth-child(3) { --n: '03'; }
.steps-list li:nth-child(4) { --n: '04'; }
.steps-list li:nth-child(5) { --n: '05'; }
.steps-list li::before {
  content: var(--n);
  position: absolute; left: 0; top: 13px;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; color: var(--steel);
}
.steps-list b { display: block; font-weight: 500; color: var(--navy); font-size: 1.05rem; }
.steps-list span { display: block; font-size: .9rem; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); }
.steps-list li.is-active { opacity: 1; }
.steps-list li.is-active span { max-height: 60px; }
.anatomy-progress { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.anatomy-progress span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--steel), var(--berry-2)); transform-origin: left; transform: scaleX(0); }

.scene {
  --e: 0; --rx: 6; --ry: -18; --s: 1;
  position: relative;
  min-width: 0;
  height: min(72vh, 600px);
  display: grid; place-items: center;
  perspective: 1500px;
  perspective-origin: 50% 40%;
}
.scene-glow { position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .9), transparent 65%); }
.scene-shadow {
  position: absolute; bottom: 12%; left: 50%;
  width: 56%; height: 34px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(15, 31, 61, .28), transparent);
  transform: translateX(-50%) scaleX(calc(1 + var(--e) * .5));
  filter: blur(6px);
}
.rig {
  position: absolute;
  left: 50%; top: 50%;
  margin: -110px 0 0 -280px;
  width: 560px; height: 220px;
  transform-style: preserve-3d;
  transform: scale3d(var(--s), var(--s), var(--s)) rotateX(calc(var(--rx) * 1deg)) rotateY(calc(var(--ry) * 1deg));
}
.part { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.part svg { width: 100%; height: 100%; overflow: visible; }

.front-main { transform: translate3d(0, calc(var(--e) * -8px), calc(var(--e) * -40px)); }
.front-back { transform: translate3d(0, calc(var(--e) * -8px), calc(var(--e) * -40px - 7px)); }
.front-main svg { filter: drop-shadow(0 14px 18px rgba(15, 31, 61, .25)); }

.lens-l { transform: translate3d(calc(var(--e) * -46px), calc(var(--e) * -6px), calc(var(--e) * 170px)); }
.lens-r { transform: translate3d(calc(var(--e) * 46px), calc(var(--e) * -6px), calc(var(--e) * 170px)); }
.lens svg { filter: drop-shadow(0 12px 24px rgba(28, 53, 100, .22)); }

.coat { opacity: calc(var(--e) * 1.4 - .2); }
.coat-l { transform: translate3d(calc(var(--e) * -80px), calc(var(--e) * -18px), calc(var(--e) * 300px)); }
.coat-r { transform: translate3d(calc(var(--e) * 80px), calc(var(--e) * -18px), calc(var(--e) * 300px)); }

.pad {
  inset: auto;
  top: 110px;
  width: 18px; height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, rgba(255, 255, 255, .95), rgba(188, 216, 241, .55));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .9), 0 6px 12px -4px rgba(15, 31, 61, .35);
}
.pad-l { left: 232px; transform: translate3d(calc(var(--e) * -26px), calc(var(--e) * 80px), calc(var(--e) * 110px)); }
.pad-r { left: 310px; transform: translate3d(calc(var(--e) * 26px), calc(var(--e) * 80px), calc(var(--e) * 110px)); }

.hinge {
  inset: auto;
  top: 46px;
  width: 24px; height: 30px;
  border-radius: 7px;
  background: linear-gradient(180deg, #f2f6fb, #9aa6b6 45%, #4a5566);
  box-shadow: 0 6px 12px -4px rgba(15, 31, 61, .4);
}
.hinge-l { left: 10px; transform: translate3d(calc(var(--e) * -90px), calc(var(--e) * 18px), calc(var(--e) * 40px)); }
.hinge-r { left: 526px; transform: translate3d(calc(var(--e) * 90px), calc(var(--e) * 18px), calc(var(--e) * 40px)); }

.screw {
  inset: auto;
  top: 30px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #9aa6b6 55%, #3b4452);
}
.screw::after { content: ''; position: absolute; left: 2px; right: 2px; top: 5px; height: 1px; background: #3b4452; }
.screw-l { left: 17px; transform: translate3d(calc(var(--e) * -110px), calc(var(--e) * -90px), calc(var(--e) * 90px)); }
.screw-r { left: 532px; transform: translate3d(calc(var(--e) * 110px), calc(var(--e) * -90px), calc(var(--e) * 90px)); }

.temple { inset: auto; top: 44px; width: 480px; height: 60px; }
.temple-r { left: 532px; transform-origin: 0 16px; transform: translate3d(calc(var(--e) * 170px), 0, calc(var(--e) * -30px)) rotateY(90deg); }
.temple-l { left: -452px; transform-origin: 480px 16px; transform: translate3d(calc(var(--e) * -170px), 0, calc(var(--e) * -30px)) rotateY(-90deg); }

/* ---------- Catálogo ---------- */
.catalog { background: var(--white); }
.section-head { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 24px 60px; margin-bottom: 48px; }
.section-head .muted { margin: 0 0 24px; }
.section-head.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }

.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 400;
  color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .35s, color .35s, box-shadow .35s, transform .4s var(--ease);
}
.chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--steel-2); }
.chip.is-active { background: var(--navy); color: var(--white); box-shadow: none; }
.search {
  display: flex; align-items: center; gap: 10px;
  padding: 0 18px;
  height: 46px;
  min-width: min(100%, 300px);
  border-radius: 999px;
  background: var(--mist);
  color: var(--muted);
  transition: box-shadow .3s;
}
.search:focus-within { box-shadow: inset 0 0 0 1px var(--steel-2); }
.search svg { width: 18px; height: 18px; flex: none; }
.search input { flex: 1; border: 0; background: none; outline: 0; color: var(--ink); min-width: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: box-shadow .6s var(--ease), translate .6s var(--ease), opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}
.card:hover { translate: 0 -6px; box-shadow: inset 0 0 0 1px transparent, var(--shadow-lg); }
.card-visual {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
  padding: 12% 10%;
  background: radial-gradient(120% 90% at 50% 10%, #ffffff 0%, var(--sky-2) 100%);
  overflow: hidden;
}
.card-visual::before {
  content: ''; position: absolute; inset: -40%;
  background: conic-gradient(from 180deg, transparent, rgba(255, 255, 255, .7), transparent 30%);
  opacity: 0; transition: opacity .6s;
  animation: spin 6s linear infinite;
}
.card:hover .card-visual::before { opacity: 1; }
@keyframes spin { to { transform: rotate(1turn); } }
.card-visual svg, .card-visual img { position: relative; width: 100%; height: auto; transition: transform .9s var(--ease); }
.card-visual img { object-fit: contain; max-height: 100%; }
.card:hover .card-visual svg, .card:hover .card-visual img { transform: translateY(-6px) rotate(-3deg) scale(1.05); }
.tag {
  position: absolute; top: 14px; left: 14px; z-index: 1;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--white);
  color: var(--berry);
  font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.card-body { display: grid; gap: 14px; padding: 20px 22px 22px; flex: 1; }
.card-top { display: flex; justify-content: space-between; gap: 12px; }
.card h3 { margin: 0; font-size: 1.2rem; font-weight: 500; color: var(--navy); line-height: 1.2; }
.card-top p { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.price { font-weight: 500; color: var(--navy); white-space: nowrap; }
.price.ask { font-size: .82rem; color: var(--steel); }
.card-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.dots { display: flex; gap: 6px; }
.dots span { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 2px var(--white); }
.add {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px 0 12px;
  border-radius: 999px;
  background: var(--navy); color: var(--white);
  font-size: .85rem; font-weight: 500;
  transition: background .3s, transform .4s var(--ease);
}
.add svg { width: 18px; height: 18px; }
.add:hover { background: var(--steel); transform: scale(1.04); }
.add.is-added { background: var(--wa); }

.skeleton { height: 360px; border-radius: var(--radius); background: linear-gradient(100deg, var(--mist) 30%, #fff 50%, var(--mist) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Consulta ---------- */
.consult { background: linear-gradient(180deg, var(--sky-2), #cfe3f5); overflow: hidden; }
.consult-curves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.consult-curves path { fill: none; stroke: var(--white); stroke-width: 2; opacity: .8; }
.consult-curves path + path { stroke: var(--steel-2); opacity: .35; }
.consult-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.consult-card {
  padding: clamp(32px, 5vw, 56px);
  border-radius: 34px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.consult-card .h2 { font-weight: 500; }
.questions p { margin: 0 0 12px; font-size: 1.12rem; color: var(--navy); }
.consult-kicker { margin: 20px 0 28px; font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--steel); }
.consult-card .small { margin: 18px 0 0; color: var(--muted); }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.service {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 22px 26px;
  border-radius: 26px;
  background: var(--steel);
  color: var(--white);
  box-shadow: 0 20px 40px -24px rgba(28, 53, 100, .7);
  transition: translate .6s var(--ease), background .4s, opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s);
}
.service:hover { translate: 8px 0; background: var(--navy); }
.service-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.service-ico svg { width: 18px; height: 18px; }
.service b { display: block; font-weight: 500; font-size: 1.1rem; }
.service span { display: block; font-size: .92rem; opacity: .8; }

/* ---------- Por qué ---------- */
.why { background: var(--mist); }
.why-title { max-width: 700px; margin-bottom: 56px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; perspective: 1000px; }
.why-card {
  padding: 34px 28px 36px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
  transform-style: preserve-3d;
  transition: box-shadow .5s var(--ease), transform .2s linear;
}
.why-card:hover { box-shadow: var(--shadow-lg); }
.why-num { display: block; margin-bottom: 44px; font-family: var(--serif); font-style: italic; font-size: 3.2rem; line-height: 1; color: var(--sky); }
.why-card h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 500; color: var(--navy); }
.why-card p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- Cómo pedir ---------- */
.how { background: var(--white); }
.how-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; counter-reset: none; }
.how-grid::before { content: ''; position: absolute; top: 34px; left: 16%; right: 16%; border-top: 1px dashed var(--sky); }
.how-step { position: relative; text-align: center; }
.how-step > span {
  display: grid; place-items: center;
  width: 68px; height: 68px; margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--sky), 0 0 0 10px var(--white);
  font-family: var(--serif); font-style: italic; font-size: 1.8rem; color: var(--navy);
}
.how-step h3 { margin: 0 0 8px; font-weight: 500; color: var(--navy); font-size: 1.25rem; }
.how-step p { margin: 0 auto; max-width: 300px; color: var(--muted); }

/* ---------- Visítanos ---------- */
.visit { background: var(--mist); }
.visit-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.info-list { list-style: none; margin: 32px 0 36px; padding: 0; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--white); color: var(--steel); box-shadow: var(--shadow-sm); }
.info-list b { display: block; font-weight: 500; color: var(--navy); }
.info-list b a { text-decoration: none; }
.info-list span { color: var(--muted); font-size: .92rem; }
.map-wrap { border-radius: 32px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; background: var(--sky-2); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: saturate(.7) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: var(--sky); padding: 70px 0 50px; text-align: center; }
.footer-inner { display: grid; justify-items: center; gap: 12px; }
.brand-light { color: var(--white); }
.footer-tag { margin: 18px 0 0; font-size: 1.5rem; }
.footer-tag em { color: var(--sky); }
.footer .small { opacity: .6; }
.footer-credit { width: 100%; margin-top: 30px; padding-top: 26px; border-top: 1px solid rgba(188, 216, 241, .12); display: flex; justify-content: center; }
.credit { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 16px; text-decoration: none; color: rgba(255, 255, 255, .55); font-size: .78rem; letter-spacing: .08em; transition: color .3s; }
.credit:hover { color: var(--white); }
.credit-logo { display: grid; grid-template-columns: auto auto; align-items: center; column-gap: 9px; text-align: left; }
.credit-mark { grid-row: span 2; width: 32px; height: 23px; fill: none; stroke: #27e0a3; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.credit-mark circle { fill: #27e0a3; stroke: none; }
.credit:hover .credit-mark { transform: translateX(3px); }
.credit-name { font-size: 1.35rem; font-weight: 400; line-height: 1; letter-spacing: -.01em; color: var(--white); }
.credit-name b { font-weight: 700; }
.credit-tag { margin-top: 4px; font-size: .5rem; font-weight: 500; letter-spacing: .2em; color: rgba(255, 255, 255, .6); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--wa); color: var(--white);
  box-shadow: 0 16px 34px -12px rgba(31, 170, 89, .7);
  transition: transform .5s var(--ease);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.4s var(--ease) infinite; }
.wa-float:hover { transform: scale(1.08); }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Overlay, drawer y modales ---------- */
.overlay { position: fixed; inset: 0; z-index: 94; background: rgba(10, 22, 48, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .5s; }
.overlay.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 95;
  width: min(440px, 100vw); height: 100vh; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--white);
  box-shadow: -30px 0 80px -40px rgba(15, 31, 61, .6);
  transform: translateX(105%);
  transition: transform .7s var(--ease);
  visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-weight: 500; color: var(--navy); font-size: 1.3rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 26px 30px; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: var(--mist); animation: slideIn .5s var(--ease); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } }
.cart-thumb { width: 76px; height: 56px; border-radius: 12px; background: var(--white); display: grid; place-items: center; padding: 4px; }
.cart-thumb svg, .cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-item b { display: block; font-weight: 500; color: var(--navy); font-size: .95rem; line-height: 1.2; }
.cart-item small { color: var(--muted); }
.cart-qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.cart-qty button { width: 26px; height: 26px; border-radius: 50%; background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line); }
.cart-qty span { min-width: 18px; text-align: center; font-size: .9rem; }
.cart-remove { color: var(--muted); font-size: .78rem; text-decoration: underline; text-underline-offset: 3px; }
.cart-empty { color: var(--muted); text-align: center; padding: 40px 0; }
.cart-form { margin-top: 24px; display: grid; gap: 14px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 18px; border-top: 1px solid var(--line); }
.cart-total b { font-size: 1.5rem; font-weight: 500; color: var(--navy); }
.cart-form .small { margin: -6px 0 4px; }

.field { display: grid; gap: 6px; }
.field > span, .seg legend { font-size: .8rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  outline: 0;
  resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--steel-2); box-shadow: 0 0 0 4px rgba(92, 127, 179, .15); }
.field.has-error input { border-color: var(--berry-2); box-shadow: 0 0 0 4px rgba(184, 74, 114, .12); }
.seg { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { margin-bottom: 6px; padding: 0; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: 12px; border-radius: 14px; text-align: center; font-size: .9rem; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background .3s, color .3s; }
.seg input:checked + span { background: var(--navy); color: var(--white); box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--steel-2); outline-offset: 2px; }

.modal {
  position: fixed; inset: 0; z-index: 96;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(10, 22, 48, .5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .45s var(--ease);
  overflow-y: auto;
}
.modal.is-open { opacity: 1; }
.modal-card {
  position: relative;
  width: min(100%, 940px);
  border-radius: 32px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(30px) scale(.97);
  transition: transform .7s var(--ease);
}
.modal.is-open .modal-card { transform: none; }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 2; }
.product-modal { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; }
.pm-visual { display: grid; place-items: center; padding: 48px 36px; background: radial-gradient(120% 90% at 50% 10%, #fff, var(--sky-2)); min-height: 360px; }
.pm-visual svg, .pm-visual img { width: 100%; height: auto; animation: floaty 5s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.pm-info { padding: 44px 40px 40px; display: grid; gap: 10px; align-content: center; }
.pm-info .eyebrow { margin: 0; }
.pm-info h3 { margin: 0; font-size: 2.2rem; font-weight: 300; color: var(--navy); line-height: 1.1; }
.pm-type { margin: 0; color: var(--muted); }
.pm-price { margin: 4px 0; font-size: 1.5rem; font-weight: 500; color: var(--navy); }
.pm-info > .muted { margin: 0 0 6px; font-size: .95rem; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: .82rem; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s; }
.swatch i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.swatch.is-active { box-shadow: inset 0 0 0 1.5px var(--navy); }
.qty { display: inline-flex; align-items: center; gap: 4px; margin: 8px 0; padding: 4px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); width: max-content; }
.qty button { width: 38px; height: 38px; border-radius: 50%; font-size: 1.2rem; color: var(--navy); transition: background .3s; }
.qty button:hover { background: var(--mist); }
.qty output { min-width: 30px; text-align: center; font-weight: 500; }
.pm-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.booking-modal { max-width: 520px; padding: 44px 40px 40px; }
.booking-modal h3 { margin: 0 0 6px; font-size: 2rem; font-weight: 300; color: var(--navy); }
.booking-modal form { display: grid; gap: 14px; margin-top: 20px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  padding: 14px 22px;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--white);
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .4s;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

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

@media (max-width: 960px) {
  :root { --nav-h: 68px; }
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; justify-content: center; align-items: center; gap: 26px;
    background: var(--navy-900);
    color: var(--white);
    clip-path: circle(0 at calc(100% - 44px) 40px);
    transition: clip-path .8s var(--ease);
  }
  .nav-links a { font-size: 1.8rem; font-weight: 200; }
  .nav.menu-open .nav-links { clip-path: circle(150% at calc(100% - 44px) 40px); }
  .nav.menu-open { color: var(--white); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .chart-card { justify-self: center; }
  .section-head { grid-template-columns: 1fr; }
  .section-head .muted { margin: 0; }

  .anatomy { height: 380vh; }
  .anatomy-sticky { align-items: stretch; padding-top: calc(var(--nav-h) + 8px); }
  .anatomy-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 0; }
  .anatomy-copy .h2 { font-size: 1.9rem; margin-bottom: 8px; }
  .anatomy-copy > .muted { display: none; }
  .steps-list { margin: 12px 0 14px; min-height: 76px; }
  .steps-list li { display: none; padding-top: 4px; }
  .steps-list li::before { top: 6px; }
  .steps-list li.is-active { display: block; }
  .scene { height: 100%; min-height: 300px; }

  .consult-grid, .visit-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 36px; }
  .how-grid::before { display: none; }
  .product-modal { grid-template-columns: 1fr; }
  .pm-visual { min-height: 220px; padding: 40px 30px 20px; }
  .pm-info { padding: 26px 26px 30px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .why-grid { grid-template-columns: 1fr; }
  .chart-inner { --k: .8; padding: 28px 18px 24px; }
  .chart-sharp { inset: 28px 18px 24px; }
  .chart-glasses { left: 18px; top: 28px; }
  .cta-row .btn { flex: 1 1 auto; }
  .grid { grid-template-columns: 1fr; }
  .booking-modal { padding: 36px 24px 28px; }
  .modal { padding: 12px; align-items: end; }
  .footer { padding-bottom: 104px; }
  .modal-card { border-radius: 28px; }
}

@media (hover: none) {
  .chart-inner { cursor: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-title .line > span { transform: none; }
  .marquee-track { animation: none; }
}
