/* ============================================================
   AURALINE — Sistema de diseño
   Blanco + grises Apple + vidrio (glass) + acento verde sobrio
   ============================================================ */

:root {
  /* Paleta */
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --border: #e8e8ed;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #a1a1a6;
  --accent: #2f7d6d;          /* verde Auraline, sobrio (tomado del logo) */
  --accent-soft: #eaf3f0;

  /* Vidrio tipo macOS */
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.45);
  --glass-blur: 20px;

  /* Radios */
  --r-card: 28px;
  --r-big: 40px;
  --r-pill: 999px;

  /* Sombras: siempre suaves, largas y difusas */
  --shadow-soft: 0 24px 70px -28px rgba(29, 29, 31, 0.16);
  --shadow-float: 0 40px 90px -30px rgba(29, 29, 31, 0.22);
  --shadow-chip: 0 10px 30px -14px rgba(29, 29, 31, 0.14);

  /* Movimiento */
  --ease-fluid: cubic-bezier(0.32, 0.72, 0, 1);

  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: var(--accent-soft); color: var(--ink); }

/* ---------- Tipografía ---------- */
/* Tracking negativo en titulares grandes, cuerpo en 0 (estilo Apple) */
h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.03em; }

.display {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  letter-spacing: -0.035em;
}
.display strong {
  display: block;
  font-weight: 800;
  font-size: 1.12em;
}

h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: var(--ink-2);
  font-weight: 400;
  line-height: 1.55;
}

.muted { color: var(--ink-2); }

/* Etiqueta "eyebrow" sobre los titulares */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- Layout ---------- */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.container-narrow { width: min(860px, 92vw); margin-inline: auto; }

section { padding-block: clamp(90px, 12vw, 150px); }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 680px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 16px; }

/* ---------- Botones pill ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  transition: transform 0.3s var(--ease-fluid), box-shadow 0.3s var(--ease-fluid), background 0.3s var(--ease-fluid);
  will-change: transform;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-chip);
}
.btn-primary:hover { box-shadow: var(--shadow-soft); }

.btn-ghost {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(160%);
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow-chip); }

/* Icono anidado dentro del botón (flecha en su propio círculo) */
.btn .btn-ico {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.14);
  margin-right: -10px;
  transition: transform 0.3s var(--ease-fluid);
}
.btn-ghost .btn-ico { background: rgba(29, 29, 31, 0.06); }
.btn:hover .btn-ico { transform: translate(2px, -1px) scale(1.06); }
.btn .btn-ico svg { width: 14px; height: 14px; }

/* ---------- Navbar (transparente → glass al hacer scroll) ---------- */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  /* Degradado blanco para que el menú se lea sobre cualquier fondo */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 55%, rgba(255, 255, 255, 0) 100%);
  transition: background 0.4s var(--ease-fluid), box-shadow 0.4s var(--ease-fluid),
              backdrop-filter 0.4s var(--ease-fluid);
}
.nav-inner {
  width: min(1180px, 94vw);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(180%);
  box-shadow: 0 1px 0 rgba(29, 29, 31, 0.05), 0 14px 40px -24px rgba(29, 29, 31, 0.18);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 44px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.25s var(--ease-fluid), background 0.25s var(--ease-fluid);
}
.nav-links a:hover { color: var(--ink); background: rgba(29, 29, 31, 0.05); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.nav-cta {
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  margin-left: 8px;
  transition: transform 0.3s var(--ease-fluid), box-shadow 0.3s var(--ease-fluid);
}
.nav-links a.nav-cta:hover { transform: scale(1.04); box-shadow: var(--shadow-chip); background: var(--ink); }

/* Hamburguesa (morph a X) */
.nav-burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  position: relative;
  z-index: 130;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}
