/* =============================================================
   CABA · Centro de Optometría — styles.css
   Archetype: Glassmorphism Modern (adaptado a paleta clínica
   navy + cielo + blanco, en lugar de pastel playful).
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Surfaces */
  --bg:         #fbfdff;
  --bg-soft:    #eef4fb;
  --bg-deep:    #0a1e33;
  --paper:      #ffffff;

  /* Ink */
  --ink:        #0d2340;
  --ink-soft:   #33475f;
  --ink-mute:   #647084;
  --cream:      #f7fafd;

  /* Accent */
  --accent:     #1c5d8a;
  --accent-2:   #12b7c8;
  --accent-soft: #dce9f6;
  --cta:        #0a1f33;
  --cta-hover:  #133a5c;

  /* Glass */
  --glass:      rgba(255, 255, 255, 0.58);
  --glass-2:    rgba(255, 255, 255, 0.32);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 12px 28px -18px rgba(13, 35, 64, 0.18);

  --line:       rgba(13, 35, 64, 0.12);
  --line-soft:  rgba(13, 35, 64, 0.07);

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;

  /* Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1240px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  color-scheme: light;
}

@property --mesh-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  text-wrap: balance;
  line-height: 1.08;
  letter-spacing: -0.01em;
  font-weight: 560;
}
::selection { background: var(--accent-2); color: #fff; }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .7rem 1.2rem; background: var(--cta); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-top: .85rem; }
.section-head p { margin-top: 1rem; font-size: 1.05rem; color: var(--ink-mute); max-width: 40rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }
/* Defensive: split-text elements must never be invisible */
.reveal[data-split] { opacity: 1; transform: none; }

.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* =============================================================
   4. Buttons & links
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .3s var(--ease-out);
}
.btn:hover { transform: scale(1.04); }
.btn:active { transform: scale(0.99); }
.btn-primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 8px 16px -8px rgba(10, 31, 51, 0.4);
}
.btn-primary:hover { background: var(--cta-hover); box-shadow: 0 10px 20px -8px rgba(10, 31, 51, 0.45); }
.btn-ghost {
  background: var(--glass);
  color: var(--ink);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}
@supports not (backdrop-filter: blur(1px)) {
  .btn-ghost { background: rgba(255,255,255,0.85); }
}
.btn-ghost:hover { background: rgba(255,255,255,0.85); }
.btn-sm { padding: .65rem 1.05rem; font-size: .82rem; }
@media (min-width: 540px) {
  .btn-sm { padding: .7rem 1.3rem; font-size: .85rem; }
}
.btn-block { width: 100%; }

.link-underline {
  position: relative;
  font-weight: 600;
  padding-bottom: 2px;
}
.link-underline::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: left;
}
.link-underline-anim::after {
  transform: scaleX(0);
  transition: transform .4s var(--ease-out);
}
.link-underline-anim:hover::after { transform: scaleX(1); }

/* =============================================================
   5. Glass card component (signature effect)
   ============================================================= */
.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow);
}
@supports (backdrop-filter: blur(1px)) {
  .glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
  }
}
.glass-card--solid { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }

.tilt-card {
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
  transform-style: preserve-3d;
}
@media (hover: hover) and (pointer: fine) {
  .tilt-card:hover {
    box-shadow: 0 18px 34px -20px rgba(13, 35, 64, 0.22);
  }
}

