/* ==========================================================================
   TAC Dental — Sistema de diseño
   Estructura y lenguaje visual inspirados en diagnocat.com
   Tokens: morado primario, superficies lila, radios grandes, display 900.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Oro — color de marca: CTA, acentos y detalles */
  --gold:        #b8944d;
  --gold-hover:  #a07e3c;
  --gold-bright: #d4ad63;
  --gold-light:  #e8d5a8;
  --gold-ghost:  rgba(184, 148, 77, 0.12);
  --gold-line:   rgba(184, 148, 77, 0.26);

  /* Azul — profundidad, superficies oscuras y datos */
  --blue:        #1c5878;
  --blue-deep:   #0d2b3d;
  --blue-soft:   #eef3f6;
  --brand:       #0090c0;  /* azul del logo */
  --brand-deep:  #0a6b8c;  /* mismo tono, con contraste suficiente para texto */
  --blue-ghost:  rgba(28, 88, 120, 0.10);

  /* Verde — estado positivo y confirmaciones */
  --green:       #1d6b54;
  --green-deep:  #0e3b2e;
  --green-soft:  #ecf3f0;
  --green-ghost: rgba(29, 107, 84, 0.10);

  /* Bronce — atención clínica (familia del oro, más cálido y oscuro) */
  --alert:       #9c5a2b;
  --alert-soft:  #f6ece3;

  /* Neutros cálidos */
  --ink:           #0b0c0e;
  --ink-80:        rgba(11, 12, 14, 0.8);
  --muted:         rgba(46, 52, 58, 0.66);
  --muted-strong:  rgba(46, 52, 58, 0.92);
  --line:          rgba(11, 12, 14, 0.10);
  --surface:       #ffffff;
  --surface-alt:   #faf9f6;
  --surface-soft:  #f5f3ed;

  /* Tipografía */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Escala tipográfica (desktop) */
  --fs-hero:   64px;
  --fs-h2:     48px;
  --fs-h3:     40px;
  --fs-h4:     28px;
  --fs-lead:   22px;
  --fs-body:   18px;
  --fs-sm:     16px;
  --fs-xs:     14px;

  /* Radios */
  --r-card:  24px;
  --r-btn:   12px;
  --r-chip:  999px;
  --r-sm:    8px;

  /* Espaciado */
  --container: 1200px;
  --container-narrow: 960px;
  --gutter: 24px;
  --section-y: 120px;

  /* Sombras */
  --shadow-nav:  0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 2px 4px rgba(11, 12, 14, 0.04), 0 12px 32px -12px rgba(11, 12, 14, 0.12);
  --shadow-lift: 0 8px 12px rgba(11, 12, 14, 0.06), 0 24px 48px -16px rgba(11, 12, 14, 0.18);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }

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

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

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  background: var(--ink); color: var(--gold-bright);
  padding: 12px 20px; border-radius: var(--r-btn);
}
.skip-link:focus { top: 16px; }

/* ---------- 3. Tipografía ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); line-height: 1.02; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }

p { margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted-strong); }
.muted { color: var(--muted); }
.accent { color: var(--gold); }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: 80px; }
.section--soft { background: var(--surface-soft); }

/* Servicios y testimonios comparten fondo: sin esto el hueco entre ambos
   sumaba 240px de color vacío. */
.section--pb-sm { padding-bottom: 40px; }
.section--pt-sm { padding-top: 40px; }
@media (max-width: 640px) {
  .section--pb-sm { padding-bottom: 44px; }
  .section--pt-sm { padding-top: 40px; }
}