.nav-burger span {
  position: absolute;
  left: 13px;
  width: 18px; height: 1.6px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.4s var(--ease-fluid), top 0.4s var(--ease-fluid), opacity 0.3s;
}
.nav-burger span:nth-child(1) { top: 17px; }
.nav-burger span:nth-child(2) { top: 25px; }
.nav-burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* Menú móvil: overlay glass a pantalla completa con reveal escalonado */
.mobile-menu {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 6px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease-fluid);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em;
  padding: 10px 22px; border-radius: var(--r-pill);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-fluid), transform 0.5s var(--ease-fluid);
}
.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu a:nth-child(6) { transition-delay: 0.3s; }
.mobile-menu a:nth-child(7) { transition-delay: 0.35s; }

/* ---------- Tarjetas glass (doble bisel: carcasa + núcleo) ---------- */
.glass-card {
  border-radius: var(--r-card);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-chip), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: transform 0.4s var(--ease-fluid), box-shadow 0.4s var(--ease-fluid);
}
.glass-card:hover { transform: translateY(-4px) scale(1.01); box-shadow: var(--shadow-soft); }

/* Carcasa exterior con núcleo interior (radios concéntricos) */
.bezel {
  border-radius: var(--r-big);
  background: rgba(29, 29, 31, 0.035);
  border: 1px solid rgba(29, 29, 31, 0.05);
  padding: 8px;
}
.bezel-core {
  border-radius: calc(var(--r-big) - 8px);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

/* Chips glass */
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-chip), inset 0 1px 1px rgba(255, 255, 255, 0.5);
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
  white-space: nowrap;
}
.chip svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; }

/* ---------- HERO (tarjeta blanca sobre fondo de color, 3D al centro) ---------- */
.hero-frame {
  min-height: 100vh;
  padding: calc(var(--nav-h) + 18px) clamp(14px, 3vw, 40px) clamp(24px, 4vw, 48px);
  /* Fondo blanquecino con brillos verdes muy suaves */
  background:
    radial-gradient(1000px 550px at 85% 8%, rgba(47, 125, 109, 0.16), transparent 60%),
    radial-gradient(800px 550px at 8% 92%, rgba(47, 125, 109, 0.13), transparent 62%),
    linear-gradient(165deg, #ffffff 0%, #f2f6f5 45%, #dfe9e5 100%);
  display: flex;
  align-items: stretch;
}
/* Carcasa glass exterior de la tarjeta (doble marco, como la referencia) */
.hero-shell {
  flex: 1;
  border-radius: calc(var(--r-big) + 10px);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 10px;
  box-shadow: 0 45px 110px -38px rgba(29, 29, 31, 0.28);
}
.hero-card {
  position: relative;
  height: 100%;
  border-radius: var(--r-big);
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: visible; /* deja que el alineador sobresalga del banner */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 60px) clamp(48px, 6vw, 80px);
}
.hero-grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 0.85fr 1.05fr 1.1fr;
  gap: clamp(18px, 3vw, 44px);
  align-items: center;
}
.hero-left h1 {
  font-size: clamp(1.9rem, 3.4vw, 3.1rem);
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}
.hero-left h1 strong { color: var(--accent); font-weight: 800; }
.hero-left p { color: var(--ink-2); font-size: 0.98rem; max-width: 320px; }
.hero-right { text-align: left; justify-self: end; }
.hero-right h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 320px;
}
/* Rostro de la marca: foto de la Dra. al centro del hero */
.hero-photo { position: relative; width: 100%; }
.hero-photo-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: min(56vh, 520px);
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: var(--bg-alt);
  box-shadow: 0 45px 90px -32px rgba(29, 29, 31, 0.38);
}
.hero-photo-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
/* El alineador flota junto a ella, sobresaliendo del marco */
.hero-photo-aligner {
  position: absolute;
  z-index: 6;
  right: -14%;
  bottom: 4%;
  width: 66%;
  filter: drop-shadow(0 28px 38px rgba(29, 29, 31, 0.32));
  pointer-events: none;
  animation: pop-float 7s ease-in-out infinite;
}
@keyframes pop-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
/* Credencial glass sobre la foto */
.hero-photo-tag {
  position: absolute;
  z-index: 7;
  left: 14px; bottom: 14px;
  display: flex; flex-direction: column; gap: 1px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-chip);
}
.hero-photo-tag strong { font-size: 0.88rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; }
.hero-photo-tag em {
  font-style: normal;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--accent);
}
/* Marca de agua gigante al pie de la tarjeta (recortada por su propio marco) */
.hero-watermark {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: var(--r-big);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.hero-watermark span {
  position: absolute;
  bottom: clamp(-14px, -1vw, -6px);
  left: 0; right: 0;
  text-align: center;
  font-size: clamp(3rem, 8.5vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  white-space: nowrap;
  color: rgba(47, 125, 109, 0.09);
  line-height: 1;
}
.hero-ctas { display: flex; gap: 10px; flex-wrap: nowrap; align-items: center; }

/* Figuras glass flotantes del fondo (con parallax sutil vía JS) */
.hero-shapes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-chip);
  will-change: transform;
}
.shape-1 { width: 340px; height: 340px; top: 6%; left: -120px; }
.shape-2 { width: 220px; height: 220px; top: 16%; right: -60px; background: rgba(47, 125, 109, 0.05); }
.shape-3 { width: 140px; height: 140px; bottom: 24%; left: 10%; border-radius: 44px; transform: rotate(14deg); }
.shape-4 { width: 100px; height: 100px; top: 32%; right: 16%; border-radius: 36px; transform: rotate(-10deg); }