/* =============================================================
   6. Navigation
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-scrolled {
  padding: .65rem 0;
  background: rgba(251, 253, 255, 0.75);
  box-shadow: 0 4px 14px -10px rgba(13, 35, 64, 0.15);
}
@supports (backdrop-filter: blur(1px)) {
  .nav.is-scrolled {
    backdrop-filter: blur(18px) saturate(180%);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
  }
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo {
  height: 44px;
  width: 44px;
  display: block;
}
.brand-logo--dark { display: none; }
.nav.is-scrolled .brand-logo--light,
.nav.menu-open .brand-logo--light { display: none; }
.nav.is-scrolled .brand-logo--dark,
.nav.menu-open .brand-logo--dark { display: block; }
.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: .9rem;
  font-weight: 500;
  flex-wrap: nowrap;
  flex-shrink: 1;
  min-width: 0;
}
.nav-links a { color: rgba(255, 255, 255, 0.88); white-space: nowrap; transition: color .4s var(--ease-out); }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-actions .btn-primary {
  background: var(--accent-2);
  color: #06222a;
  box-shadow: 0 6px 16px -8px rgba(6, 34, 42, 0.45);
}
.nav-actions .btn-primary:hover { background: #0fa3b3; }
@media (min-width: 540px) {
  .nav-actions { gap: .9rem; }
}
.nav-phone {
  display: none;
  font-family: var(--mono);
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  transition: color .4s var(--ease-out);
}

.nav.is-scrolled .nav-links a { color: var(--ink-soft); }
.nav.is-scrolled .nav-links a:hover { color: var(--ink); }
.nav.is-scrolled .nav-phone { color: var(--ink-soft); }
.nav.is-scrolled .nav-toggle span,
.nav.menu-open .nav-toggle span { background: var(--ink); }
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  padding: .3rem;
}
.nav-toggle span {
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out), background .4s var(--ease-out);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed;
  inset: 0;
  top: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  padding: 6.5rem 1.5rem 3rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-100%);
  transition: transform .5s var(--ease-out);
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile a { font-family: var(--display); font-size: 1.55rem; color: var(--ink); }
.nav-mobile .btn { margin-top: .8rem; color: #fff; }

/* Hide the header's own CTA pill while the full-screen menu is open —
   it sat crowded right next to the close button otherwise. */
.nav.menu-open .nav-actions .btn-primary { display: none; }

.nav-mobile-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  width: 100%;
  max-width: 260px;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line-soft);
}
.nav-mobile-group .nav-mobile-sub {
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--ink-mute);
}

/* Desktop "Inicio" dropdown */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-caret {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 5px;
  vertical-align: 2px;
  transition: transform .3s var(--ease-out);
}
.nav-item.is-open .nav-caret,
.nav-item:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding-top: .9rem;
  min-width: 200px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px -20px rgba(13, 35, 64, 0.35);
  padding: .5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), visibility .25s;
}
.nav-item.is-open .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-links .nav-item .nav-dropdown a {
  display: block;
  padding: .6rem .8rem;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background .25s var(--ease-out), color .25s var(--ease-out);
}
.nav-links .nav-item .nav-dropdown a:hover { background: var(--bg-soft); color: var(--ink); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
}
@media (min-width: 1280px) {
  .nav-phone { display: inline-flex; }
}

/* =============================================================
   7. Hero — full-bleed photo background
   ============================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(7rem, 16vw, 8rem) 0 clamp(3.5rem, 8vw, 5rem);
  overflow: clip;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.06);
  transition: transform .6s var(--ease-out);
  will-change: transform;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(115deg,
      rgba(6, 15, 27, 0.97) 0%,
      rgba(6, 16, 28, 0.93) 42%,
      rgba(7, 19, 33, 0.72) 62%,
      rgba(8, 22, 38, 0.5) 80%,
      rgba(8, 22, 38, 0.72) 100%),
    linear-gradient(0deg, rgba(5, 13, 24, 0.7) 0%, rgba(5, 13, 24, 0) 22%, rgba(5, 13, 24, 0) 58%, rgba(5, 13, 24, 0.75) 100%),
    linear-gradient(200deg, rgba(18, 183, 200, 0.16) 0%, transparent 45%),
    linear-gradient(rgba(5, 13, 24, 0.28), rgba(5, 13, 24, 0.28));
}
.hero-kicker { margin-bottom: 1.3rem; }
.hero .eyebrow { color: #8fd9e2; }
.hero .eyebrow::before { background: #8fd9e2; }
.hero-copy { max-width: 40rem; }
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  max-width: 15ch;
  color: #fff;
}
.hero-title em {
  font-style: italic;
  color: #8fd9e2;
}
.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 34rem;
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.18); }

.trust-strip {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem 1.6rem;
}
.trust-item { text-align: left; }
.trust-item .num {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 2.3rem);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}
.trust-item .label {
  margin-top: .3rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, 0.68);
  letter-spacing: .01em;
}

@media (min-width: 720px) {
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   8. Intro / manifesto (two-column)
   ============================================================= */