.section-head { max-width: 780px; margin-bottom: 56px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--row {
  max-width: none;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
}
.section-head--row > * + * { margin-top: 0; }

/* Cinco estrellas junto al titular. */
.rating { display: inline-flex; gap: 5px; flex: none; color: var(--gold); }
.rating svg { width: 26px; height: 26px; }

@media (max-width: 760px) {
  .section-head--row { flex-direction: column; align-items: flex-start; gap: 18px; }
  .rating svg { width: 22px; height: 22px; }
}
.section-head > * + * { margin-top: 20px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 16px; }
.row--wrap { flex-wrap: wrap; }

/* ---------- 5. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1;
  padding: 16px 26px;
  border-radius: var(--r-btn);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--gold); color: #fff; }
.btn--primary { background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: #12100a; }
.btn--primary:hover { background: var(--gold-hover); box-shadow: 0 10px 20px -8px rgba(184, 148, 77, 0.55); }

.btn--ghost { background: var(--blue-ghost); color: var(--blue); }
.btn--ghost:hover { background: rgba(28, 88, 120, 0.18); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1a1a1a; }

.btn--outline { border: 1.5px solid var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); }

.btn--sm { padding: 10px 18px; font-size: var(--fs-xs); }
.btn--lg { padding: 20px 34px; font-size: var(--fs-body); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: var(--fs-sm); color: var(--blue);
}
.link-arrow svg { transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Chips ---------- */
.icon-wa { color: #25d366; flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-chip);
  background: var(--surface-soft);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--ink);
}
.chip--gold  { background: var(--gold-ghost); color: #7d6127; }
.chip--blue  { background: var(--blue-ghost); color: var(--blue); }
.chip--green { background: var(--green-ghost); color: var(--green); }
.chip--alert { background: var(--alert-soft); color: var(--alert); }
.chip--outline{ background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* ---------- 7. Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, 0.5); }

.header__inner {
  display: flex; align-items: center; gap: 32px;
  height: 76px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.logo__mark { width: 40px; height: auto; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-display); font-weight: 900; font-size: 19px; letter-spacing: -0.03em; }
.logo__suffix { color: var(--gold); }
.logo__sub { margin-top: 4px; font-size: 9.5px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }

.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* Selector de idioma */
.lang { position: relative; }
.lang__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 12px; border-radius: var(--r-chip);
  border: 1px solid var(--line);
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}
.lang__btn:hover { border-color: var(--ink); background: var(--surface-soft); }
.lang__code { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; }
.lang__menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 170px; padding: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-nav);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang__menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 13px; border-radius: 10px; font-size: var(--fs-sm);
}
.lang__menu a:hover { background: var(--surface-soft); }
.lang__menu a[aria-current="true"] { font-weight: 700; color: var(--blue); }
.lang__menu a[aria-current="true"]::after { content: "✓"; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  padding-block: 96px 120px;
  background:
    radial-gradient(900px 420px at 78% 8%,  rgba(184, 148, 77, 0.18), transparent 62%),
    radial-gradient(700px 380px at 12% 26%, rgba(28, 88, 120, 0.10), transparent 60%),
    linear-gradient(180deg, #faf8f3 0%, #ffffff 68%);
  overflow: hidden;
}
/* Rótulo de sucursal, sobre el vídeo y el titular. */
.hero__place {
  position: relative; z-index: 1;
  text-align: center; margin: 0 0 56px;
}
.hero__branch {
  display: block;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(30px, 4.6vw, 54px); line-height: 1.05;
  letter-spacing: -0.03em; color: var(--ink);
}
.hero__city {
  display: block; margin-top: 10px;
  font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}

.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 64px; align-items: center;
}
.hero__badge { margin-bottom: 28px; }
.hero h1 { margin-bottom: 24px; }
.hero__copy .lead { max-width: 560px; }
.hero__detail { margin-top: 16px; font-size: var(--fs-sm); color: var(--muted-strong); max-width: 540px; }
.hero__audience { margin-top: 24px; display: grid; gap: 10px; }
.hero__audience li {
  position: relative; padding-left: 24px;
  font-size: var(--fs-sm); color: var(--muted-strong);
}
.hero__audience li::before {
  content: ""; position: absolute; left: 4px; top: 9px;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}