/* ---------- Render 3D del alineador (sobresale del hero) ---------- */
.aligner-stage {
  position: relative;
  z-index: 10;
  height: 300px;
  margin-top: clamp(30px, 5vw, 60px);
  margin-bottom: -230px; /* hace que el render invada la sección siguiente */
  perspective: 1100px;
  pointer-events: none;
}
.aligner-3d {
  position: absolute;
  left: 50%; top: 0;
  width: min(430px, 80vw);
  height: 280px;
  transform-style: preserve-3d;
  animation: aligner-spin 14s linear infinite;
  margin-left: calc(min(430px, 80vw) / -2);
}
@keyframes aligner-spin {
  from { transform: rotateX(14deg) rotateY(0deg); }
  to   { transform: rotateX(14deg) rotateY(360deg); }
}
.aligner-layer {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  backface-visibility: visible;
}
.aligner-layer svg { width: 100%; height: auto; overflow: visible; }

/* Sombra suave bajo el render */
.aligner-shadow {
  position: absolute;
  left: 50%; bottom: -10px;
  width: 300px; height: 46px;
  margin-left: -150px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(29, 29, 31, 0.18) 0%, transparent 68%);
  animation: shadow-breathe 7s ease-in-out infinite;
}
@keyframes shadow-breathe {
  0%, 100% { transform: scaleX(1); opacity: 0.9; }
  50% { transform: scaleX(0.86); opacity: 0.6; }
}