.intro {
  padding: clamp(4rem, 9vw, 7rem) 0;
}
.intro-grid {
  display: grid;
  gap: 2.8rem;
  align-items: center;
}
.intro-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  aspect-ratio: 5 / 4;
}
.intro-media img, .intro-media video { width: 100%; height: 100%; object-fit: cover; }
.intro-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.intro-text p { margin-top: 1.2rem; color: var(--ink-mute); font-size: 1.03rem; }
.intro-text .btn { margin-top: 1.8rem; }

@media (min-width: 960px) {
  .intro-grid { grid-template-columns: 1fr 1fr; }
  .intro-grid.reverse .intro-media { order: 2; }
}

/* =============================================================
   9. Services — bento glass grid
   ============================================================= */
.services {
  padding: clamp(4rem, 9vw, 7rem) 0;
  background: var(--bg-soft);
}
.service-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1fr;
}
.service-card {
  padding: clamp(1.8rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.service-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, var(--accent-soft), rgba(255,255,255,0.5));
  color: var(--accent);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.22rem; }
.service-card p { color: var(--ink-mute); font-size: .96rem; flex-grow: 1; }
.service-card .link-underline { align-self: flex-start; color: var(--accent); font-size: .9rem; }

@media (min-width: 720px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .service-grid--four { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 960px) {
  .service-grid--three { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   10. Stats band
   ============================================================= */
.stats-band {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stats-grid .stat-num {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  color: var(--ink);
}
.stats-grid .stat-label {
  margin-top: .4rem;
  font-size: .85rem;
  color: var(--ink-mute);
}
@media (min-width: 720px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   11. About / differentiators
   ============================================================= */
.about { padding: clamp(4rem, 9vw, 7rem) 0; }
.about-grid {
  display: grid;
  gap: 2.8rem;
}
.about-list { margin-top: 1.6rem; display: grid; gap: .9rem; }
.about-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-size: .98rem;
  color: var(--ink-soft);
}
.about-list .check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-top: .1rem;
}
.about-list .check svg { width: 12px; height: 12px; }

@media (min-width: 960px) {
  .about-grid { grid-template-columns: .9fr 1.1fr; align-items: center; }
}

/* =============================================================
   11.5. Brands & lenses
   ============================================================= */
.brands { padding: clamp(4rem, 9vw, 7rem) 0; }
.brands-gallery {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.brands-photo {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
}
.brands-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.brands-photo figcaption {
  padding: .7rem .2rem;
  text-align: center;
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
  background: var(--paper);
}
@media (min-width: 720px) {
  .brands-gallery { grid-template-columns: repeat(3, 1fr); }
}

.brands-strip {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .7rem 1rem;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--ink-mute);
  text-align: center;
}
.brands-strip .dot { color: var(--accent-2); }

.brands-zeiss {
  margin-top: clamp(2rem, 4vw, 2.6rem);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
  max-width: 46rem;
  margin-inline: auto;
}
.brands-zeiss-badge {
  flex-shrink: 0;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .08em;
  color: var(--ink);
  background: var(--accent-soft);
  padding: .6rem 1.1rem;
  border-radius: var(--radius-sm);
}
.brands-zeiss p { color: var(--ink-mute); font-size: .95rem; flex: 1; min-width: 200px; }
.brands-zeiss p strong { color: var(--ink); }

/* =============================================================
   12. Testimonials
   ============================================================= */
.testimonials { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--bg-soft); }
.testi-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
.testi-card {
  padding: clamp(1.8rem, 3vw, 2.3rem);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.testi-stars { color: var(--accent-2); font-size: .95rem; letter-spacing: .1em; }
.testi-quote { font-size: 1.02rem; color: var(--ink-soft); flex-grow: 1; }
.testi-person { display: flex; align-items: center; gap: .8rem; }
.testi-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  flex-shrink: 0;
}
.testi-name { font-weight: 600; font-size: .92rem; color: var(--ink); }
.testi-role { font-size: .8rem; color: var(--ink-mute); }

@media (min-width: 960px) {
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid--wide { grid-template-columns: repeat(2, 1fr); }
}

/* =============================================================
   13. Collaboration
   ============================================================= */
.collab { padding: clamp(4rem, 9vw, 7rem) 0; }
.collab-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: 1fr;
}
.collab-card {
  padding: clamp(1.8rem, 3vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.collab-card h3 { font-size: 1.15rem; }
.collab-card p { color: var(--ink-mute); font-size: .93rem; }

@media (min-width: 720px) {
  .collab-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .collab-grid { grid-template-columns: repeat(4, 1fr); }
}

/* =============================================================
   14. FAQ accordion
   ============================================================= */
.faq { padding: clamp(4rem, 9vw, 7rem) 0; background: var(--bg-soft); }
.faq-list { max-width: 52rem; margin-inline: auto; display: grid; gap: .9rem; }
.faq-item {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.6rem;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s var(--ease-out), background .3s var(--ease-out);
}
.faq-icon svg { width: 13px; height: 13px; }
.faq-item[data-open="true"] .faq-icon { transform: rotate(135deg); background: var(--accent); color: #fff; }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-out);
}
.faq-answer-inner { overflow: hidden; }
.faq-answer-inner p {
  padding: 0 1.6rem 1.5rem;
  color: var(--ink-mute);
  font-size: .96rem;
  max-width: 44rem;
}
.faq-item[data-open="true"] .faq-answer { grid-template-rows: 1fr; }

/* =============================================================
   15. Final CTA
   ============================================================= */
.cta-final {
  position: relative;
  padding: clamp(4rem, 10vw, 6rem) 0;
  overflow: clip;
}
.cta-final-mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 20% 20%, rgba(28, 93, 138, 0.85), transparent 60%),
    radial-gradient(60% 70% at 85% 90%, rgba(18, 183, 200, 0.55), transparent 65%),
    var(--bg-deep);
}
.cta-final-inner {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  color: #fff;
}
.cta-final h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); }
.cta-final p { margin-top: 1.1rem; color: rgba(255,255,255,0.78); font-size: 1.05rem; }
.cta-final-actions {
  margin-top: 2.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.cta-final .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 10px 22px -10px rgba(0,0,0,0.28); }
