:root {
  --bg: #fefaf6;          /* crema del logo */
  --bg-alt: #f5f2ea;
  --ink: #2b2f26;
  --ink-soft: #6b7263;
  --line: #e4e2d6;
  --brand: #8c9e7a;       /* verde salvia del logo */
  --brand-dark: #6e7f5c;
  --brand-tint: #eaeee2;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 35, 31, .04), 0 8px 24px rgba(16, 35, 31, .06);
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.0625rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  font-family: inherit;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--sm { padding: .55rem 1.1rem; font-size: .875rem; }
.btn--block { width: 100%; }
.btn--lg { padding: 1rem 2.25rem; font-size: 1.0625rem; }
.btn:active { transform: translateY(1px); }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

/* Logo — réplica del isotipo + logotipo de la marca */
.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo__mark { width: 34px; height: 34px; flex: none; color: var(--brand); }
.logo__lockup { display: flex; flex-direction: column; gap: .18em; }
.logo__text {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .1em;
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  gap: .38em;
  white-space: nowrap;
}
.logo__rule {
  width: 1px;
  height: 1.05em;
  background: currentColor;
  opacity: .7;
}
.logo__num { font-weight: 500; letter-spacing: .04em; }
.logo__tagline {
  font-size: .5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .28em;
  color: var(--brand);
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  text-indent: .28em;   /* compensa el espaciado sobrante de la última letra */
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: .9375rem; color: var(--ink-soft); transition: color .18s ease; }
.nav a:hover { color: var(--ink); }
.nav a.btn { color: #fff; }
.nav a.btn:hover { color: #fff; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.nav__toggle span { display: block; height: 2px; width: 20px; background: var(--ink); margin: 0 auto; transition: transform .2s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.hero__inner { max-width: 46rem; }
.lead { font-size: 1.0625rem; color: var(--ink-soft); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2rem 0; }

/* Iconos de línea, en el mismo trazo del isotipo */
.ico {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__points { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.hero__points li {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .9375rem;
  color: var(--ink-soft);
}
.hero__points .ico { color: var(--brand); }

.maps-link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.maps-link:hover { color: var(--brand); }
.maps-link__addr { display: block; }

/* Pin de mapa clicable */
.maps-pin {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand-dark);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.maps-pin svg { width: 20px; height: 20px; display: block; }
.maps-link:hover .maps-pin,
.maps-link:focus-visible .maps-pin {
  background: var(--brand);
  color: #fff;
  transform: scale(1.06);
}
.maps-pin--sm { width: 26px; height: 26px; }
.maps-pin--sm svg { width: 15px; height: 15px; }

.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;
}

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 34ch; margin-bottom: 3rem; }
.section__head h2 { margin-bottom: 0; }

.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow); transform: translateY(-2px); }
.card p { margin: 0; color: var(--ink-soft); font-size: .9375rem; }
.card--featured { background: var(--brand-tint); border-color: var(--brand); }
.card__precio {
  margin-top: .875rem;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--brand-dark);
}
.section__nota {
  margin: 1.5rem 0 0;
  font-size: .8125rem;
  color: var(--ink-soft);
}

/* Detalle de un servicio */
.servicio { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.servicio--invertido .servicio__foto { order: -1; }
.servicio__texto h2 { margin-bottom: .6rem; }
.servicio__texto p { color: var(--ink-soft); }
.servicio__precio {
  font-weight: 600;
  color: var(--brand-dark) !important;
  margin-bottom: 1rem;
}
.servicio__texto .btn { margin-top: .5rem; }
.servicio__foto { margin: 0; }
.servicio__foto img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-alt);
}

@media (max-width: 860px) {
  .servicio { grid-template-columns: 1fr; gap: 1.75rem; }
  .servicio--invertido .servicio__foto { order: 0; }
  .servicio__foto img { height: 240px; }
}

/* Rueda de servicios */
.section__head--centrado { max-width: 40ch; margin-left: auto; margin-right: auto; text-align: center; }

.rueda {
  position: relative;
  width: min(100%, 40rem);
  aspect-ratio: 1;
  margin: 0 auto;
}
.rueda__centro {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 22%;
  color: var(--brand);
  opacity: .32;
}
.rueda__centro svg { width: 100%; height: auto; display: block; }