/* Si se usa un PNG/render real en vez del SVG generado */
.aligner-img {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.aligner-img img { max-height: 280px; filter: drop-shadow(0 30px 40px rgba(29, 29, 31, 0.2)); }

/* ---------- Franja de confianza ---------- */
.trust-band { padding-block: clamp(70px, 8vw, 100px); }
.trust-chips { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ---------- Bloque producto (imagen protagonista + texto) ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split.reverse > :last-child { order: 1; }

.feature-list { display: grid; gap: 18px; margin-top: 30px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-item .f-ico {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
}
.feature-item .f-ico svg { width: 19px; height: 19px; color: var(--accent); }
.feature-item h3 { margin-bottom: 4px; font-size: 1.05rem; }
.feature-item p { color: var(--ink-2); font-size: 0.95rem; }

/* ---------- Placeholders de imágenes ----------
   Las <img> apuntan al asset final; si el archivo aún no existe,
   el onerror las quita y se ve esta guía con el nombre esperado. */
.ph {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  min-height: 100%;
  background:
    radial-gradient(circle at 30% 20%, rgba(47, 125, 109, 0.07), transparent 60%),
    linear-gradient(150deg, #f0f0f3 0%, #e6e6ea 100%);
  color: var(--ink-2);
  text-align: center;
  padding: 24px;
}
.ph svg { width: 30px; height: 30px; color: var(--ink-3); }
.ph .ph-name { font-weight: 700; font-size: 0.85rem; color: var(--ink); font-family: ui-monospace, monospace; }
.ph .ph-dim { font-size: 0.75rem; letter-spacing: 0.06em; }
.ph-frame { position: relative; overflow: hidden; }
.ph-frame > img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.ph-frame > .ph { position: absolute; inset: 0; z-index: 1; }

/* ---------- Testimonios ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.stars { display: flex; gap: 3px; }
.stars svg { width: 16px; height: 16px; color: var(--accent); fill: var(--accent); }
.testimonial blockquote { font-size: 0.98rem; color: var(--ink); line-height: 1.6; flex-grow: 1; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), #dce8e4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: var(--accent);
  flex-shrink: 0;
}
.t-author strong { display: block; font-size: 0.92rem; letter-spacing: -0.01em; }
.t-author span { font-size: 0.8rem; color: var(--ink-2); }

/* ---------- Antes / Después (slider interactivo) ---------- */
.ba-slider {
  position: relative;
  /* Coincide con la proporción de las fotos clínicas para no recortarlas */
  aspect-ratio: 16 / 10;
  border-radius: calc(var(--r-big) - 8px);
  overflow: hidden;
  touch-action: none;
  cursor: ew-resize;
  user-select: none;
}
/* El z-index va en los PANES, no en las imágenes: clip-path crea un stacking
   context en .ba-after, así que un z-index en su <img> queda encerrado ahí y
   la imagen del "antes" terminaba pintándose encima de todo. */
.ba-pane { position: absolute; inset: 0; }
.ba-before { z-index: 1; }
.ba-after { z-index: 2; clip-path: inset(0 0 0 50%); }
.ba-pane img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-pane .ph { position: absolute; inset: 0; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 20px rgba(29, 29, 31, 0.3);
  z-index: 5;
}
.ba-handle::after {
  content: "";
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-chip);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%231d1d1f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5'/%3E%3Cpath d='m15 7 5 5-5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.ba-tag {
  position: absolute; bottom: 14px; z-index: 6;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink);
}
.ba-tag.before { left: 14px; }
.ba-tag.after { right: 14px; }

/* ---------- Formulario de contacto ---------- */
.contact-card { padding: 0; }  /* el relleno lo pone .cta-final .glass-card */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--ink-2); margin-bottom: 7px; letter-spacing: 0.02em;
}
.field input, .field textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  font: inherit; font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.3s var(--ease-fluid), box-shadow 0.3s var(--ease-fluid);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 125, 109, 0.1);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-ok {
  display: none;
  align-items: center; gap: 10px;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600; font-size: 0.95rem;
}
.form-ok.show { display: flex; }
.form-ok svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Pasos / proceso ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem;
}
.step-card h3 { font-size: 1.02rem; }
.step-card p { font-size: 0.9rem; color: var(--ink-2); }

/* ---------- Stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; }
.stat { padding: 34px 20px; }
.stat .n { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.stat .n em { font-style: normal; color: var(--accent); }
.stat p { color: var(--ink-2); font-size: 0.9rem; margin-top: 6px; }

/* ---------- Grids genéricos ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-pad { padding: 30px; }
.card-pad h3 { margin-bottom: 10px; }
.card-pad p { color: var(--ink-2); font-size: 0.95rem; }
.card-pad .c-ico {
  width: 46px; height: 46px; border-radius: 15px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-pad .c-ico svg { width: 21px; height: 21px; color: var(--accent); }

/* ---------- Resaltado sofisticado dentro del texto ----------
   Subrayado grueso y suave por detrás de la frase clave, en vez de negrita dura. */
.hl {
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(47, 125, 109, 0.18) 62%);
  padding: 0 1px;
}

/* Dato grande destacado (número + etiqueta) */
.figure-row { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 34px; }
.figure { display: flex; flex-direction: column; gap: 2px; }
.figure .fig-n {
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}
.figure .fig-n em { font-style: normal; color: var(--accent); }
.figure .fig-l { font-size: 0.84rem; color: var(--ink-2); letter-spacing: 0.01em; }