.cta-final .btn-primary:hover { background: var(--cream); }
.cta-final .btn-ghost { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.3); color: #fff; }
.cta-final .btn-ghost:hover { background: rgba(255,255,255,0.2); }

/* =============================================================
   16. Footer
   ============================================================= */
.footer {
  background: var(--bg-deep);
  color: rgba(255,255,255,0.72);
  padding: clamp(3.5rem, 7vw, 5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2.6rem;
}
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 1rem; font-size: .92rem; max-width: 26rem; color: rgba(255,255,255,0.6); }
.footer-social {
  margin-top: 1.4rem;
  display: flex;
  gap: .8rem;
}
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease-out), transform .3s var(--ease-out);
}
.footer-social a:hover { background: rgba(255,255,255,0.12); transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1rem;
  font-weight: 500;
}
.footer-col ul { display: grid; gap: .65rem; font-size: .93rem; }
.footer-col a:hover { color: #fff; }
.footer-hours { display: grid; gap: .5rem; font-size: .93rem; }
.footer-hours .row { display: flex; justify-content: space-between; gap: 1rem; }
.footer-hours .row span:first-child { color: rgba(255,255,255,0.55); }
.footer-hours .row span:last-child { text-align: right; }

.footer-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  aspect-ratio: 4 / 3;
}
.footer-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) invert(0.92) contrast(0.9); }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 1.4rem; flex-wrap: wrap; }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (min-width: 1280px) {
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr 1.1fr; }
}

/* =============================================================
   17. WhatsApp floating button
   ============================================================= */
