/* Óptica IPM: identidad tomada de los banners oficiales de la marca.
   El logo (ojo + "Óptica ipm") es el original del banner, recortado a PNG/WebP transparente.
   Azul rey eléctrico, amarillo de titulares, cian del iris, gris de "Óptica".
   Poppins para todo el texto; Sacramento solo en "que mereces", como en el banner. */

:root {
  --blue: #1907B5;
  --blue-700: #12058C;
  --blue-900: #0D0466;
  --yellow: #FFEB00;
  --yellow-600: #F2D500;
  --cyan: #38CFEA;
  --cyan-50: #E4F8FC;
  --grey: #8C8C8C;
  --tint: #F1F0FC;
  --line: #E2E0F4;
  --ink: #17134A;
  --ink-2: #55527A;
  --on-blue: #D6D3FA;
  --white: #FFFFFF;
  --star: #F5C400;

  --sans: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --script: "Sacramento", "Segoe Script", "Brush Script MT", cursive;

  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: clamp(1.6rem, 1.2rem + 1.2vw, 2.35rem);
  --fs-xl: clamp(2rem, 1.3rem + 2.2vw, 3.3rem);
  --fs-hero: clamp(2.6rem, 1.2rem + 4.6vw, 5.4rem);

  --wrap: 1320px;
  --gutter: clamp(1rem, 3.4vw, 2.5rem);
  --header-h: 86px;
  --r-tile: 14px;
  --r-panel: 22px;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 var(--fs-base)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--blue); color: var(--white); padding: .75rem 1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.6em;
  border: 2px solid transparent; border-radius: 999px;
  font: 600 1rem/1.1 var(--sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn-sm { min-height: 44px; padding: 0 1.2em; font-size: var(--fs-sm); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); border-color: var(--blue-700); }
.btn-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--blue-900); }
.btn-yellow:hover { background: var(--white); border-color: var(--white); color: var(--blue); }
.btn-outline { background: transparent; border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-ghost-light { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); border-color: var(--white); color: var(--blue); }

.icon-btn {
  display: inline-grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--white); color: var(--blue);
  cursor: pointer; transition: border-color .18s, background-color .18s, color .18s, opacity .18s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover:not(:disabled) { border-color: var(--blue); background: var(--blue); color: var(--white); }
.icon-btn:disabled { opacity: .35; cursor: default; }

.pill {
  display: inline-block;
  padding: .32rem 1rem; border-radius: 999px;
  background: var(--cyan); color: var(--blue-900);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; letter-spacing: .02em;
}

/* ---------------------------------------------------------------- logo */
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; flex: none; color: var(--blue); }
.logo-img { display: block; width: auto; height: 68px; }
.logo-tag { display: block; margin-top: .55rem; font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }

/* ---------------------------------------------------------------- announcement + header */
.announce { background: var(--yellow); color: var(--blue-900); text-align: center; font-size: var(--fs-sm); line-height: 1.4; font-weight: 500; }
.announce p { padding: .6rem var(--gutter); }
.announce a { color: var(--blue); font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.announce a:hover { color: var(--blue-900); }
.announce :focus-visible { outline-color: var(--blue); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 8px 28px -16px rgba(25, 7, 181, .45); }
.header-inner { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.5rem); height: var(--header-h); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 1.7rem); margin-right: auto; }
.nav a {
  position: relative; padding: .5rem 0;
  font-size: .9375rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 3px; border-radius: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s ease;
}
.nav a:hover { color: var(--blue); }
.nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.phone-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: var(--fs-sm); color: var(--blue); text-decoration: none; white-space: nowrap; }
.phone-link svg { width: 18px; height: 18px; }
.phone-link:hover { color: var(--blue-900); }
.menu-btn {
  display: none; place-items: center; width: 46px; height: 46px; margin-right: -8px;
  border: 0; background: none; color: var(--blue); cursor: pointer; border-radius: 10px;
}
.menu-btn svg { width: 28px; height: 28px; }