.hero__audience strong { color: var(--ink); }
.hero__cta { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.hero__note { margin-top: 20px; font-size: var(--fs-xs); color: var(--muted); }

/* Vídeo vertical (formato Short): marco negro con filete dorado. */
.hero__video-frame {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 26px;
  overflow: hidden;
  background: #0b0c0e;
  box-shadow: 0 2px 4px rgba(11, 12, 14, 0.06), 0 30px 60px -24px rgba(11, 12, 14, 0.45);
}
.hero__video-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: 26px; box-shadow: inset 0 0 0 1px var(--gold-line);
}
.hero__video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.hero__visual {
  position: relative; z-index: 1;
  max-width: 1040px; margin: 72px auto 0;
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

/* ---------- 8b. Bloque de titular con vídeo ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 56px; align-items: center;
}
.feature__copy .lead { margin-top: 20px; }
.feature__frame {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: var(--r-card); overflow: hidden;
  background: #0b0c0e;
  box-shadow: 0 2px 4px rgba(11, 12, 14, 0.06), 0 26px 52px -22px rgba(11, 12, 14, 0.42);
}
.feature__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--gold-line);
}
.feature__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 9. Franja de respaldo ---------- */
.trust-band {
  position: relative;
  display: grid; place-items: center;
  min-height: 460px;
  padding-block: 88px;
  background-image: url("../img/familia.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
/* Velo claro: la fotografía es muy luminosa y el texto va en negro. */
.trust-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(74% 64% at 50% 50%, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.72)),
    linear-gradient(180deg, rgba(250, 249, 246, 0.18), rgba(250, 249, 246, 0.18));
}
.trust-band > .container { position: relative; }

.trust {
  max-width: 900px; margin-inline: auto; text-align: center;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(24px, 3.4vw, 40px); line-height: 1.2;
  letter-spacing: -0.02em; text-wrap: balance;
  color: var(--ink);
  text-shadow: 0 2px 22px rgba(255, 255, 255, 0.95), 0 0 46px rgba(255, 255, 255, 0.8);
}
.trust .accent { color: var(--gold); }

@media (max-width: 640px) {
  .trust-band { min-height: 360px; padding-block: 64px; background-position: 58% center; }
}

/* ---------- 13. Solicitud de estudio ---------- */
.request {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: 56px; align-items: center;
  margin-top: 56px;
}
.request__copy > * + * { margin-top: 18px; }
.request__copy .btn { margin-top: 28px; }
.request__doc { margin-top: 22px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; }
.request__doc a {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--blue);
  text-decoration: underline; text-underline-offset: 3px;
}
.request__doc a:hover { color: var(--ink); }
.request__frame {
  position: relative; aspect-ratio: 9 / 16;
  border-radius: var(--r-card); overflow: hidden; background: #0b0c0e;
  box-shadow: 0 2px 4px rgba(11, 12, 14, 0.06), 0 26px 52px -22px rgba(11, 12, 14, 0.42);
}
.request__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--gold-line);
}
.request__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 13b. Estudios y precios ---------- */
.pricing {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 40px; margin-bottom: 40px; box-shadow: var(--shadow-card);
}
.pricing__head { margin-bottom: 28px; }
.pricing__head h3 { margin-bottom: 8px; }
.pricing__list { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
/* Línea que separa las dos columnas, dentro del hueco de 48px. */
.pricing__list::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: var(--line);
}
.pricing__row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.pricing__name { font-size: var(--fs-sm); }
.pricing__watch {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: 10px; padding: 3px 10px; border-radius: var(--r-chip);
  background: var(--blue-ghost); color: var(--blue);
  font-size: 12px; font-weight: 700; white-space: nowrap;
  vertical-align: 1px;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.pricing__watch:hover { background: var(--blue); color: #fff; }
.pricing__price {
  font-family: var(--font-display); font-weight: 900; font-size: 19px;
  color: var(--blue); letter-spacing: -0.01em; white-space: nowrap;
}
.pricing__cur { font-family: var(--font-body); font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
/* El cierre de la tabla va centrado: texto, aviso y botones en el mismo eje. */
.pricing__foot {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  margin-top: 36px; text-align: center;
}
.pricing__foot p { font-size: var(--fs-sm); max-width: 460px; }
.pricing__cta { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pricing__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.pricing__hint {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--blue);
  letter-spacing: 0.01em;
}
.pricing__hint svg { animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .pricing__hint svg { animation: none; } }
.pricing__tel { font-weight: 700; color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.pricing__tel:hover { color: var(--ink); }

/* ---------- 16. Testimonios ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  border-radius: var(--r-card); border: 1px solid var(--line);
  padding: 32px; display: flex; flex-direction: column; gap: 20px;
  background: #fff;
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.quote:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.quote__text { font-size: var(--fs-sm); line-height: 1.6; }
.quote__who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-family: var(--font-display); font-weight: 900; font-size: 15px; flex: none; }
.quote__name { font-weight: 700; font-size: var(--fs-sm); }
.quote__role { font-size: var(--fs-xs); color: var(--muted); }
.stars { display: flex; gap: 3px; color: var(--gold); letter-spacing: 1px; }

/* ---------- 17b. Ubicación ---------- */
.place {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 44px; box-shadow: var(--shadow-card);
}
.place__info { display: grid; gap: 36px; align-content: center; }
.place__col h4 { margin-bottom: 18px; }

/* Mapa: el iframe pinta, el enlace recibe el clic. */
.place__map {
  position: relative; display: block;
  aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden;
  background: var(--surface-soft);
  box-shadow: 0 2px 4px rgba(11, 12, 14, 0.06), 0 22px 44px -20px rgba(11, 12, 14, 0.32);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.place__map:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.place__map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  pointer-events: none;
  filter: saturate(0.92);
}
.place__map::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line);
}
.place__map-cta {
  position: absolute; left: 16px; bottom: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: var(--fs-xs); font-weight: 700; color: var(--ink);
  box-shadow: 0 6px 18px -8px rgba(11, 12, 14, 0.5);
}
.place__map:hover .place__map-cta { background: var(--ink); color: var(--gold-bright); }
.place__address { font-style: normal; font-size: var(--fs-sm); line-height: 1.8; color: var(--muted-strong); margin-bottom: 22px; }
.place__list { display: grid; gap: 20px; }
.place__list li { display: flex; align-items: center; gap: 14px; }
.place__icon {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface-soft); color: var(--blue);
  display: grid; place-items: center;
}
.place__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.place__value { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.place__value:hover { color: var(--blue); }

/* Código QR del sitio, junto a los datos de contacto. */
.place__mapcol { display: grid; gap: 20px; align-content: start; }
.place__qr { display: flex; align-items: center; gap: 16px; }
.place__qr img {
  width: 104px; height: 104px; flex: none;
  border: 1px solid var(--line); border-radius: 12px; padding: 6px;
  background: #fff;
}
.place__qr p { font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }



/* ---------- 18b. Páginas legales ---------- */
.legal { font-size: var(--fs-sm); line-height: 1.75; color: var(--muted-strong); }
.legal__title { font-size: clamp(32px, 5vw, 52px); margin: 14px 0 10px; }
.legal__date { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 32px; }
.legal h2 {
  font-size: 22px; margin: 44px 0 14px; color: var(--ink);
  padding-top: 24px; border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0; display: grid; gap: 10px; }
.legal li { position: relative; padding-left: 20px; }
.legal li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--gold);
}
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--ink); }
.legal strong { color: var(--ink); }