/* ---------- CTA principal de WhatsApp (el que debe ganar) ----------
   Verde de marca + icono de WhatsApp: se reconoce al instante y pesa
   visualmente mas que el boton secundario que lo acompaña. */
.btn-wa {
  background: var(--accent);
  color: #fff;
  padding: 16px 30px;
  font-size: 1.02rem;
  font-weight: 700;
  box-shadow: 0 14px 32px -12px rgba(47, 125, 109, 0.7);
}
.btn-wa:hover { box-shadow: 0 18px 42px -12px rgba(47, 125, 109, 0.85); }
.btn-wa .wa-ico { width: 22px; height: 22px; flex-shrink: 0; }

/* Boton secundario (Para tu clinica): presente pero claramente por debajo */
.btn-soft {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 20px;
}
.btn-soft:hover { background: rgba(29, 29, 31, 0.04); color: var(--ink); }

/* ---------- Botón flotante de WhatsApp (siempre visible) ----------
   Es el que convierte el tráfico de campañas: quien llega desde un anuncio
   siempre tiene el botón a mano, sin importar dónde vaya el scroll. */
.wa-float {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 14px 22px 14px 16px;
  border-radius: var(--r-pill);
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 14px 34px -10px rgba(37, 211, 102, 0.65), 0 4px 12px rgba(29, 29, 31, 0.18);
  transition: transform 0.3s var(--ease-fluid), box-shadow 0.3s var(--ease-fluid);
}
.wa-float svg { width: 24px; height: 24px; flex-shrink: 0; }
.wa-float:hover {
  transform: scale(1.05);
  box-shadow: 0 18px 44px -10px rgba(37, 211, 102, 0.75), 0 6px 16px rgba(29, 29, 31, 0.2);
}
.wa-float:active { transform: scale(0.97); }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Halo que late suave, para que el ojo lo encuentre sin ser molesto */
.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #25D366;
  z-index: -1;
  animation: wa-pulse 2.8s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: 0.5; }
  70%  { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

@media (max-width: 768px) {
  .wa-float { padding: 13px 18px 13px 14px; font-size: 0.9rem; gap: 9px; }
  .wa-float svg { width: 21px; height: 21px; }
}
/* En pantallas muy chicas queda solo el icono, para no tapar el contenido */
@media (max-width: 380px) {
  .wa-float { padding: 14px; gap: 0; }
  .wa-float .wa-txt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float::before { animation: none; }
}

/* ---------- Galería del laboratorio ---------- */
.lab-shot { margin: 0; }
.lab-shot figcaption {
  margin-top: 14px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* ---------- Testimonios en video (verticales 9:16) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  max-width: 760px;
  margin-inline: auto;
}
.video-card {
  position: relative;
  border-radius: var(--r-card);
  overflow: hidden;
  background: #000;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-fluid), box-shadow 0.4s var(--ease-fluid);
}
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); }
.video-card video {
  width: 100%;
  display: block;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #000;
}
.video-caption {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.video-caption strong { display: block; color: var(--ink); font-size: 0.98rem; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Cita destacada (marca personal) ---------- */
.quote-mark {
  position: relative;
  margin-top: 28px;
  padding: 24px 28px 24px 30px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 20px 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.quote-mark cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Planes / Precios ---------- */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.plan-card { padding: 36px 32px; display: flex; flex-direction: column; position: relative; }
.plan-card.featured { box-shadow: 0 0 0 2px var(--accent) inset, var(--shadow-soft); }
.plan-badge {
  position: absolute; top: -14px; left: 32px;
  background: var(--accent); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 16px; border-radius: var(--r-pill);
}
.plan-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.plan-card h3 { font-size: 1.5rem; margin-bottom: 16px; }
.plan-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.plan-price .amt { font-size: clamp(1.9rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -0.02em; }
.plan-note { color: var(--ink-2); font-size: 0.85rem; margin-bottom: 22px; }
.plan-card > :last-child { margin-bottom: 0; }
.plan-features { display: grid; gap: 12px; margin-bottom: 26px; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--ink); }
.plan-features svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.pay-options { display: grid; gap: 10px; margin: 4px 0 20px; }
.pay-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(29, 29, 31, 0.035); font-size: 0.85rem; }
.pay-option svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; margin-top: auto; }
.pay-table th, .pay-table td { padding: 9px 4px; text-align: left; border-bottom: 1px solid var(--border); color: var(--ink-2); }
.pay-table th { font-weight: 700; color: var(--ink); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.pay-table td:last-child, .pay-table th:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.plan-foot-note { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: var(--ink-2); }
.plan-foot-note svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }

/* ---------- CTA final ---------- */
.cta-final { text-align: center; }
.cta-final .glass-card { padding: clamp(50px, 7vw, 90px) clamp(24px, 5vw, 60px); }
.cta-final h2 { margin-bottom: 16px; }
.cta-final .lead { max-width: 560px; margin-inline: auto; margin-bottom: 34px; }

/* ---------- Página interior: cabecera ---------- */
.page-hero {
  padding-top: calc(var(--nav-h) + clamp(60px, 9vw, 110px));
  padding-bottom: clamp(60px, 8vw, 90px);
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 18px; }
.page-hero .lead { max-width: 640px; margin-inline: auto; }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-alt);
  padding: clamp(60px, 8vw, 90px) 0 40px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand img { height: 68px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--ink-2); font-size: 0.92rem; max-width: 300px; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--ink-2); font-size: 0.92rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--ink); }