.float-whatsapp {
  position: fixed;
  right: 1.3rem;
  bottom: 1.3rem;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #1c5d8a;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px -8px rgba(10, 31, 51, 0.35);
  transition: transform .25s var(--ease-out);
}
.float-whatsapp:hover { transform: scale(1.06); }
.float-whatsapp svg { width: 26px; height: 26px; }

/* =============================================================
   17.5 Orto-K page — light hero, lens diagram, step timeline
   ============================================================= */

/* --- Nav forced to its dark/legible state (this page's hero is never dark) --- */
.nav-on-light {
  background: rgba(251, 253, 255, 0.82);
  box-shadow: 0 4px 14px -10px rgba(13, 35, 64, 0.12);
}
@supports (backdrop-filter: blur(1px)) {
  .nav-on-light { backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%); }
}
.nav-on-light .brand-logo--light { display: none; }
.nav-on-light .brand-logo--dark { display: block; }
.nav-on-light .nav-links a { color: var(--ink-soft); }
.nav-on-light .nav-links a:hover { color: var(--ink); }
.nav-on-light .nav-phone { color: var(--ink-soft); }
.nav-on-light .nav-toggle span { background: var(--ink); }

/* --- Product-hero layout: lens floating left, oversized statement right --- */
.ok-hero {
  position: relative;
  background: #ffffff;
  padding-top: clamp(6.5rem, 13vw, 8.5rem);
  overflow: clip;
}
.ok-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 3rem);
  padding-bottom: clamp(3rem, 7vw, 4.5rem);
}
@media (min-width: 960px) {
  .ok-hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 3rem); }
}