.legal__warning {
  background: var(--alert-soft); border-radius: var(--r-card);
  padding: 20px 24px; margin-bottom: 40px;
  font-size: var(--fs-xs); line-height: 1.7; color: #7a4520;
}
.legal__warning strong { color: var(--alert); }

.legal__note {
  background: var(--surface-soft); border-left: 3px solid var(--gold);
  border-radius: 0 14px 14px 0; padding: 18px 22px; margin: 20px 0;
}
.legal__note p { margin: 0; font-size: var(--fs-xs); }

.legal__data { display: grid; grid-template-columns: minmax(0, 220px) 1fr; gap: 10px 24px; margin: 18px 0; }
.legal__data dt { font-weight: 700; color: var(--ink); font-size: var(--fs-xs); }
.legal__data dd { margin: 0; }

.legal__foot {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}

@media (max-width: 640px) {
  .legal__data { grid-template-columns: 1fr; gap: 4px 0; }
  .legal__data dd { margin-bottom: 12px; }
  .legal h2 { font-size: 20px; margin-top: 36px; }
}

/* ---------- 19. Footer ---------- */
.footer { background: var(--surface-alt); padding-block: 72px 40px; }
/* La foto y las columnas comparten celda de rejilla: la altura la marca el
   más alto de los dos, así la imagen se ve completa y nunca se recorta. */