@media (max-width: 1279px) { .phone-link { display: none; } }
@media (max-width: 1099px) {
  .nav { display: none; }
  .menu-btn { display: inline-grid; }
}
@media (max-width: 599px) {
  :root { --header-h: 72px; }
  .header-actions .btn { display: none; }
  .site-header .logo-img { height: 56px; }
}

/* drawer (mobile menu) */
.drawer {
  margin: 0 0 0 auto; padding: 0; border: 0;
  width: min(420px, 100vw); height: 100dvh; max-height: 100dvh; max-width: 100vw;
  background: var(--white); color: var(--ink);
}
.drawer::backdrop { background: rgba(13, 4, 102, .55); }
.drawer[open] { animation: drawer-in .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer[open] { animation: none; } }
.drawer-inner { display: flex; flex-direction: column; min-height: 100%; padding: .75rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom)); }
.drawer-top { display: flex; align-items: center; justify-content: space-between; height: 60px; margin-bottom: 1rem; }
.drawer nav { display: grid; }
.drawer nav a {
  padding: .9rem 0; border-bottom: 1px solid var(--line);
  font: 600 1.35rem/1.25 var(--sans); color: var(--ink); text-decoration: none; letter-spacing: -.01em;
}
.drawer nav a:hover { color: var(--blue); }
.drawer-actions { display: grid; gap: .75rem; margin-top: auto; padding-top: 2rem; }
.drawer-note { font-size: var(--fs-sm); color: var(--ink-2); text-align: center; }

/* ---------------------------------------------------------------- hero (royal blue, like the banner) */
.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--blue); color: var(--white); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  min-height: clamp(560px, calc(100svh - 150px), 760px);
  padding-block: clamp(3rem, 6vw, 5rem) clamp(5.5rem, 9vw, 8rem);
}
.hero-copy { max-width: 37rem; }
.hero h1 {
  margin-top: 1.4rem;
  font: 800 var(--fs-hero)/1.02 var(--sans);
  letter-spacing: -.025em;
  color: var(--white);
}
.hero h1 .hl { color: var(--yellow); }
.hero-lede {
  margin-top: 1.5rem; max-width: 30rem;
  font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); font-weight: 300; line-height: 1.45; letter-spacing: .025em;
  color: var(--on-blue);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero :focus-visible { outline-color: var(--yellow); }

/* the eye: the photo sits where the iris is, ringed like the IPM logo */
.hero-visual { position: relative; width: min(100%, 600px); margin-inline: auto; aspect-ratio: 1; }
.hero-eye { position: absolute; inset: -4% -14%; width: 128%; height: 108%; max-width: none; overflow: visible; }
.hero-photo { position: absolute; inset: 15%; border-radius: 50%; overflow: hidden; background: #D9D9D5; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

.hero-chart {
  position: absolute; z-index: -1; right: 1.5vw; top: 50%; transform: translateY(-50%);
  display: grid; justify-items: center; gap: .2em;
  font: 800 1rem/1 var(--sans); color: rgba(255, 255, 255, .06); letter-spacing: .35em;
  pointer-events: none; user-select: none;
}
.hero-chart span:nth-child(1) { font-size: 7rem; }
.hero-chart span:nth-child(2) { font-size: 4.6rem; }
.hero-chart span:nth-child(3) { font-size: 3.1rem; }
.hero-chart span:nth-child(4) { font-size: 2.1rem; }
.hero-chart span:nth-child(5) { font-size: 1.5rem; }

.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(40px, 6vw, 96px); }