.rueda__nodo {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  width: 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  text-align: center;
}
.rueda__circulo {
  width: 78px; height: 78px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.rueda__circulo .ico { width: 32px; height: 32px; }
.rueda__etiqueta {
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.rueda__nodo:hover .rueda__circulo,
.rueda__nodo:focus-visible .rueda__circulo {
  background: var(--brand-tint);
  border-color: var(--brand);
  transform: scale(1.07);
}
.rueda__nodo:hover .rueda__etiqueta { color: var(--brand-dark); }

/* En pantallas pequeñas la rueda no funciona: pasa a rejilla */
@media (max-width: 720px) {
  .rueda {
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 1rem;
    width: 100%;
  }
  .rueda__centro { display: none; }
  .rueda__nodo {
    position: static;
    transform: none;
    width: auto;
  }
  .rueda__circulo { width: 66px; height: 66px; }
  .rueda__circulo .ico { width: 28px; height: 28px; }
}

/* Icono dentro de una tarjeta */
.ico--card { width: 26px; height: 26px; color: var(--brand); margin-bottom: .875rem; }

/* Preguntas frecuentes */
.faq { max-width: 46rem; }
.pregunta {
  border-bottom: 1px solid var(--line);
  padding: 1.125rem 0;
}
.pregunta:first-of-type { border-top: 1px solid var(--line); }
.pregunta summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.0625rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  transition: color .18s ease;
}
.pregunta summary::-webkit-details-marker { display: none; }
.pregunta summary:hover { color: var(--brand-dark); }
.pregunta summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  margin-top: .4rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.pregunta[open] summary::after { transform: rotate(-135deg); }
.pregunta p {
  margin: .875rem 0 0;
  font-size: .9375rem;
  color: var(--ink-soft);
  max-width: 62ch;
}

/* Señales — cuándo revisar la visión */
.section__sub { margin-top: .875rem; color: var(--ink-soft); font-size: 1.0625rem; }
.senales {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.senal { padding-top: 1.25rem; border-top: 2px solid var(--brand-tint); }
.senal__num {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--brand);
  margin-bottom: .75rem;
}
.senal h3 { margin-bottom: .5rem; }
.senal p { margin: 0; font-size: .9375rem; color: var(--ink-soft); }
.section__nota a { color: var(--brand-dark); font-weight: 500; text-decoration: underline; }

@media (max-width: 900px) {
  .senales { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}
@media (max-width: 560px) {
  .senales { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Membresía Premium */
.membresia { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
.membresia__lead { color: var(--ink-soft); font-size: 1.0625rem; margin-bottom: 1.75rem; }
.membresia__lead strong { color: var(--ink); }
.beneficios { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.beneficio {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: 1rem 1.125rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .9375rem;
  color: var(--ink-soft);
}
.beneficio strong { color: var(--ink); font-weight: 600; }
.beneficio .ico { color: var(--brand); margin-top: .1rem; }

@media (max-width: 860px) {
  .membresia { grid-template-columns: 1fr; gap: 2rem; }
}

/* Páginas legales */
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: .35rem; }
.legal h2 {
  font-size: 1.0625rem;
  margin: 2.25rem 0 .6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.legal p, .legal li { color: var(--ink-soft); font-size: .9375rem; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal ul { padding-left: 1.15rem; margin: 0 0 1rem; }
.legal li { margin-bottom: .4rem; }
.legal a { color: var(--brand-dark); text-decoration: underline; }
.legal__fecha { font-size: .8125rem; color: var(--ink-soft); margin-bottom: 2rem; }
.legal__volver { margin-top: 2.5rem; }

/* Galería del consultorio */
.galeria {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.galeria__item { margin: 0; }
.galeria__item--ancho { grid-column: span 2; }
.galeria__item img {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.galeria__item--ancho img { height: 300px; }
.galeria__item figcaption {
  margin-top: .5rem;
  font-size: .8125rem;
  color: var(--ink-soft);
}

@media (max-width: 900px) {
  .galeria { grid-template-columns: repeat(2, 1fr); }
  .galeria__item--ancho { grid-column: span 2; }
  .galeria__item img { height: 200px; }
  .galeria__item--ancho img { height: 240px; }
}
@media (max-width: 560px) {
  .galeria { grid-template-columns: 1fr; }
  .galeria__item--ancho { grid-column: span 1; }
  .galeria__item img,
  .galeria__item--ancho img { height: 220px; }
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--brand-tint); }
.step__num { display: block; font-size: .8125rem; font-weight: 700; color: var(--brand); letter-spacing: .1em; margin-bottom: .75rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: .9375rem; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr .7fr; gap: 4rem; align-items: start; }
.about__text p { color: var(--ink-soft); }
.stats { margin: 0; display: grid; gap: 1.5rem; }
.stat { border-left: 2px solid var(--brand); padding-left: 1.25rem; }
.stat dt { font-size: .8125rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.stat dd { margin: .2rem 0 0; font-size: 2rem; font-weight: 600; letter-spacing: -.03em; }
.stat dd.stat--sm { font-size: 1.125rem; letter-spacing: -.02em; }
.stat dd a:hover { color: var(--brand); }

/* Quién te atiende */
.pro {
  display: flex;
  align-items: flex-start;
  gap: 1.125rem;
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--brand-tint);
  border-radius: var(--radius);
}
.pro__avatar {
  flex: none;
  width: 76px; height: 76px;
  border-radius: 50%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.pro__avatar img { width: 100%; height: 100%; object-fit: cover; }
.pro__info > * { margin: 0; }
.pro__label {
  font-size: .6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand-dark);
  margin-bottom: .35rem;
}
.pro__name { font-size: 1.0625rem; font-weight: 600; line-height: 1.3; }
.pro__role { font-size: .875rem; color: var(--ink-soft); margin-bottom: .5rem; }
.pro__cred { font-size: .8125rem; color: var(--ink-soft); }
.pro__bio { font-size: .9375rem; color: var(--ink-soft); }

@media (max-width: 420px) {
  .pro { flex-direction: column; gap: .875rem; }
}

/* Booking */
/* Bloque CTA de agendamiento (reemplaza el formulario) */
.cta { text-align: center; max-width: 640px; }
.cta__lead { color: var(--ink-soft); font-size: 1.0625rem; margin-bottom: 2rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .875rem; justify-content: center; }
.cta__note { margin: 1.5rem auto 0; max-width: 30rem; font-size: .9375rem; color: var(--ink-soft); }

/* Captura de teléfono para quien prefiere que lo llamen */
.callback {
  margin: 2.5rem auto 0;
  max-width: 30rem;
  padding: 1.75rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.callback__title { font-size: 1.0625rem; margin-bottom: .35rem; }
.callback__lead { font-size: .9375rem; color: var(--ink-soft); margin-bottom: 1.25rem; }
.callback__form { display: flex; flex-wrap: wrap; gap: .625rem; }
.callback__form input[type="tel"] {
  flex: 1 1 12rem;
  min-width: 0;
  padding: .8rem 1rem;
  font: inherit;
  font-size: .9375rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.callback__form input[type="tel"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.callback__form input.is-invalid { border-color: #c0392b; }
.callback__form button { flex: 0 0 auto; }
.callback__trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.callback__msg {
  margin: .875rem 0 0;
  font-size: .875rem;
  padding: .75rem .9rem;
  border-radius: 8px;
}
.callback__msg--ok { color: var(--brand-dark); background: var(--brand-tint); }
.callback__msg--error { color: #8a2f22; background: #fbeae7; }
.callback__msg a { color: inherit; font-weight: 600; text-decoration: underline; }
.callback__legal { margin: .875rem 0 0; font-size: .75rem; color: var(--ink-soft); }
.cta__note a { color: var(--brand-dark); font-weight: 500; }
.cta__note a:hover { text-decoration: underline; }

/* Footer */
.footer { background: var(--ink); color: #d7e0de; padding: 3.5rem 0 1.5rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 3rem; justify-content: space-between; }
.logo--footer .logo__text { color: #fdfaf5; }
.logo--footer .logo__mark { color: #c3d0b2; }
.logo--footer .logo__tagline { color: #a8b39a; }

/* Pin sobre el fondo oscuro del footer */
.footer .maps-pin { background: rgba(255, 255, 255, .12); color: #c3d0b2; }
.footer .maps-link:hover .maps-pin { background: #c3d0b2; color: var(--ink); }
.footer__tag { margin: .75rem 0 0; font-size: .875rem; color: #a8b39a; }
.footer__cols { display: grid; grid-template-columns: repeat(4, auto); gap: 2.5rem; }
.footer__cols h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #a8b39a; margin-bottom: .75rem; }
.footer__cols p { margin: 0 0 .35rem; font-size: .9375rem; }
.footer__cols a:hover { color: #c3d0b2; }
.footer__bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.footer__bottom p { margin: 0; font-size: .8125rem; color: #a8b39a; }
.footer__legal a { text-decoration: underline; }
.footer__legal a:hover { color: #c3d0b2; }

/* Responsive */
@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid--3, .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.25rem;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { margin-top: 1rem; border-bottom: none; justify-content: center; }
  .nav__toggle { display: flex; }

  .grid--3, .steps, .stats { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