.footer__hero { display: grid; }
.footer__photo {
  grid-area: 1 / 1;
  width: 100%; height: auto;
  opacity: 0.32;
  align-self: center;
  pointer-events: none;
}
.footer__top {
  grid-area: 1 / 1;
  position: relative;
  align-content: center;
  padding-block: 32px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 200px));
  justify-content: center; gap: 44px 72px;
}
.footer__col { text-align: center; }
.footer__top > * { text-shadow: 0 1px 14px rgba(250, 249, 246, 0.95), 0 0 34px rgba(250, 249, 246, 0.9); }
.footer__col h5 { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brand-deep); margin: 0 0 18px; }
.footer__col a { display: block; padding: 7px 0; font-size: var(--fs-sm); font-weight: 600; color: var(--brand-deep); transition: color 0.15s var(--ease); }
.footer__col a:hover { color: var(--ink); }
/* La columna de marca va centrada: logo, claim e iconos en el mismo eje. */
.footer__brand { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 8px; }
.footer__brand p { margin-top: 16px; font-size: var(--fs-sm); color: var(--muted); max-width: 300px; }
.footer__brand .footer__social { justify-content: center; }
.footer__claim {
  max-width: 320px;
  line-height: 1.6; text-wrap: balance;
}
.footer__claim strong {
  display: block;
  font-family: var(--font-display); font-weight: 900;
  font-size: 19px; letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 4px;
}
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--blue); padding: 0; }
.footer__social a:hover { background: var(--ink); color: var(--gold-bright); }
.footer__bottom { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--gold-line); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- 20. Dock flotante ---------- */
.dock {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 18px;
  padding: 14px 14px 14px 26px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--r-chip);
  box-shadow: var(--shadow-lift);
  transition: transform 0.4s var(--ease);
  max-width: calc(100vw - 32px);
}
.dock.is-visible { transform: translate(-50%, 0); }
.dock__text { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }

/* ---------- 21. Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 22. Responsive ---------- */
@media (max-width: 1100px) {
  :root { --fs-hero: 56px; --fs-h2: 40px; --fs-h3: 32px; --fs-h4: 24px; --section-y: 96px; }
}

@media (max-width: 900px) {
  .pricing { padding: 28px; }
  .place { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .place__map { aspect-ratio: 16 / 10; }
  .place__qr { justify-content: center; }
  .pricing__list { grid-template-columns: 1fr; gap: 0; }
  .pricing__list::before { display: none; }
  .feature { grid-template-columns: 1fr; gap: 36px; }
  /* En móvil el bloque se reordena: título y texto, luego el vídeo, y el
     botón debajo. `display: contents` deja que los hijos de .request__copy
     participen en el mismo flujo que el vídeo para poder intercalarlos. */
  .request { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
  .request__copy { display: contents; }
  .request__copy > * + * { margin-top: 0; }
  .request__copy h3        { order: 1; }
  .request__copy .lead     { order: 2; }
  .request__copy .muted    { order: 3; }
  .request__media          { order: 4; width: min(320px, 78vw); margin-block: 8px; }
  .request__copy .btn      { order: 5; margin-top: 0; }
  .request__doc            { order: 6; }
  .request__copy .lead, .request__copy .muted, .request__doc { margin-inline: auto; max-width: 560px; }
  .hero__grid { grid-template-columns: 1fr; gap: 40px; justify-items: center; text-align: center; }
  .hero__video { width: min(320px, 78vw); }
  .hero__copy .lead, .hero__detail { margin-inline: auto; }
  .hero__audience { justify-items: center; text-align: left; max-width: 420px; margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .header__cta { display: none; }
  .header__inner { gap: 16px; justify-content: space-between; }
  .quotes, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* En tablet las tres tarjetas caen en una rejilla de dos y la última queda
   suelta a la izquierda: la centramos manteniendo el ancho de una tarjeta. */
@media (min-width: 641px) and (max-width: 900px) {
  .quotes > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - 20px) / 2);
  }
}

@media (max-width: 640px) {
  :root { --fs-hero: 40px; --fs-h2: 30px; --fs-h3: 26px; --fs-h4: 21px; --fs-lead: 18px; --fs-body: 16px; --gutter: 16px; --section-y: 72px; }
  .hero { padding-block: 56px 72px; }
  .hero__place { margin-bottom: 36px; }
  .hero__city { letter-spacing: 0.12em; font-size: var(--fs-xs); }
  .hero__cta .btn { width: 100%; }
  .quotes, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .pricing { padding: 22px; border-radius: 18px; }
  .place { padding: 24px; border-radius: 18px; }
  .pricing__cta { width: 100%; align-items: stretch; }
  .pricing__hint { justify-content: center; }
  .pricing__actions { width: 100%; }
  .pricing__foot .btn { width: 100%; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 160px)); gap: 32px 40px; }
  /* Con tres columnas en una rejilla de dos, la última quedaba suelta
     a la izquierda: que ocupe la fila entera y se centre. */
  .footer__col:last-child { grid-column: 1 / -1; }
  /* Copyright y enlaces legales, también centrados en el teléfono. */
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
  .footer__bottom .row { justify-content: center; flex-wrap: wrap; }
  /* En el teléfono la foto deja de ser fondo: va nítida arriba y el texto debajo. */
  .footer__hero { display: block; }
  .footer__photo {
    grid-area: auto; opacity: 1;
    border-radius: 18px; margin-bottom: 28px;
  }
  .footer__top { grid-area: auto; padding-block: 0; }
  .footer__top > * { text-shadow: none; }
  .dock { display: none; }
  .section-head { margin-bottom: 36px; }
}