@media (max-width: 899px) {
  .hero-inner { grid-template-columns: 1fr; min-height: 0; padding-block: 2.75rem 5rem; gap: 2.5rem; }
  .hero-copy { max-width: none; }
  .hero-visual { width: min(78%, 400px); }
  .hero-chart { display: none; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
}

/* value strip */
.perks ul {
  list-style: none; margin-block: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 1rem 2rem;
  padding-block: 1.5rem 1.75rem;
}
.perks li { display: flex; align-items: center; gap: .75rem; font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.perks .perk-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--cyan-50); color: var(--blue); }
.perks svg { width: 22px; height: 22px; }
@media (max-width: 999px) { .perks ul { grid-template-columns: repeat(2, auto); justify-content: start; column-gap: 3rem; } }
@media (max-width: 560px) { .perks ul { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- editorial duo */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-inline: 1rem; }
.promo { position: relative; height: clamp(420px, 44vw, 680px); overflow: hidden; color: var(--white); background: var(--blue); border-radius: var(--r-panel); }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13, 4, 102, .86) 0%, rgba(25, 7, 181, .35) 40%, rgba(25, 7, 181, 0) 62%);
}
.promo-copy { position: absolute; z-index: 1; left: clamp(1.4rem, 3.6vw, 3.25rem); right: 1.4rem; bottom: clamp(1.5rem, 3.6vw, 3.25rem); }
.promo h2 { max-width: 14ch; font: 800 var(--fs-xl)/1.05 var(--sans); letter-spacing: -.025em; }
.promo .btn { margin-top: 1.4rem; }
.promo-quote img { object-position: 50% 22%; }
.promo-quote .pill { margin-bottom: 1rem; }
.promo-quote h2 { max-width: none; }
.promo-quote h2 .q { display: block; color: var(--yellow); }
.promo-quote h2 .script {
  display: block; margin: -.12em 0 0 1.4em;
  font: 400 1.32em/1 var(--script); letter-spacing: 0; color: var(--white); text-shadow: 0 1px 12px rgba(13, 4, 102, .55);
}
.promo :focus-visible { outline-color: var(--yellow); }
@media (max-width: 767px) {
  .duo { grid-template-columns: 1fr; padding-inline: var(--gutter); }
  .promo { height: auto; aspect-ratio: 4 / 4.6; }
}

/* ---------------------------------------------------------------- sections */
.section { padding-block: clamp(3.75rem, 7.5vw, 7rem); }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 1rem 2rem; margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.title-2 { font: 800 var(--fs-lg)/1.12 var(--sans); letter-spacing: -.025em; color: var(--blue); }
.section-sub { margin-top: .6rem; max-width: 48ch; color: var(--ink-2); }
.display-2 { font: 800 var(--fs-xl)/1.05 var(--sans); letter-spacing: -.028em; color: var(--blue); }

/* ---------------------------------------------------------------- product rail */
.rail-controls { display: flex; align-items: center; gap: .5rem; }
.rail-controls .btn { margin-right: .5rem; }
.rail {
  --cols: 4;
  list-style: none; margin: 0; padding: 0 0 .5rem;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--cols) - 1) * 1rem) / var(--cols));
  gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: 6px; }
@media (max-width: 1099px) { .rail { --cols: 3; } }
@media (max-width: 799px) { .rail { --cols: 2.15; } }
@media (max-width: 520px) { .rail { --cols: 1.25; } .rail-controls .icon-btn { display: none; } .rail-controls .btn { margin-right: 0; } }

.card { scroll-snap-align: start; display: flex; flex-direction: column; min-width: 0; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-tile); background: var(--tint); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-tag {
  position: absolute; top: .75rem; left: .75rem; z-index: 1;
  padding: .28rem .8rem; border-radius: 999px; background: var(--cyan); color: var(--blue-900);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.3;
}
.card-body { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1rem .15rem 0; }
.card h3 { font: 700 1.15rem/1.25 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.card p { margin-top: .25rem; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
.card-cta, .cat a {
  flex: none; font-size: var(--fs-sm); font-weight: 600; color: var(--blue);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; text-decoration-color: var(--cyan);
}
.card-cta:hover, .cat a:hover { color: var(--blue-900); text-decoration-color: var(--blue); }

/* ---------------------------------------------------------------- the real shop */
.store { padding-top: 0; }
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.store-grid figure { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-tile); background: var(--tint); }
.store-grid img { width: 100%; height: 100%; object-fit: cover; }
.store-grid figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13, 4, 102, .78), rgba(25, 7, 181, 0) 45%);
}
.store-grid figcaption {
  position: absolute; z-index: 1; left: 1.25rem; right: 1.25rem; bottom: 1.15rem;
  color: var(--white); font: 700 1.2rem/1.25 var(--sans); letter-spacing: -.01em;
}
@media (max-width: 767px) {
  .store-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .store-grid::-webkit-scrollbar { display: none; }
  .store-grid figure { scroll-snap-align: start; }
}