.footer-col li { color: var(--ink-2); font-size: 0.92rem; display: flex; align-items: center; gap: 9px; }
.footer-col li svg { width: 15px; height: 15px; color: var(--ink-3); flex-shrink: 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.82rem; color: var(--ink-3); }
.socials { display: flex; gap: 10px; }
.socials a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease-fluid), box-shadow 0.3s var(--ease-fluid);
}
.socials a:hover { transform: scale(1.08); box-shadow: var(--shadow-chip); }
.socials svg { width: 16px; height: 16px; color: var(--ink-2); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease-fluid), transform 0.9s var(--ease-fluid), filter 0.9s var(--ease-fluid);
  transition-delay: var(--d, 0s);
  will-change: transform, opacity;
}
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ---------- Accesibilidad: menos movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-pop { animation: none; transform: translate(-50%, -50%) !important; }
  .reveal { transition: opacity 0.3s ease; transform: none; filter: none; }
  .btn:hover, .glass-card:hover, .socials a:hover { transform: none; }
  .shape { transform: none !important; }
}

/* ---------- Responsive ---------- */

/* Grupo de botones (CTAs) */
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== Tablet grande ===== */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ===== El hero de 3 columnas se apila antes que el resto ===== */
@media (max-width: 900px) {
  .hero-frame { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-left { order: 1; }
  .hero-photo { order: 2; max-width: 320px; margin-inline: auto; }
  .hero-right { order: 3; justify-self: center; text-align: center; }
  .hero-left p, .hero-right h2 { margin-inline: auto; }
  .hero-left h1 { font-size: clamp(2rem, 6.4vw, 2.8rem); }
  .hero-right h2 { font-size: clamp(1.35rem, 4.4vw, 1.9rem); margin-bottom: 20px; }
  .hero-ctas { justify-content: center; }
  .hero-card { padding-bottom: clamp(36px, 7vw, 60px); }
}

/* ===== Celular ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .nav-logo img { height: 38px; }

  /* Menos aire vertical: en celular 90px arriba y abajo es puro scroll vacío */
  section { padding-block: clamp(48px, 10vw, 72px); }
  .section-head { margin-bottom: 34px; }

  /* Los saltos de línea manuales de los títulos estorban en pantalla angosta */
  h1 br, h2 br { display: none; }

  .container, .container-narrow { width: 90vw; }

  .split, .split.reverse { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse > :first-child { order: 1; }
  .split.reverse > :last-child { order: 2; }

  .testimonial-grid, .grid-2, .grid-3, .stats-row, .steps-grid { grid-template-columns: 1fr; }

  /* Datos cortos (100% / 3D / 100%): caben en una fila y ahorran scroll */
  .stats-row.stats-compact { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .stats-compact .stat { padding: 20px 8px; }
  .stats-compact .stat .n { font-size: 1.5rem; }
  .stats-compact .stat p { font-size: 0.72rem; line-height: 1.35; margin-top: 4px; }

  /* Los videos pasan a carrusel deslizable, como en redes:
     ocupan una sola pantalla y el segundo se asoma para invitar a deslizar. */
  .video-grid {
    display: flex;
    grid-template-columns: none;
    max-width: none;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 10px;
    scrollbar-width: none;
  }
  .video-grid::-webkit-scrollbar { display: none; }
  .video-grid > * { flex: 0 0 76%; scroll-snap-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-brand p { max-width: none; }

  /* Hero: la foto de la Dra. manda, sin que el alineador se salga de pantalla */
  .hero-frame { padding-inline: 10px; }
  .hero-shell { padding: 6px; }
  .hero-card { padding-inline: clamp(18px, 5vw, 30px); }
  /* En celular el alineador deja de estar encima de la foto y se presenta
     aparte, debajo, como el producto. */
  .hero-photo {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }
  .hero-photo-frame { width: 272px; max-width: 82%; max-height: none; }
  .hero-photo-aligner {
    position: static;
    width: 300px;
    max-width: 92%;
    right: auto; bottom: auto;
    filter: drop-shadow(0 20px 26px rgba(29, 29, 31, 0.28));
  }
  .hero-photo-tag { left: 10px; bottom: 10px; padding: 9px 14px; }
  .hero-photo-tag strong { font-size: 0.8rem; }
  .hero-photo-tag em { font-size: 0.62rem; }

  /* La marca de agua se corta feo en pantalla angosta */
  .hero-watermark { display: none; }

  /* Botones: a lo ancho, para que sean fáciles de tocar */
  /* Los CTA van juntos en una fila; solo se apilan si de verdad no caben */
  .btn-row, .hero-ctas { flex-direction: row; justify-content: center; align-items: center; gap: 10px; }
  .btn-row .btn, .hero-ctas .btn { justify-content: center; }
  .btn-wa { padding: 15px 22px; font-size: 0.95rem; }
  .btn-soft { padding: 12px 16px; font-size: 0.86rem; }

  /* Tarjetas: menos relleno para ganar ancho de texto */
  .card-pad { padding: 24px 22px; }
  .step-card { padding: 24px 22px; }
  .plan-card { padding: 30px 22px; }
  .plan-badge { left: 22px; }
  .cta-final .glass-card { padding: 44px 24px; }

  /* Datos grandes y cita destacada */
  .figure-row { gap: 22px 28px; margin-top: 26px; }
  .quote-mark { padding: 20px 20px 20px 22px; font-size: 1rem; margin-top: 24px; }

  .plan-foot-note { text-align: left; align-items: flex-start; }
  .plan-foot-note svg { margin-top: 2px; }
  .pay-option { align-items: flex-start; line-height: 1.4; }
  .pay-option svg { margin-top: 2px; }

  /* Comparador antes/después: más alto para que se aprecie en pantalla angosta */
  .ba-slider { aspect-ratio: 4 / 3; }
  .ba-tag { font-size: 0.64rem; padding: 6px 12px; }
}

/* ===== Celular chico (iPhone SE, 375px y menos) =====
   Ojo: 390px es un iPhone estándar, NO entra aquí. */
@media (max-width: 380px) {
  .container, .container-narrow { width: 92vw; }
  .hero-photo { max-width: 268px; }
  .eyebrow { font-size: 0.62rem; letter-spacing: 0.14em; padding: 5px 12px; }
  .btn { padding: 13px 22px; font-size: 0.94rem; }
  .mobile-menu a { font-size: 1.45rem; }
  .plan-price .amt { font-size: 1.8rem; }
  .card-pad, .step-card, .plan-card { padding: 22px 18px; }
  .cta-final .glass-card { padding: 38px 20px; }
}