/* ==========================================================
   Ortodoncia — piezas propias de esta landing
   ========================================================== */

/* Ilustraciones dentro de los marcos que en tacdental llevaban vídeo. */
.hero__video-frame img,
.feature__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* El marco toma la proporción de la foto, para mostrarla completa sin recortarla ni estirarla. */
.feature__frame { aspect-ratio: 1400 / 763; }

/* Tarjetas de tratamiento */
.treats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.treat {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.treat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.treat__art { aspect-ratio: 600 / 340; background: var(--surface-soft); }
.treat__art img { width: 100%; height: 100%; display: block; object-fit: cover; }
.treat__body { display: flex; flex-direction: column; gap: 14px; padding: 28px; flex: 1; }
.treat__tag {
  align-self: flex-start; padding: 4px 12px; border-radius: var(--r-chip);
  background: var(--gold-ghost); color: var(--alert);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.treat__body p { font-size: var(--fs-sm); color: var(--muted-strong); }
.treat__list { display: grid; gap: 8px; margin-bottom: 8px; }
.treat__list li { position: relative; padding-left: 26px; font-size: var(--fs-sm); }
.treat__list li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green);
  transform: rotate(-45deg);
}
.treat .btn { margin-top: auto; align-self: flex-start; }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 28px; border-radius: var(--r-card);
  background: #fff; border: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: 14px;
  font-family: var(--font-display); font-weight: 900; font-size: 34px; color: var(--gold);
}
.step h4 { font-size: 20px; margin-bottom: 8px; }
.step p { font-size: var(--fs-sm); color: var(--muted-strong); }

/* Preguntas frecuentes */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 24px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; position: relative;
  font-weight: 700; font-size: var(--fs-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-size: 26px; color: var(--gold);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 22px; font-size: var(--fs-sm); color: var(--muted-strong); }

@media (max-width: 1024px) {
  .treats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .treats, .steps { grid-template-columns: 1fr; }
}

/* Logo de Oral Harmony junto al lockup, centrado con el símbolo azul. */
.logo__divider { width: 1px; height: 32px; background: var(--line); margin-inline: 4px; flex: none; }
.logo__partner { height: 40px; width: auto; flex: none; }
@media (max-width: 420px) {
  .logo__partner { height: 32px; }
  .logo__divider { margin-inline: 0; }
}
.logo__partner + .logo__text { margin-left: -4px; }
@media (max-width: 560px) {
  .logo { gap: 7px; }
  .logo__mark { width: 30px; }
  .logo__partner { height: 26px; }
  .logo__name { font-size: 15px; }
  .logo__sub { font-size: 8px; letter-spacing: 0.12em; }
  .logo__divider { height: 26px; margin-inline: 0; }
}
@media (max-width: 420px) {
  .header__inner { gap: 8px; }
  .logo { gap: 5px; }
  .logo__mark { width: 24px; }
  .logo__partner { height: 21px; }
  .logo__name { font-size: 13px; letter-spacing: -0.02em; }
  .logo__sub { font-size: 7px; letter-spacing: 0.08em; }
  .logo__divider { height: 22px; }
  .lang__btn svg { display: none; }
  .lang__btn { padding-inline: 10px; }
}
.place--next { margin-top: 32px; }
.request__frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* En dos columnas, la tercera tarjeta queda sola: se centra bajo las dos de arriba. */
@media (max-width: 1024px) and (min-width: 641px) {
  .treats > .treat:last-child:nth-child(odd) {
    grid-column: 1 / -1; justify-self: center; width: calc(50% - 12px);
  }
}
/* Título del pie: "Ortodoncia" encima de los logos, más grande que sus nombres. */
.footer__brand .footer__title {
  margin: 0 0 18px; max-width: none;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(34px, 4.4vw, 52px); line-height: 1; letter-spacing: -0.03em; color: var(--ink);
}