/* ---------------------------------------------------------------- uses */
.uses { padding-top: 0; }
.cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cat { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.cat-media { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r-tile); background: var(--tint); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; }
.cat-label {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  padding: .5rem 1.2rem; border-radius: 999px; background: var(--blue); color: var(--white);
  font-weight: 600; font-size: var(--fs-sm); white-space: nowrap;
}
.cat p { flex-grow: 1; margin: .9rem 0 .35rem; font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-2); }
@media (max-width: 1099px) {
  .cats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 36%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: .25rem; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { scroll-snap-align: start; }
}
@media (max-width: 640px) { .cats { grid-auto-columns: 64%; } }

/* ---------------------------------------------------------------- lenses + eye chart */
.lenses { background: var(--tint); }
.lenses-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.lenses-copy .lede { margin-top: 1.25rem; font-size: var(--fs-md); line-height: 1.6; color: var(--ink-2); max-width: 34rem; }
.lens-list { margin: 2rem 0 2.25rem; display: grid; }
.lens-list div { display: grid; grid-template-columns: 11rem 1fr; gap: 1.25rem; padding-block: 1rem; border-top: 1px solid #D5D2F0; }
.lens-list div:last-child { border-bottom: 1px solid #D5D2F0; }
.lens-list dt { font-weight: 700; color: var(--blue); }
.lens-list dd { color: var(--ink-2); }
@media (max-width: 1099px) { .lens-list div { grid-template-columns: 1fr; gap: .2rem; } }
@media (max-width: 899px) { .lenses-grid { grid-template-columns: 1fr; } .chart-col { order: 2; } }

.chart-col { min-width: 0; }
.chart {
  --gx: 50; --gy: 30;
  --lens-r: 12.3cqw; --lens-d: 15cqw;
  position: relative; container-type: inline-size;
  width: min(100%, 540px); margin-inline: auto;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.chart-board {
  position: relative; overflow: hidden; border-radius: 16px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(25, 7, 181, .08), 0 34px 60px -32px rgba(25, 7, 181, .45);
}
.chart-letters {
  display: flex; flex-direction: column; align-items: center; gap: 2.4cqw;
  padding: 7cqw 5cqw 5.5cqw;
  font-family: var(--sans); font-weight: 700;
  line-height: 1; color: var(--blue);
}
.chart-letters span { display: block; letter-spacing: .3em; margin-right: -.3em; white-space: nowrap; }
.r1 { font-size: 19cqw; }
.r2 { font-size: 13cqw; }
.r3 { font-size: 9.6cqw; }
.r4 { font-size: 7.4cqw; }
.r5 { font-size: 5.8cqw; }
.r6 { font-size: 4.6cqw; }
.r7 { font-size: 3.7cqw; }
.r8 { font-size: 3cqw; }
.chart-duo { display: flex; width: 62%; height: 3.4cqw; margin-top: 2cqw; border-radius: 3px; overflow: hidden; }
.chart-duo i { flex: 1; }
.chart-duo i:first-child { background: #D7393B; }
.chart-duo i:last-child { background: #2E9E5B; }
.chart-letters.is-blur { filter: blur(.8cqw); opacity: .7; }
.chart-letters.is-sharp {
  position: absolute; inset: 0; background: var(--white);
  -webkit-mask-image:
    radial-gradient(circle var(--lens-r) at calc(var(--gx) * 1% - var(--lens-d)) calc(var(--gy) * 1%), #000 97%, transparent 100%),
    radial-gradient(circle var(--lens-r) at calc(var(--gx) * 1% + var(--lens-d)) calc(var(--gy) * 1%), #000 97%, transparent 100%);
          mask-image:
    radial-gradient(circle var(--lens-r) at calc(var(--gx) * 1% - var(--lens-d)) calc(var(--gy) * 1%), #000 97%, transparent 100%),
    radial-gradient(circle var(--lens-r) at calc(var(--gx) * 1% + var(--lens-d)) calc(var(--gy) * 1%), #000 97%, transparent 100%);
}
.chart-glasses {
  position: absolute; left: calc(var(--gx) * 1%); top: calc(var(--gy) * 1%);
  width: 66cqw; transform: translate(-50%, -50%);
  touch-action: none; cursor: grab; border-radius: 999px;
  filter: drop-shadow(0 1cqw 1.4cqw rgba(25, 7, 181, .28));
}
.chart-glasses:active { cursor: grabbing; }
.chart-glasses svg { width: 100%; height: auto; overflow: visible; }
.chart-glasses:focus-visible { outline-offset: 6px; }
.chart-hint { margin-top: 1.1rem; text-align: center; font-size: var(--fs-sm); color: var(--ink-2); }
@media (hover: none) { .hint-mouse { display: none; } }
@media (hover: hover) { .hint-touch { display: none; } }

/* ---------------------------------------------------------------- how to buy (blue split) */
.split { display: grid; grid-template-columns: 1fr 1fr; background: var(--blue); color: var(--white); }
.split-media { position: relative; min-height: 580px; background: var(--blue-700); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(3rem, 7vw, 6.5rem) clamp(1.5rem, 6vw, 6rem); }
.split .display-2 { color: var(--white); }
.steps { list-style: none; counter-reset: step; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 1.35rem; max-width: 34rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.25rem 1fr; gap: .2rem 1rem; padding-top: 1.35rem; border-top: 1px solid rgba(255, 255, 255, .2); }
.steps li::before { content: counter(step); grid-row: span 2; font: 800 2.6rem/.95 var(--sans); color: var(--yellow); }
.steps h3 { font-size: 1.125rem; line-height: 1.35; }
.steps p { color: var(--on-blue); }
.split-actions { margin-top: 2.5rem; }
.split :focus-visible { outline-color: var(--yellow); }
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 0; aspect-ratio: 4 / 3.4; }
}
@media (max-width: 480px) { .split-actions .btn { width: 100%; white-space: normal; text-align: center; padding-block: .8em; } }

/* ---------------------------------------------------------------- reviews */
.review-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.review { display: flex; flex-direction: column; gap: 1.25rem; padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: var(--r-panel); background: var(--tint); }
.review-lg { grid-row: span 2; background: var(--blue); color: var(--white); }
.review blockquote { font: 400 1.1rem/1.6 var(--sans); }
.review-lg blockquote { font: 600 clamp(1.25rem, 1rem + .8vw, 1.65rem)/1.45 var(--sans); letter-spacing: -.01em; }
.review figcaption { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; font-size: var(--fs-sm); color: var(--ink-2); }
.review .name { font-weight: 700; color: var(--ink); }
.review-lg figcaption { color: var(--on-blue); }
.review-lg .name { color: var(--white); }
.stars { display: flex; gap: 3px; color: var(--star); }
.review-lg .stars { color: var(--yellow); }
.stars svg { width: 19px; height: 19px; }
@media (max-width: 899px) {
  .review-grid { grid-template-columns: 1fr; }
  .review-lg { grid-row: auto; }
}

/* ---------------------------------------------------------------- visit */
.visit { padding-top: 0; }
.facade { position: relative; margin: 0 0 1rem; overflow: hidden; border-radius: var(--r-panel); background: var(--tint); aspect-ratio: 1 / 1; }
.facade img { display: block; width: 100%; height: 100%; object-fit: cover; }
.facade::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(13, 4, 102, .82), rgba(25, 7, 181, 0) 42%);
}
.facade figcaption {
  position: absolute; z-index: 1; left: clamp(1.25rem, 3vw, 2.5rem); right: clamp(1.25rem, 3vw, 2.5rem); bottom: clamp(1.1rem, 2.6vw, 2.25rem);
  color: var(--white); font: 700 clamp(1.2rem, .95rem + 1vw, 1.9rem)/1.2 var(--sans); letter-spacing: -.01em;
}
.facade figcaption span { display: block; margin-top: .35rem; font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0; color: var(--on-blue); }
@media (min-width: 700px) { .facade { aspect-ratio: 2560 / 1098; } }
@media (max-width: 699px) { .facade figcaption span { display: none; } .facade::after { background: linear-gradient(to top, rgba(13, 4, 102, .8), rgba(25, 7, 181, 0) 30%); } }
.visit-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1rem; }
.visit-panel { padding: clamp(1.75rem, 3.6vw, 3.25rem); border-radius: var(--r-panel); background: var(--blue); color: var(--white); }
.visit-panel .display-2 { color: var(--white); }
.visit-ref { margin-top: 1rem; color: var(--on-blue); }
.facts { margin-top: 1.75rem; display: grid; gap: 1.1rem; }
.facts div { display: grid; gap: .15rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, .2); }
.facts dt { font-size: var(--fs-sm); color: var(--on-blue); }
.facts dd { font-weight: 600; }
.facts a { text-underline-offset: 4px; text-decoration-color: var(--yellow); }
.facts .muted { font-weight: 400; color: var(--on-blue); }
.visit-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.visit-panel :focus-visible { outline-color: var(--yellow); }
.map { min-height: 420px; overflow: hidden; border-radius: var(--r-panel); background: var(--tint); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 899px) {
  .visit-grid { grid-template-columns: 1fr; }
  .map { order: 2; min-height: 0; height: clamp(300px, 70vw, 420px); }
}

/* ---------------------------------------------------------------- faq */
.faq { background: var(--tint); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-intro p { margin-top: 1rem; color: var(--ink-2); max-width: 30ch; }
.faq-intro a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.faq-list details { border-top: 1px solid #D5D2F0; }
.faq-list details:last-child { border-bottom: 1px solid #D5D2F0; }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.3rem 0; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem; line-height: 1.4;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg {
  width: 30px; height: 30px; padding: 6px; flex: none; border-radius: 50%;
  background: var(--blue); color: var(--white); transition: transform .2s ease, background-color .2s ease;
}
.faq-list details[open] summary svg { transform: rotate(45deg); background: var(--cyan); color: var(--blue-900); }
.faq-list summary:hover { color: var(--blue); }
.faq-list details p { padding-bottom: 1.4rem; max-width: 60ch; color: var(--ink-2); }
@media (max-width: 899px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--blue-900); color: var(--on-blue); padding-block: clamp(3.5rem, 6vw, 5rem) 2rem; font-size: var(--fs-sm); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.2fr; gap: 2.5rem 2rem; }
.footer-brand p { margin-top: 1.25rem; max-width: 34ch; line-height: 1.65; }
.logo-light .logo-img { height: 84px; }
.site-footer h2 { margin-bottom: 1rem; font-size: var(--fs-sm); font-weight: 700; color: var(--white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer :focus-visible { outline-color: var(--yellow); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: var(--fs-xs); color: #A9A4E6;
}
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- mobile action bar */
.mobile-bar {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  display: none; gap: .5rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.mobile-bar .btn { flex: 1; min-height: 48px; }
@media (max-width: 767px) {
  .mobile-bar { display: flex; }
  body { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- catálogo conectado al inventario */
.rail-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.75rem 0 1.5rem; }
.chip {
  min-height: 42px; padding: 0 1.15rem; border: 2px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink); font: 600 var(--fs-sm)/1 var(--sans); cursor: pointer;
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }

button.card-media { display: block; width: 100%; padding: 0; border: 0; font: inherit; color: inherit; cursor: zoom-in; }
.card-media img { transition: transform .4s ease; }
button.card-media:hover img { transform: scale(1.04); }
.card.is-out .card-media img { filter: grayscale(.7); opacity: .75; }
.card-stock {
  position: absolute; top: .75rem; right: .75rem; z-index: 1; padding: .28rem .8rem; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.3;
}
.card-stock.is-low { background: var(--yellow); color: var(--blue-900); }
.card-stock.is-out { background: var(--ink); color: var(--white); }
.card-count {
  position: absolute; right: .75rem; bottom: .75rem; z-index: 1; padding: .2rem .65rem; border-radius: 999px;
  background: rgba(13, 4, 102, .78); color: var(--white); font-size: var(--fs-xs); font-weight: 600;
}
.card-noimg { display: grid; place-items: center; align-content: center; gap: .4rem; width: 100%; height: 100%; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 500; }
.card-noimg svg { width: 40px; height: 40px; color: var(--blue); }
.card-price { display: block; margin-top: .4rem; font-weight: 700; color: var(--blue); }
.rail-empty {
  grid-column: 1 / -1; display: grid; justify-items: start; gap: 1rem; padding: 2rem; border-radius: var(--r-tile);
  background: var(--tint); color: var(--ink-2); width: 100%;
}
.rail:has(.rail-empty) { grid-auto-columns: 100%; }

.pview {
  width: min(100% - 2rem, 1000px); max-height: calc(100dvh - 2rem); padding: 0; border: 0; border-radius: var(--r-panel);
  background: var(--white); color: var(--ink); box-shadow: 0 40px 90px -30px rgba(13, 4, 102, .55);
}
.pview::backdrop { background: rgba(13, 4, 102, .6); }
.pview[open] { animation: pview-in .25s cubic-bezier(.2, .7, .2, 1); }
@keyframes pview-in { from { transform: translateY(14px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pview[open] { animation: none; } }
.pview-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.pview-close { position: absolute; top: .9rem; right: .9rem; z-index: 2; }
.pview-gallery { padding: 1rem; background: var(--tint); }
.pview-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-tile); background: var(--white); }
.pview-media img { width: 100%; height: 100%; object-fit: contain; }
.pview.no-photo .pview-gallery { display: none; }
.pview.no-photo .pview-inner { grid-template-columns: 1fr; }
.pview-nav { position: absolute; top: 50%; transform: translateY(-50%); display: none; }
.pview-nav.prev { left: .75rem; }
.pview-nav.next { right: .75rem; }
.pview.has-many .pview-nav { display: inline-grid; }
.pview-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; scrollbar-width: thin; }
.pview-thumbs button { flex: none; width: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--white); cursor: pointer; }
.pview-thumbs button[aria-current="true"] { border-color: var(--blue); }
.pview-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.pview-info { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: clamp(1.5rem, 3vw, 2.5rem); padding-top: 3.25rem; }
.pview-info h2 { font: 800 var(--fs-lg)/1.1 var(--sans); letter-spacing: -.02em; color: var(--blue); }
.pview-desc { color: var(--ink-2); font-size: var(--fs-md); line-height: 1.55; }
.pview-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1.5rem; width: 100%; padding: .9rem 0; border-block: 1px solid var(--line); }
.pview-meta dt { font-size: var(--fs-xs); color: var(--ink-2); }
.pview-meta dd { font-weight: 600; }
.pview-price { font: 800 1.6rem/1 var(--sans); color: var(--ink); }
.pview-price small { font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); }
.pview-stock { padding: .3rem .85rem; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; }
.pview-stock.is-low { background: var(--yellow); color: var(--blue-900); }
.pview-stock.is-out { background: var(--ink); color: var(--white); }
.pview-info .btn { margin-top: .25rem; }
.pview-note { font-size: var(--fs-xs); color: var(--ink-2); }
@media (max-width: 767px) {
  .pview { width: 100%; max-width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; }
  .pview-inner { grid-template-columns: 1fr; }
  .pview-gallery { padding: .75rem; padding-top: 4rem; }
  .pview-info { padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); }
  .pview-info .btn { width: 100%; }
}