.ok-hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
@media (min-width: 960px) {
  .ok-hero-visual { min-height: 480px; justify-content: center; }
}
.lens-stage {
  position: relative;
  z-index: 1;
  width: clamp(260px, 32vw, 440px);
  aspect-ratio: 1 / 1;
  perspective: 1200px;
}
.lens-3d {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  will-change: transform;
  animation: lensIdle 9s ease-in-out infinite;
  position: relative;
  z-index: 1;
}
.lens-3d--back {
  position: absolute;
  width: 60%;
  height: 60%;
  right: -6%;
  bottom: -2%;
  opacity: .8;
  animation: lensIdleBack 9s ease-in-out infinite;
  z-index: 0;
}
@keyframes lensIdleBack {
  0%, 100% { transform: rotateX(20deg) rotateY(-8deg) rotateZ(10deg) translateY(0); }
  50%      { transform: rotateX(19deg) rotateY(-6deg) rotateZ(11deg) translateY(-8px); }
}
.lens-svg { width: 100%; height: 100%; display: block; }
@keyframes lensIdle {
  0%, 100% { transform: rotateX(24deg) rotateY(-12deg) rotateZ(-6deg) translateY(0); }
  50%      { transform: rotateX(22deg) rotateY(-9deg) rotateZ(-4deg) translateY(-14px); }
}
.lens-glint { animation: lensGlint 6s ease-in-out infinite; transform-origin: center; }
.lens-glint--2 { animation-delay: -3s; }
@keyframes lensGlint {
  0%, 100% { opacity: .5; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lens-3d { animation: none; }
  .lens-3d--back { animation: none; }
  .lens-glint { animation: none; }
}
.lens-callout {
  position: absolute;
  z-index: 1;
  width: 168px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .01em;
  line-height: 1.55;
  color: var(--ink-mute);
}
.lens-callout .line { display: block; width: 30px; height: 1px; background: rgba(13, 35, 64, 0.35); margin-bottom: .6rem; }
.lens-callout--1 { top: 2%; left: 0; text-align: left; }
.lens-callout--2 { bottom: 4%; right: 2%; text-align: right; }
.lens-callout--2 .line { margin-left: auto; }
@media (max-width: 767px) {
  .lens-callout { display: none; }
}

.ok-hero-copy { position: relative; z-index: 1; }
.ok-hero-copy .eyebrow { margin-bottom: 1.1rem; }
.ok-hero-title {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3.1rem, 8vw, 6.2rem);
  line-height: .96;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ok-hero-title em { font-style: italic; color: var(--accent); }
.ok-hero-copy .hero-sub { margin-top: 1.5rem; color: var(--ink-mute); max-width: 32rem; }
.ok-hero-copy .hero-actions { margin-top: 2.1rem; }

.ok-hero-strip {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.1rem 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.1rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
}
.ok-hero-strip .dot { color: var(--accent-2); }
@media (min-width: 720px) { .ok-hero-strip { padding-inline: 2rem; } }
@media (min-width: 1280px) { .ok-hero-strip { padding-inline: 2.5rem; } }

/* Connected step timeline (distinct from the homepage's plain stat grid) */
.ok-timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.2rem;
  margin-top: 1rem;
  position: relative;
}
.ok-step {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  text-align: left;
}
.ok-step-num {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--cta);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 8px 18px -8px rgba(10, 31, 51, 0.4);
}
.ok-step-label { font-size: .95rem; color: var(--ink-mute); padding-top: .7rem; max-width: 30ch; }
@media (min-width: 720px) {
  .ok-timeline { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .ok-timeline::before {
    content: "";
    position: absolute;
    top: 25px; left: 12.5%; right: 12.5%;
    height: 2px;
    background: var(--line);
    z-index: 0;
  }
  .ok-step { flex-direction: column; align-items: center; text-align: center; padding: 0 1rem; }
  .ok-step-num { margin-bottom: 1rem; }
  .ok-step-label { padding-top: 0; }
}

/* Full-bleed photo benefits section */
.ok-benefits {
  position: relative;
  padding: clamp(4rem, 9vw, 7rem) 0;
  overflow: clip;
  isolation: isolate;
}
.ok-benefits-bg { position: absolute; inset: 0; z-index: -1; }
.ok-benefits-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.ok-benefits-bg-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 11, 20, 0.85) 0%, rgba(4, 11, 20, 0.6) 22%, rgba(4, 11, 20, 0.26) 45%, rgba(4, 11, 20, 0.24) 70%, rgba(4, 11, 20, 0.52) 100%),
    radial-gradient(55% 65% at 16% 14%, rgba(4, 11, 20, 0.4), transparent 65%);
}
.ok-benefits .section-head .eyebrow { color: #8fd9e2; }
.ok-benefits .section-head h2,
.ok-benefits .section-head p,
.ok-benefits .section-head .eyebrow {
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}
.ok-benefits .section-head .eyebrow::before { background: #8fd9e2; }
.ok-benefits .section-head h2 { color: #fff; }
.ok-benefits .section-head p { color: rgba(255, 255, 255, 0.78); }
.ok-benefits .glass-card {
  background: rgba(255, 255, 255, 0.9);
}

/* Lighter candidate rows (distinct from the homepage's heavy glass-card list) */
.ok-candidates {
  display: grid;
  gap: .8rem;
}
@media (min-width: 720px) {
  .ok-candidates { grid-template-columns: repeat(2, 1fr); }
}
.ok-candidate {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  padding: .3rem 0;
}
.ok-candidate .check {
  width: 22px; height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-top: .1rem;
}
.ok-candidate .check svg { width: 12px; height: 12px; }
.ok-candidate p { font-size: .93rem; color: var(--ink-soft); }

/* =============================================================
   18. Responsive container padding tune
   ============================================================= */
@media (min-width: 720px)  { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

/* =============================================================
   19. Reduced motion — only truly intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { transition: none; }
}

/* =============================================================
   20. Legal pages — Aviso legal / Privacidad / Cookies
   ============================================================= */
.legal-page {
  background: var(--bg);
  padding: clamp(7rem, 13vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
}
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: .6rem;
}
.legal-updated {
  display: block;
  font-style: italic;
  color: var(--ink-mute);
  font-size: .92rem;
  margin-bottom: 2.2rem;
}
.legal-content h2 {
  font-family: var(--display);
  font-size: 1.32rem;
  color: var(--ink);
  margin: 2.4rem 0 .9rem;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 1rem; }
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content ul, .legal-content ol { margin: .3rem 0 1.1rem; padding-left: 1.3rem; color: var(--ink-soft); }
.legal-content li { line-height: 1.7; margin-bottom: .4rem; padding-left: .2rem; }
.legal-content strong { color: var(--ink); }
.legal-content a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--accent); }

/* =============================================================
   21. Audiología page — equalizer hero, vertical step list
   ============================================================= */
.eq-visual {
  position: relative;
  z-index: 1;
  width: clamp(240px, 30vw, 380px);
  height: clamp(220px, 26vw, 320px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(7px, 1.4vw, 12px);
}
.eq-visual span {
  display: block;
  flex: 1;
  max-width: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  transform-origin: bottom center;
  animation: eqPulse 1.8s ease-in-out infinite;
}
.eq-visual span:nth-child(1) { height: 38%; animation-delay: -1.5s; }
.eq-visual span:nth-child(2) { height: 62%; animation-delay: -0.3s; }
.eq-visual span:nth-child(3) { height: 100%; animation-delay: -1.1s; }
.eq-visual span:nth-child(4) { height: 48%; animation-delay: -1.8s; }
.eq-visual span:nth-child(5) { height: 80%; animation-delay: -0.7s; }
.eq-visual span:nth-child(6) { height: 55%; animation-delay: -1.3s; }
.eq-visual span:nth-child(7) { height: 30%; animation-delay: -0.1s; }
@keyframes eqPulse {
  0%, 100% { transform: scaleY(.55); }
  50%      { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .eq-visual span { animation: none; transform: scaleY(.8); }
}

.aud-steps {
  display: grid;
  gap: 0;
  max-width: 760px;
  margin: 0 auto;
}
.aud-step {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 1.3rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--accent-soft);
}
.aud-step:first-child { padding-top: 0; }
.aud-step:last-child { border-bottom: none; padding-bottom: 0; }
.aud-step-num {
  font-family: var(--display);
  font-size: 1.9rem;
  color: var(--accent-2);
  line-height: 1;
}
.aud-step h3 { margin-bottom: .3rem; }
.aud-step p { color: var(--ink-soft); }

/* =============================================================
   22. Prótesis page — eye hero visual, specialist spotlight
   ============================================================= */
.eye-visual {
  width: clamp(260px, 32vw, 420px);
  height: auto;
  overflow: visible;
}
.eye-visual .eyelid {
  transform-origin: top;
  animation: eyeBlink 5.5s ease-in-out infinite;
}
@keyframes eyeBlink {
  0%, 92%, 100% { transform: scaleY(0); }
  96%           { transform: scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  .eye-visual .eyelid { animation: none; transform: scaleY(0); }
}

.specialist-card {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
}
.specialist-card blockquote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  color: var(--ink);
  margin: 0 0 1.2rem;
  line-height: 1.3;
}
.specialist-card .specialist-name { font-weight: 700; color: var(--ink); }
.specialist-card .specialist-role {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--accent);
  margin-bottom: 1.2rem;
}
.specialist-card p:last-child { color: var(--ink-soft); }

/* =============================================================
   23. Prótesis page — warm accent theme (scoped to <main> only,
   so the shared nav/footer keep the brand teal)
   ============================================================= */
main.theme-protesis {
  --accent: #8a5a2b;
  --accent-2: #c9852f;
  --accent-soft: #f5e6d3;
}
main.theme-protesis .ok-benefits .section-head .eyebrow { color: #e8b878; }
main.theme-protesis .ok-benefits .section-head .eyebrow::before { background: #e8b878; }

/* =============================================================
   24. Founder spotlight — "Sobre nosotros"
   ============================================================= */
.founder-card {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-top: 1.8rem;
  padding: 1.3rem 1.5rem;
}
.founder-card img {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.founder-card .founder-name { font-weight: 700; color: var(--ink); }
.founder-card .founder-role {
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--accent);
  margin-bottom: .4rem;
}
.founder-card p:last-child { color: var(--ink-soft); font-size: .93rem; }
@media (max-width: 480px) {
  .founder-card { flex-direction: column; text-align: center; }
}
