

/* ====== Bloque 
/* ==========================================================
   TOKENS
   ========================================================== */
:root {
  /* CORPORATE TEAL, medido en sede del Dr. */
  --teal: oklch(0.58 0.10 187);
  --teal-deep: oklch(0.42 0.08 185);
  --teal-rich: oklch(0.51 0.09 187);
  --teal-soft: oklch(0.92 0.030 187);
  --teal-wash: oklch(0.97 0.015 187);

  /* WARM NEUTRALS, extraídos de paredes y suelos de la clínica */
  --paper: oklch(0.985 0.005 80);
  --paper-warm: oklch(0.96 0.012 75);
  --paper-deep: oklch(0.92 0.015 75);
  --beige: oklch(0.78 0.020 70);
  --beige-deep: oklch(0.62 0.020 65);

  /* INK, casi-negro con tinte teal sutil */
  --ink: oklch(0.20 0.025 200);
  --ink-soft: oklch(0.38 0.020 200);
  --ink-muted: oklch(0.55 0.015 200);
  --ink-faint: oklch(0.72 0.010 200);

  --rule: oklch(0.88 0.012 75);
  --rule-soft: oklch(0.94 0.008 75);

  /* SHADOWS, sutiles, tinte teal */
  --shadow-card: 0 1px 2px oklch(0.42 0.08 185 / 0.06), 0 8px 24px oklch(0.42 0.08 185 / 0.06);
  --shadow-deep: 0 1px 4px oklch(0.20 0.05 200 / 0.08), 0 24px 60px oklch(0.20 0.05 200 / 0.10);

  /* TYPE */
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, sans-serif;

  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: 1rem;
  --t-md: 1.125rem;
  --t-lg: 1.375rem;
  --t-xl: 1.875rem;
  --t-2xl: 2.5rem;
  --t-3xl: 3.5rem;
  --t-display: 6rem;

  /* SPACE */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 1rem; --s-4: 1.5rem;
  --s-5: 2rem; --s-6: 3rem; --s-7: 5rem; --s-8: 7rem; --s-9: 10rem;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 1320px;

  /* MOTION */
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.2, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.015em; color: var(--ink); margin: 0; }

p { margin: 0; }

a { color: inherit; text-decoration: none; transition: color 200ms var(--ease-quart); }

button { font: inherit; cursor: pointer; border: 0; background: 0; }

::selection { background: var(--teal); color: var(--paper); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  padding: var(--s-3);
  background: var(--teal-deep);
  color: var(--paper);
  z-index: 1000;
}
.skip:focus { left: var(--s-3); top: var(--s-3); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
}

/* ==========================================================
   LOGO COMPONENT — imagen oficial del cliente
   ========================================================== */
.logo {
  display: inline-flex;
  align-items: center;
  color: currentColor;
  flex-shrink: 0;
  line-height: 0;
}
.logo .brand-mark {
  width: 220px;
  height: auto;
  display: block;
}
.logo--sm .brand-mark { width: 175px; }
.logo--lg .brand-mark { width: 280px; }
.logo--xl .brand-mark { width: 360px; }
@media (max-width: 720px) {
  .logo .brand-mark { width: 150px; }
}
/* En el footer oscuro: aclaramos el logo manteniendo el matiz teal */
.brand-mark--invert {
  filter: brightness(1.45) hue-rotate(-5deg) saturate(0.7);
  opacity: 0.92;
}
/* Hide legacy fragments */
.logo-cube, .logo-text { display: none !important; }

/* ==========================================================
   NAV, sticky pill flotante estilo premium
   ========================================================== */
header.nav {
  position: fixed;
  top: var(--s-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 2rem);
  max-width: var(--max);
  pointer-events: none;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 0.6rem 0.6rem 0.6rem 1.4rem;
  background: oklch(0.985 0.005 80 / 0.78);
  backdrop-filter: saturate(150%) blur(20px);
  -webkit-backdrop-filter: saturate(150%) blur(20px);
  border: 1px solid var(--rule);
  border-radius: 999px;
  pointer-events: auto;
  box-shadow: var(--shadow-card);
}

header.nav .logo { color: var(--teal-deep); }
header.nav .logo .brand-mark { width: 175px; }

nav.primary {
  display: flex;
  gap: var(--s-5);
  align-items: center;
  font-size: var(--t-sm);
}
nav.primary a {
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
}
nav.primary a:hover { color: var(--teal-deep); }
nav.primary a.cta-pill { color: #FFFFFF; }
nav.primary a.cta-pill:hover { color: #FFFFFF; }

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  background: var(--teal-deep);
  color: #FFFFFF;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 220ms var(--ease-quart), transform 240ms var(--ease-expo);
}
.cta-pill:hover { background: var(--teal); color: #FFFFFF; transform: translateY(-1px); }
.cta-pill svg { width: 14px; height: 14px; transition: transform 280ms var(--ease-expo); stroke: #FFFFFF; }
.cta-pill:hover svg { transform: translate(2px, -2px); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--teal-deep);
  border-radius: 999px;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 880px) {
  nav.primary { display: none; }
  .nav-toggle { display: flex; }
  nav.primary.open {
    display: flex;
    position: fixed;
    top: 90px;
    left: var(--s-3);
    right: var(--s-3);
    flex-direction: column;
    gap: 0;
    padding: var(--s-4);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 22px;
    box-shadow: var(--shadow-deep);
  }
  nav.primary.open a {
    padding: var(--s-3) 0;
    border-bottom: 1px solid var(--rule-soft);
  }
  nav.primary.open a:last-child { border-bottom: 0; }
  nav.primary.open .cta-pill { margin-top: var(--s-3); justify-self: stretch; justify-content: center; }
}

/* ==========================================================
   HERO
   Estilo Celestia, gigantesca tipografía, render orgánico al lado
   Drenched teal-wash background, NO white-and-teal
   ========================================================== */
section.hero {
  position: relative;
  background: linear-gradient(180deg, var(--paper-warm) 0%, var(--paper) 100%);
}

/* Scroll runway: 180vh — animación rápida, se completa con poco scroll */
.hero-scroll-runway {
  position: relative;
  min-height: 180vh;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding-block: 9rem 4rem;
  z-index: 2;
}

/* Mobile: sin scroll-scrub, layout normal, mandíbula estática (primer frame) */
@media (max-width: 880px) {
  .hero-scroll-runway { min-height: auto; }
  .hero-grid {
    position: relative;
    min-height: auto;
    padding-block: 6rem var(--s-6);
  }
}
@media (min-width: 1080px) {
  .hero-grid { grid-template-columns: 5fr 7fr; gap: var(--s-7); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: var(--s-4);
  color: var(--teal-deep);
}
.hero-eyebrow::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal-deep);
}

h1.hero-title {
  font-size: clamp(2.75rem, 7vw, var(--t-display));
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: var(--s-5);
}
h1.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
}

.hero-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: var(--s-5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-5);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.05rem 1.75rem;
  background: var(--teal-deep);
  color: #FFFFFF;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: background 220ms var(--ease-quart), transform 280ms var(--ease-expo), box-shadow 280ms var(--ease-quart);
  box-shadow: 0 6px 20px oklch(0.42 0.08 185 / 0.18);
}
.btn-primary:hover {
  background: var(--teal);
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 10px 30px oklch(0.42 0.08 185 / 0.28);
}
.btn-primary svg { width: 14px; height: 14px; transition: transform 280ms var(--ease-expo); stroke: #FFFFFF; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  color: var(--ink);
  font-size: var(--t-sm);
  font-weight: 500;
  border-bottom: 1px solid var(--ink-faint);
  transition: border-color 220ms, color 220ms;
}
.btn-ghost:hover { color: var(--teal-deep); border-color: var(--teal-deep); }

/* Hero "render" — Imagen 3D real con animaciones CSS */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 960px;
  justify-self: center;
  cursor: grab;
  perspective: 1200px;
}
.hero-art:active { cursor: grabbing; }

/* Wrapper sin animación idle (el scroll mueve el vídeo, no necesita idle float) */
.hero-art .tooth-wrap {
  position: relative;
  width: 95%;
  height: 95%;
  display: grid;
  place-items: center;
  z-index: 2;
}

/* Halo orgánico bajo la mandíbula (sustituye al drop-shadow rectangular) */
.hero-art .tooth-wrap {
  --halo-opacity: 1;
}
.hero-art .tooth-wrap::before {
  content: "";
  position: absolute;
  inset: 12% 14% 8% 14%;
  background: radial-gradient(ellipse at 50% 60%,
    oklch(0.42 0.08 185 / 0.22) 0%,
    oklch(0.42 0.08 185 / 0.10) 35%,
    transparent 70%);
  filter: blur(28px);
  opacity: var(--halo-opacity);
  transition: opacity 80ms linear;
  z-index: -1;
  pointer-events: none;
}

/* La secuencia de frames respeta la transición suave en el swap */
.hero-art .tooth-render {
  transition: opacity 80ms linear;
}

/* La mandíbula (canvas — drawImage atómico, sin flash entre frames).
   Width 100% + height auto mantiene el aspect ratio nativo del canvas (718:754),
   que coincide con el aspect-ratio del .hero-art (1/1.05). Cero distorsión. */
.hero-art .tooth-render {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .hero-art .tooth-render { transform: none; }
}

.hero-art .halo {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, oklch(0.85 0.05 187 / 0.6) 0%, transparent 60%),
    radial-gradient(circle at 70% 75%, oklch(0.95 0.025 80 / 0.5) 0%, transparent 55%);
  filter: blur(20px);
  z-index: 1;
}

.hero-3d-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--teal-deep);
  opacity: 0;
  transition: opacity 600ms var(--ease-quart);
  pointer-events: none;
  background: oklch(0.985 0.005 80 / 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--rule);
  z-index: 3;
}
.hero-art:hover .hero-3d-hint { opacity: 1; }

.hero-meta {
  position: absolute;
  bottom: var(--s-5);
  right: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-deep);
  font-weight: 500;
  z-index: 3;
}
.hero-meta::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: var(--teal-deep);
}

@media (max-width: 880px) {
  .hero-meta { display: none; }
  section.hero { padding-block: 8rem var(--s-6); }
}

/* ==========================================================
   ABOUT — stats integrados en prosa, no como template
   ========================================================== */
section.about {
  padding-block: var(--s-8);
  background: var(--paper);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: start;
}
@media (min-width: 880px) {
  .about-grid { grid-template-columns: 5fr 7fr; gap: var(--s-7); }
}

.about-image {
  position: relative;
  aspect-ratio: 1 / 1.1;
  background: linear-gradient(160deg, var(--paper-warm), var(--teal-soft));
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.about-image::after {
  content: "EQUIPO · CLÍNICA MARÍA DE MOLINA 56";
  position: absolute;
  bottom: var(--s-3);
  left: var(--s-3);
  padding: 0.4rem 0.8rem;
  background: oklch(0.985 0.005 80 / 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  font-weight: 500;
  color: var(--teal-deep);
}
.about-image svg {
  width: 50%;
  color: var(--teal);
  opacity: 0.4;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, var(--t-3xl));
  font-weight: 400;
  margin-bottom: var(--s-5);
}
.about-text h2 em {
  font-style: italic;
  color: var(--teal-deep);
}

.about-text p.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-bottom: var(--s-5);
}
.about-text p.body {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: var(--s-5);
}

/* Stats integradas, NO el cuadrante 4-up */
.about-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5) var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  margin-top: var(--s-5);
}
@media (min-width: 720px) { .about-numbers { grid-template-columns: repeat(4, 1fr); } }

.num {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.num .v {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  color: var(--teal-deep);
  letter-spacing: -0.02em;
}
.num .v em { font-style: italic; }
.num .l {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ==========================================================
   SERVICES — 1 destacado + lista editorial (rompe identical card grid)
   ========================================================== */
section.services {
  padding-block: var(--s-8);
  background: var(--paper-warm);
}

.section-head {
  display: grid;
  gap: var(--s-3);
  max-width: 720px;
  margin-bottom: var(--s-7);
}
.section-head h2 {
  font-size: clamp(2rem, 4.2vw, var(--t-3xl));
  font-weight: 400;
}
.section-head h2 em { font-style: italic; color: var(--teal-deep); }
.section-head p {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--t-lg);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 56ch;
}

.services-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 880px) {
  .services-layout {
    grid-template-columns: 7fr 5fr;
    gap: var(--s-5);
  }
}

/* Feature: Implantes Straumann */
.service-feature {
  position: relative;
  background: var(--teal-deep);
  color: var(--paper);
  border-radius: 28px;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
}
.service-feature::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse at 80% 110%, oklch(0.55 0.10 187 / 0.7) 0%, transparent 60%),
    radial-gradient(ellipse at 10% -10%, oklch(0.32 0.07 185 / 0.5) 0%, transparent 55%);
  z-index: -1;
}

.service-feature .num-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-warm);
  margin-bottom: var(--s-5);
}
.service-feature .num-tag::before {
  content: "01";
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0;
  color: var(--paper-warm);
}

.service-feature h3 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400;
  color: var(--paper);
  margin-bottom: var(--s-4);
}
.service-feature h3 em {
  font-style: italic;
  color: var(--paper-warm);
}

.service-feature p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: oklch(0.92 0.025 75);
  max-width: 42ch;
  margin-bottom: var(--s-5);
}

.feature-render {
  position: absolute;
  bottom: -10%;
  right: -8%;
  width: 50%;
  pointer-events: none;
  opacity: 0.85;
}
.feature-render svg { width: 100%; height: 100%; filter: drop-shadow(0 20px 40px oklch(0.20 0.05 200 / 0.4)); }

.service-feature .brand-credential {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid oklch(0.92 0.025 75 / 0.3);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-warm);
  align-self: flex-start;
  margin-bottom: var(--s-3);
}

.service-feature .arrow-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--paper);
  border-bottom: 1px solid oklch(0.92 0.025 75 / 0.3);
  align-self: flex-start;
  padding-bottom: 0.4rem;
  transition: border-color 220ms var(--ease-quart);
}
.service-feature .arrow-cta:hover { border-color: var(--paper-warm); color: var(--paper-warm); }
.service-feature .arrow-cta svg { width: 12px; height: 12px; transition: transform 280ms var(--ease-expo); }
.service-feature .arrow-cta:hover svg { transform: translate(2px, -2px); }

/* Other services — lista editorial */
.service-list {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--rule);
}

.service-row {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-4);
  border-bottom: 1px solid var(--rule-soft);
  cursor: pointer;
  transition: background 240ms var(--ease-quart);
}
.service-row:last-child { border-bottom: 0; }
.service-row:hover { background: var(--teal-wash); }
.service-row:hover .service-arrow { transform: translateX(4px); color: var(--teal-deep); }
.service-row:hover .service-name { color: var(--teal-deep); }

.service-row .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-faint);
}
.service-row .num em {}

.service-name {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  transition: color 220ms;
}
.service-name span.tag {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 2px 8px;
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--teal-soft);
  border-radius: 999px;
  vertical-align: middle;
}

.service-arrow {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink-muted);
  transition: transform 280ms var(--ease-expo), color 220ms, border-color 220ms;
}
.service-row:hover .service-arrow { border-color: var(--teal-deep); }
.service-arrow svg { width: 14px; height: 14px; }

/* ==========================================================
   TEAM — 3 cards estilo Celestia "Meet the minds"
   ========================================================== */
section.team {
  padding-block: var(--s-8);
  background: var(--paper);
}

.team-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  align-items: end;
  margin-bottom: var(--s-7);
}
@media (min-width: 880px) {
  .team-head { grid-template-columns: 7fr 5fr; gap: var(--s-7); }
}

.team-head h2 {
  font-size: clamp(2rem, 4.2vw, var(--t-3xl));
  font-weight: 400;
}
.team-head h2 em { font-style: italic; color: var(--teal-deep); }
.team-head .badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--s-3);
}
.team-head .badge-row .stack {
  display: flex;
  margin-right: 0.5rem;
}
.team-head .badge-row .pic {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--paper-warm), var(--teal-soft));
  border: 2px solid var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--teal-deep);
  margin-left: -10px;
}
.team-head .badge-row .pic:first-child { margin-left: 0; }
.team-head .badge-row .more {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.team-head p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }

.doctor-card {
  position: relative;
  background: linear-gradient(170deg, var(--teal-soft) 0%, oklch(0.82 0.04 187) 100%);
  border-radius: 28px;
  padding: var(--s-5);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  transition: transform 480ms var(--ease-expo), box-shadow 480ms var(--ease-quart);
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
}

.doctor-card .specialty-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 0.4rem 0.8rem;
  background: oklch(0.985 0.005 80 / 0.85);
  border: 1px solid oklch(0.985 0.005 80 / 0.6);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--teal-deep);
  letter-spacing: 0.05em;
  margin-bottom: var(--s-3);
}

.doctor-photo {
  flex: 1;
  min-height: 280px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, oklch(0.95 0.020 80) 0%, oklch(0.88 0.030 187) 100%);
  border-radius: 18px;
  margin-bottom: var(--s-3);
  position: relative;
  overflow: hidden;
}
.doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 700ms var(--ease-expo);
}
.doctor-card:hover .doctor-photo img { transform: scale(1.03); }
.doctor-photo .silhouette {
  font-family: var(--serif);
  font-style: italic;
  font-size: 5rem;
  color: oklch(0.45 0.08 187 / 0.20);
  font-weight: 400;
  letter-spacing: -0.03em;
}
.doctor-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 70%, oklch(0.42 0.08 185 / 0.15) 100%);
  pointer-events: none;
}

.doctor-card h3 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.3rem;
  line-height: 1.15;
}
.doctor-card .role {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.doctor-card .since {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--teal-deep);
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid oklch(0.985 0.005 80 / 0.5);
}

/* ==========================================================
   HERITAGE — diferencial, único vs Celestia
   ========================================================== */
section.heritage {
  padding-block: var(--s-8);
  background: var(--paper-warm);
  text-align: center;
}

.heritage-mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(4rem, 6vw, 7rem);
  line-height: 0.3;
  color: var(--teal);
  opacity: 0.5;
  margin-bottom: var(--s-3);
}

.heritage-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.25;
  color: var(--teal-deep);
  letter-spacing: -0.015em;
  max-width: 26ch;
  margin: 0 auto var(--s-5);
}

.heritage-attr {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.heritage-attr strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--teal-deep);
  font-weight: 400;
  margin-top: 0.4rem;
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
  padding-top: var(--s-7);
  border-top: 1px solid var(--rule);
  text-align: left;
}
@media (max-width: 720px) { .timeline-track { grid-template-columns: 1fr; } }

.gen {
  position: relative;
  padding-top: var(--s-3);
}
.gen .year {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--teal-deep);
  margin-bottom: var(--s-2);
  line-height: 1;
}
.gen .who {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: var(--s-2);
}
.gen p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ==========================================================
   CALCULATOR — interactivo, simplificado
   ========================================================== */
section.calc {
  padding-block: var(--s-8);
  background: linear-gradient(180deg, var(--paper) 0%, var(--teal-wash) 100%);
}

.calc-shell {
  background: var(--paper);
  border-radius: 32px;
  padding: var(--s-6);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--rule);
}
@media (min-width: 880px) { .calc-shell { padding: var(--s-7); } }

.calc-head {
  text-align: center;
  margin-bottom: var(--s-6);
}
.calc-head .eyebrow { margin-bottom: var(--s-3); display: block; }
.calc-head h2 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 400;
  margin-bottom: var(--s-3);
}
.calc-head h2 em { font-style: italic; color: var(--teal-deep); }
.calc-head p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 auto;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 880px) { .calc-grid { grid-template-columns: 1fr 1.4fr 1fr; } }

.calc-panel {
  background: var(--paper-warm);
  border-radius: 22px;
  padding: var(--s-5);
}
.calc-panel.center { background: var(--teal-deep); color: var(--paper); }

.calc-panel h4 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: var(--s-3);
}
.calc-panel.center h4 { color: var(--paper-warm); }

.calc-options {
  display: grid;
  gap: 0.6rem;
  margin-bottom: var(--s-4);
}
.calc-option {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  background: var(--paper);
  border-radius: 999px;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid var(--rule);
  transition: background 220ms, border-color 220ms;
}
.calc-option:hover { border-color: var(--teal-deep); }
.calc-option .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-faint);
  position: relative;
  transition: border-color 220ms;
}
.calc-option .dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--teal-deep);
  transform: scale(0);
  transition: transform 220ms var(--ease-expo);
}
.calc-option.active { border-color: var(--teal-deep); background: var(--teal-wash); }
.calc-option.active .dot { border-color: var(--teal-deep); }
.calc-option.active .dot::after { transform: scale(1); }

.method-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.method-pill {
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  cursor: pointer;
  transition: all 220ms var(--ease-quart);
}
.method-pill.active { background: var(--teal-deep); color: var(--paper); border-color: var(--teal-deep); }

.calc-render {
  aspect-ratio: 1 / 1;
  background: linear-gradient(160deg, var(--teal-rich), var(--teal-deep));
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin-bottom: var(--s-3);
  overflow: hidden;
  position: relative;
}
.calc-render svg { width: 70%; opacity: 0.9; filter: drop-shadow(0 10px 24px oklch(0.20 0.05 200 / 0.4)); }
.calc-render::after {
  content: "360°";
  position: absolute;
  bottom: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--paper-warm);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
}

.result-stat {
  background: var(--teal-rich);
  border-radius: 14px;
  padding: var(--s-3);
  margin-bottom: var(--s-2);
}
.result-stat .key {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--paper-warm);
  margin-bottom: 4px;
}
.result-stat .val {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--paper);
  line-height: 1.1;
}
.result-stat .val em { font-style: italic; }
.result-stat .val small { font-size: 0.72rem; opacity: 0.7; font-family: var(--sans); font-weight: 400; }

.cost-bar {
  height: 6px;
  background: oklch(0.55 0.10 187 / 0.4);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.7rem;
}
.cost-bar > span {
  display: block;
  height: 100%;
  width: 38%;
  background: var(--paper-warm);
  border-radius: 999px;
}

.disclaimer {
  font-size: 0.7rem;
  color: var(--ink-muted);
  text-align: center;
  margin-top: var(--s-3);
}
.calc-panel.center .disclaimer { color: oklch(0.78 0.025 75); }

/* ==========================================================
   LOCATIONS — split layout
   ========================================================== */
section.locations {
  padding-block: var(--s-8);
  background: var(--paper);
}

.loc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
}
@media (min-width: 880px) { .loc-grid { grid-template-columns: 1.3fr 1fr; gap: var(--s-5); } }

.location {
  position: relative;
  border-radius: 28px;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 420px;
  overflow: hidden;
  isolation: isolate;
}
.location.primary {
  background: var(--teal-deep);
  color: var(--paper);
}
.location.primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 100% 0%, oklch(0.55 0.10 187 / 0.6), transparent 60%);
  z-index: -1;
}
.location.secondary {
  background: var(--paper-warm);
  color: var(--ink);
  border: 1px solid var(--rule);
}

.loc-eyebrow {
  font-size: var(--t-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--paper-warm);
}
.location.secondary .loc-eyebrow { color: var(--teal-deep); }

.location h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.15;
  color: inherit;
}

.loc-info {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.55;
  color: oklch(0.92 0.025 75);
  max-width: 42ch;
}
.location.secondary .loc-info { color: var(--ink-soft); }

.loc-tel {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--paper-warm);
  border-bottom: 1px solid oklch(0.92 0.025 75 / 0.3);
  padding-bottom: 0.5rem;
  align-self: flex-start;
  transition: border-color 220ms;
}
.loc-tel:hover { border-color: var(--paper-warm); color: var(--paper); }
.location.secondary .loc-tel { color: var(--teal-deep); border-color: var(--rule); }

.loc-meta {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.5rem var(--s-3);
  margin-top: auto;
  padding-top: var(--s-4);
  border-top: 1px solid oklch(0.92 0.025 75 / 0.25);
  font-size: 0.85rem;
}
.location.secondary .loc-meta { border-color: var(--rule); }
.loc-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: oklch(0.78 0.025 75);
}
.location.secondary .loc-meta dt { color: var(--ink-muted); }
.loc-meta dd { margin: 0; }

/* ==========================================================
   FAQ
   ========================================================== */
section.faq {
  padding-block: var(--s-8);
  background: var(--paper-warm);
}

.faq-shell {
  max-width: 880px;
  margin: 0 auto;
}

.faq-head {
  text-align: center;
  margin-bottom: var(--s-6);
}
.faq-head h2 {
  font-size: clamp(2rem, 4vw, var(--t-3xl));
  font-weight: 400;
}
.faq-head h2 em { font-style: italic; color: var(--teal-deep); }

details.q {
  border-bottom: 1px solid var(--rule);
  padding: var(--s-4) 0;
}
details.q:first-child { border-top: 1px solid var(--rule); }

details.q summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
  transition: color 220ms;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary:hover { color: var(--teal-deep); }

details.q .ico {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-muted);
  transition: transform 360ms var(--ease-expo), border-color 220ms, color 220ms;
}
details.q[open] .ico { transform: rotate(45deg); border-color: var(--teal-deep); color: var(--teal-deep); }

details.q .answer {
  padding: var(--s-3) 0 var(--s-1) 0;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ==========================================================
   CITA / CONTACTO
   ========================================================== */
section.cita {
  padding-block: var(--s-8);
  background: var(--paper);
}

.cita-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: start;
}
@media (min-width: 880px) { .cita-grid { grid-template-columns: 5fr 7fr; } }

.cita-side h2 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 400;
  margin-bottom: var(--s-4);
  line-height: 1.05;
}
.cita-side h2 em { font-style: italic; color: var(--teal-deep); }
.cita-side .lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: var(--s-5);
}

.direct-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.direct-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0.75rem 0;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  transition: color 220ms;
}
.direct-list a:hover { color: var(--teal-deep); }
.direct-list a strong {}
.direct-list a small {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

form.cita-form {
  background: var(--paper-warm);
  border: 1px solid var(--rule);
  border-radius: 32px;
  padding: clamp(var(--s-5), 4vw, var(--s-6));
  display: grid;
  gap: var(--s-4);
  position: relative;
  overflow: hidden;
}

form.cita-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 600px) { form.cita-form .row { grid-template-columns: 1fr; } }

form.cita-form label {
  display: grid;
  gap: 0.4rem;
}
form.cita-form .lbl {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
form.cita-form input,
form.cita-form select,
form.cita-form textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: 999px;
  color: var(--ink);
  outline: none;
  transition: border-color 220ms, background 220ms;
}
form.cita-form textarea {
  border-radius: 22px;
  min-height: 110px;
  resize: vertical;
  font-family: inherit;
}
form.cita-form input:focus,
form.cita-form select:focus,
form.cita-form textarea:focus {
  border-color: var(--teal-deep);
  background: var(--paper);
}

form.cita-form button[type="submit"] {
  justify-self: start;
  margin-top: var(--s-2);
  padding: 1.05rem 1.75rem;
  background: var(--teal-deep);
  color: #FFFFFF;
  font-size: var(--t-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 220ms, transform 280ms var(--ease-expo);
}
form.cita-form button[type="submit"]:hover {
  background: var(--teal);
  color: #FFFFFF;
  transform: translateY(-1px);
}
form.cita-form button[type="submit"] svg { width: 14px; height: 14px; transition: transform 280ms var(--ease-expo); stroke: #FFFFFF; }
form.cita-form button[type="submit"]:hover svg { transform: translate(2px, -2px); }

form.cita-form .legal {
  font-size: 0.78rem;
  color: var(--ink-muted);
  line-height: 1.55;
}
form.cita-form .legal a { color: var(--teal-deep); border-bottom: 1px solid var(--rule); }

/* Custom checkbox de privacidad */
.form-check {
  display: flex !important;
  align-items: flex-start;
  gap: 0.7rem;
  cursor: pointer;
  padding: var(--s-2) 0;
  user-select: none;
}
.form-check input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.form-check .check-box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  display: grid;
  place-items: center;
  transition: all 220ms var(--ease-quart);
  margin-top: 1px;
}
.form-check .check-box::after {
  content: "";
  width: 12px;
  height: 8px;
  border-left: 2px solid var(--paper);
  border-bottom: 2px solid var(--paper);
  transform: rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 240ms var(--ease-expo);
  margin-top: -2px;
}
.form-check input[type="checkbox"]:checked + .check-box {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
}
.form-check input[type="checkbox"]:checked + .check-box::after {
  transform: rotate(-45deg) scale(1);
}
.form-check input[type="checkbox"]:focus-visible + .check-box {
  outline: 2px solid var(--teal-deep);
  outline-offset: 3px;
}
.form-check .check-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.form-check .check-text a {
  color: var(--teal-deep);
  border-bottom: 1px solid var(--rule);
}
.form-check .check-text a:hover { border-color: var(--teal-deep); }

/* ==========================================================
   FOOTER
   ========================================================== */
footer.site {
  background: var(--ink);
  color: oklch(0.78 0.025 75);
  padding-block: var(--s-7) var(--s-5);
}

.foot-banner {
  text-align: center;
  margin-bottom: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid oklch(0.30 0.02 200);
}
.foot-banner h3 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  color: var(--paper);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}
.foot-banner h3 em { font-style: italic; color: oklch(0.78 0.04 187); }

.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}
@media (min-width: 720px) {
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--s-5); }
}

.foot-brand .logo { color: var(--paper-warm); }
.foot-brand p {
  margin-top: var(--s-3);
  font-size: 0.85rem;
  line-height: 1.6;
  color: oklch(0.72 0.025 75);
  max-width: 36ch;
}

.foot-col h4 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--paper-warm);
  margin-bottom: var(--s-3);
}
.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.foot-col a {
  font-size: 0.85rem;
  color: oklch(0.78 0.025 75);
  transition: color 200ms;
}
.foot-col a:hover { color: var(--paper-warm); }

.foot-bottom {
  padding-top: var(--s-5);
  border-top: 1px solid oklch(0.30 0.02 200);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 0.75rem;
  color: oklch(0.62 0.02 75);
}

/* ==========================================================
   FLOATING WHATSAPP
   ========================================================== */
.fab {
  position: fixed;
  bottom: var(--s-4);
  right: var(--s-4);
  z-index: 40;
}
.fab a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--teal-deep);
  color: var(--paper);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 12px 30px oklch(0.42 0.08 185 / 0.35);
  transition: transform 280ms var(--ease-expo), background 220ms;
}
.fab a:hover {
  background: var(--teal);
  transform: translateY(-2px);
}
.fab a svg { width: 16px; height: 16px; }

/* ==========================================================
   REVEAL / ENTRY ANIMATIONS — Jakub recipe
   ========================================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(4px);
    transition: opacity 700ms var(--ease-quart), transform 700ms var(--ease-expo), filter 700ms var(--ease-quart);
  }
  .reveal.in {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
  .reveal[data-delay="100"] { transition-delay: 100ms; }
  .reveal[data-delay="200"] { transition-delay: 200ms; }
  .reveal[data-delay="300"] { transition-delay: 300ms; }
  .reveal[data-delay="400"] { transition-delay: 400ms; }
  
  /* Hero: stagger entrada inicial */
  .hero-eyebrow { opacity: 0; transform: translateY(8px); filter: blur(4px); animation: enter 800ms var(--ease-quart) 100ms forwards; }
  h1.hero-title { opacity: 0; transform: translateY(12px); filter: blur(4px); animation: enter 900ms var(--ease-quart) 200ms forwards; }
  .hero-lede { opacity: 0; transform: translateY(8px); filter: blur(4px); animation: enter 800ms var(--ease-quart) 350ms forwards; }
  .hero-actions { opacity: 0; transform: translateY(8px); filter: blur(4px); animation: enter 800ms var(--ease-quart) 480ms forwards; }
  .hero-art { opacity: 0; transform: translateY(16px) scale(0.97); filter: blur(8px); animation: enterArt 1200ms var(--ease-expo) 250ms forwards; }
  
  @keyframes enter {
    to { opacity: 1; transform: translateY(0); filter: blur(0); }
  }
  @keyframes enterArt {
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
  }
  
  /* Float sutil de hero art */
  @keyframes floatArt {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }
  .hero-art svg.tooth-glyph {
    animation: floatArt 6s ease-in-out infinite;
    animation-delay: 1.6s;
  }
}

/* ==========================================================
   MAP — bajo cada sede, SVG estilizado clicable
   ========================================================== */
.loc-map {
  display: block;
  position: relative;
  margin-top: var(--s-3);
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  background: oklch(0.94 0.015 75);
  cursor: pointer;
  text-decoration: none;
  transition: transform 320ms var(--ease-expo);
}
.location.primary .loc-map { background: oklch(0.35 0.075 187); }
.loc-map:hover { transform: translateY(-2px); }
.loc-map svg {
  width: 100%;
  height: 100%;
  display: block;
}
.loc-map .map-cta {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: oklch(0.985 0.005 80 / 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
  border: 1px solid oklch(0.985 0.005 80 / 0.4);
}
.loc-map .map-cta svg {
  width: 12px;
  height: 12px;
  display: inline-block;
  stroke: currentColor;
}
.loc-map .map-pin {
  transform-origin: center bottom;
  animation: pinBounce 2.4s ease-in-out infinite;
}
.loc-map .map-pulse {
  transform-origin: center;
  animation: pinPulse 2.4s ease-out infinite;
}
@keyframes pinBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes pinPulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .loc-map .map-pin, .loc-map .map-pulse { animation: none; }
}

/* ==========================================================
   BEFORE / AFTER SLIDER — embebido en col central de la calculadora
   ========================================================== */
.calc-panel.calc-panel-viz {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.ba-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  cursor: ew-resize;
  background: oklch(0.92 0.04 70);
  box-shadow: inset 0 0 0 1px oklch(0.985 0.005 80 / 0.15), 0 8px 24px oklch(0.20 0.05 200 / 0.18);
}

.ba-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.ba-image svg { width: 100%; height: 100%; display: block; }

.ba-after {
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0s;
}
.ba-shell.no-drag .ba-after { transition: clip-path 700ms var(--ease-expo); }

.ba-label {
  position: absolute;
  top: 0.75rem;
  padding: 0.32rem 0.7rem;
  background: oklch(0.985 0.005 80 / 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 2;
}
.ba-label-before { left: 0.75rem; color: var(--beige-deep); }
.ba-label-after { right: 0.75rem; color: var(--teal-deep); }

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #FFFFFF;
  transform: translateX(-50%);
  box-shadow: 0 0 16px oklch(0.20 0.05 200 / 0.45);
  pointer-events: none;
  z-index: 3;
}
.ba-handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 4px 18px oklch(0.20 0.05 200 / 0.3);
}
.ba-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 11px;
  background-image:
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 14' fill='none' stroke='%23045B52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='7 3 3 7 7 11'/%3E%3Cpolyline points='21 3 25 7 21 11'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.ba-caption {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--paper-warm);
  text-align: center;
  opacity: 0.85;
  margin-top: auto;
}

/* ==========================================================
   TIMELINE DOTS — puntos destacados sobre 1955, 1984, Hoy
   ========================================================== */
.timeline-track {
  position: relative;
}
.timeline-track::before {
  /* Línea horizontal continua que une los 3 puntos */
  content: "";
  position: absolute;
  top: 7px;
  left: calc(11% + 8px);
  right: calc(11% + 8px);
  height: 1.5px;
  background: linear-gradient(to right, var(--teal-soft), var(--teal), var(--teal-soft));
  opacity: 0.55;
  z-index: 0;
}
@media (max-width: 720px) {
  .timeline-track::before { display: none; }
}
.gen {
  position: relative;
}
.gen::before {
  /* Ahora un círculo grande en lugar de raya */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--paper-warm);
  border: 3px solid var(--teal-deep);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--paper-warm), 0 4px 14px oklch(0.42 0.08 185 / 0.25);
  transition: transform 480ms var(--ease-expo), box-shadow 480ms var(--ease-quart);
}
.gen:nth-child(2)::before { background: var(--teal); border-color: var(--teal-deep); }
.gen:nth-child(3)::before { background: var(--teal-deep); border-color: var(--teal-deep); }
.gen:hover::before {
  transform: scale(1.2);
  box-shadow: 0 0 0 4px var(--paper-warm), 0 8px 22px oklch(0.42 0.08 185 / 0.40);
}
.gen .year {
  margin-top: var(--s-4);
}

@media print {
  header.nav, .fab, footer.site { display: none; }
}
 ====== */


  .brands {
    padding: var(--s-7) 0;
    background: var(--paper-warm);
    border-top: 1px solid var(--rule-soft);
    border-bottom: 1px solid var(--rule-soft);
  }
  .brands-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--s-6);
  }
  .brands-head .eyebrow {
    display: inline-block;
    margin-bottom: var(--s-3);
  }
  .brands-head h3 {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.4vw, var(--t-xl));
    line-height: 1.15;
    color: var(--ink);
    margin: 0;
  }
  .brands-head h3 em {
    font-style: italic;
    color: var(--teal-deep);
  }
  .brands-head p {
    margin-top: var(--s-3);
    font-size: var(--t-sm);
    color: var(--ink-muted);
    letter-spacing: 0.01em;
  }
  .brands-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: center;
    gap: var(--s-4);
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--gutter);
  }
  .brand-mark-cell {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--s-4) var(--s-3);
    border-right: 1px solid var(--rule);
    transition: opacity 300ms var(--ease-quart), transform 400ms var(--ease-quart);
    opacity: 0.72;
  }
  .brand-mark-cell:last-child { border-right: 0; }
  .brand-mark-cell:hover { opacity: 1; transform: translateY(-2px); }
  .brand-mark-svg {
    height: 36px;
    width: auto;
    max-width: 180px;
    color: var(--ink);
  }
  .brand-mark-cell:hover .brand-mark-svg { color: var(--teal-deep); }
  .brand-mark-cell .brand-tag {
    margin-top: var(--s-2);
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
  }
  @media (max-width: 880px) {
    .brands { padding: var(--s-6) 0; }
    .brands-row {
      grid-template-columns: repeat(2, 1fr);
      gap: var(--s-3) 0;
    }
    .brand-mark-cell:nth-child(2n) { border-right: 0; }
    .brand-mark-cell:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
    .brand-mark-svg { height: 30px; }
  }
 ====== */


        .gbadge {
          display: inline-flex;
          align-items: center;
          gap: var(--s-3);
          margin-top: var(--s-4);
          padding: var(--s-3) var(--s-4);
          background: var(--paper-warm);
          border: 1px solid var(--rule);
          border-radius: 999px;
          text-decoration: none;
          color: var(--ink);
          transition: border-color 250ms var(--ease-quart), transform 350ms var(--ease-quart), background 250ms var(--ease-quart);
        }
        .gbadge:hover {
          border-color: var(--teal);
          background: var(--paper);
          transform: translateY(-1px);
        }
        .gbadge .g-logo {
          width: 20px; height: 20px; flex: 0 0 20px;
        }
        .gbadge .g-stars {
          display: inline-flex;
          gap: 2px;
          color: #F2B01E;
        }
        .gbadge .g-stars svg { width: 14px; height: 14px; }
        .gbadge .g-rate {
          font-family: var(--sans);
          font-weight: 600;
          font-size: var(--t-sm);
          letter-spacing: 0.01em;
          color: var(--ink);
        }
        .gbadge .g-count {
          font-family: var(--sans);
          font-size: 0.78rem;
          color: var(--ink-muted);
          letter-spacing: 0.02em;
        }
        .gbadge .g-arrow {
          width: 14px; height: 14px;
          color: var(--ink-muted);
          transition: transform 250ms var(--ease-quart), color 250ms var(--ease-quart);
        }
        .gbadge:hover .g-arrow { transform: translate(2px, -2px); color: var(--teal-deep); }
      
/* ==========================================================
   EXTENSIONES MULTIPÁGINA — header, breadcrumbs, page-hero,
   cookie banner, skip-link, prose, callouts, cards.
   ========================================================== */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.5rem 0.75rem; z-index: 1000;
}
.skip:focus { left: 1rem; top: 1rem; outline: 2px solid var(--paper-warm); }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 252, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-soft);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem var(--gutter);
}
.brand { text-decoration: none; color: var(--ink); }
.brand-text { font-family: var(--serif); font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-text strong { font-weight: 500; }
.site-header .primary { display: flex; gap: 1.5rem; align-items: center; }
.site-header .primary a { font-size: 0.95rem; color: var(--ink-soft); }
.site-header .primary a:hover { color: var(--teal-deep); }
.site-header .cta-pill {
  padding: 0.55rem 1.1rem; border-radius: 999px;
  background: var(--teal-deep); color: var(--paper);
  font-weight: 500; font-size: 0.9rem;
}
.site-header .cta-pill:hover { background: var(--ink); }
.nav-toggle {
  display: none; width: 36px; height: 36px;
  background: 0; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 4px;
}
.nav-toggle span {
  display: block; height: 1.5px; background: var(--ink);
  border-radius: 2px; transition: 0.3s var(--ease-quart);
}

.page-main { padding-bottom: var(--s-8); }
/* Evitar hueco blanco entre CTA cierre y footer */
.page-main:has(> .t-cta:last-child) { padding-bottom: 0; }

.breadcrumbs {
  padding: 1rem var(--gutter);
  max-width: var(--max); margin: 0 auto;
  font-size: 0.82rem;
}
.breadcrumbs ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 0.5rem; flex-wrap: wrap; color: var(--ink-muted);
}
.breadcrumbs li:not(:last-child)::after {
  content: "·"; margin-left: 0.5rem; color: var(--ink-faint);
}
.breadcrumbs a { color: var(--ink-muted); }
.breadcrumbs a:hover { color: var(--teal-deep); }
.breadcrumbs li:last-child a { color: var(--ink); font-weight: 500; cursor: default; pointer-events: none; }

.page-hero {
  background: var(--paper-warm);
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule-soft);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  max-width: 900px;
  letter-spacing: -0.02em;
}
.page-hero h1 em { color: var(--teal-deep); font-style: italic; }

/* Prosa de contenido para páginas largas */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--s-6) var(--gutter);
}
.prose > * + * { margin-top: 1.25rem; }
.prose h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-top: 3rem; line-height: 1.15; letter-spacing: -0.015em;
}
.prose h2 em { color: var(--teal-deep); font-style: italic; }
.prose h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  margin-top: 2rem;
}
.prose p, .prose li { line-height: 1.7; color: var(--ink-soft); font-size: 1.02rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul li, .prose ol li { margin-top: 0.4rem; }
.prose a { color: var(--teal-deep); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); font-weight: 600; }

.lede-block {
  font-family: var(--serif); font-style: italic;
  font-size: 1.3rem; line-height: 1.5;
  color: var(--ink); padding: 1rem 0;
  border-left: 2px solid var(--teal); padding-left: 1.5rem;
}

.callout {
  background: var(--teal-wash);
  border: 1px solid var(--teal-soft);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.callout strong { color: var(--teal-deep); }

.faq-list { display: grid; gap: 0.5rem; margin-top: 2rem; }
.faq-list details {
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.faq-list summary {
  cursor: pointer; font-weight: 500;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--ink);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary { color: var(--teal-deep); }
.faq-list details p { margin-top: 0.75rem; color: var(--ink-soft); line-height: 1.7; }

.cta-card {
  background: var(--ink); color: var(--paper);
  border-radius: 12px; padding: 2.5rem; margin: 3rem auto;
  max-width: 760px;
  text-align: center;
}
.cta-card h3 { font-family: var(--serif); font-size: 1.8rem; color: var(--paper); margin-bottom: 0.75rem; }
.cta-card p { color: oklch(0.88 0.005 80); margin-bottom: 1.5rem; }
.cta-card .btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--teal); color: var(--paper);
  padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 500; text-decoration: none;
}
.cta-card .btn-primary:hover { background: var(--teal-rich); }

/* Banner cookies */
.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
  max-width: 720px; margin: 0 auto;
  background: var(--ink); color: var(--paper);
  border-radius: 12px;
  box-shadow: 0 12px 40px oklch(0.20 0.05 200 / 0.25);
  z-index: 100;
  padding: 1.25rem 1.5rem;
}
.cookie-banner p { font-size: 0.88rem; line-height: 1.55; color: oklch(0.92 0.005 80); }
.cookie-banner a { color: var(--teal); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.75rem; justify-content: flex-end; margin-top: 1rem; }
.cookie-actions button {
  padding: 0.55rem 1.1rem; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; cursor: pointer; border: 0;
}
.cookie-actions .btn-primary { background: var(--teal); color: var(--paper); }
.cookie-actions .btn-ghost { background: transparent; color: var(--paper); border: 1px solid oklch(0.5 0.02 200); }

/* Cards para grids */
.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter);
}
.card {
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 300ms var(--ease-quart), border-color 300ms var(--ease-quart);
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.card:hover { transform: translateY(-2px); border-color: var(--teal-soft); }
.card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-muted); font-size: 0.95rem; line-height: 1.55; }
.card .card-cta {
  display: inline-flex; gap: 0.4rem; margin-top: 1rem;
  color: var(--teal-deep); font-weight: 500; font-size: 0.9rem;
}

@media (max-width: 880px) {
  .site-header .primary {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: 1rem 0; border-bottom: 1px solid var(--rule);
  }
  .site-header .primary.open { display: flex; }
  .site-header .primary a {
    padding: 0.85rem var(--gutter);
    border-bottom: 1px solid var(--rule-soft);
  }
  .nav-toggle { display: flex; }
}

/* ==========================================================
   PÁGINAS INTERIORES RICH — Hero, split, proceso, precios, CTA
   ========================================================== */

/* HERO de páginas interiores (tipo home) */
.t-hero {
  background: var(--paper-warm);
  padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--rule-soft);
  position: relative;
  overflow: hidden;
}
.t-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.t-hero .eyebrow {
  display: block;
  margin-bottom: var(--s-3);
}
.t-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
  font-weight: 400;
  color: var(--ink);
}
.t-hero h1 em {
  font-style: italic;
  color: var(--teal-deep);
}
.t-hero-lede {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
  max-width: 540px;
  font-style: italic;
}
.t-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}
.t-hero .btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--ink); color: var(--paper);
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  font-family: var(--sans);
  text-decoration: none;
  transition: background 250ms var(--ease-quart), transform 350ms var(--ease-quart);
}
.t-hero .btn-primary:hover { background: var(--teal-deep); transform: translateY(-1px); }
.t-hero .btn-ghost {
  font-family: var(--sans); font-size: 0.95rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.95rem 0.5rem;
  border-bottom: 1px solid var(--ink-faint);
  transition: color 200ms, border-color 200ms;
}
.t-hero .btn-ghost:hover { color: var(--teal-deep); border-color: var(--teal); }

/* Visual derecho del hero */
.t-hero-visual {
  position: relative;
  aspect-ratio: 5/6;
  background: var(--paper);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.t-hero-visual-inner {
  text-align: center;
  position: relative;
  z-index: 2;
}
.t-hero-visual .eyebrow {
  color: var(--ink-muted);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
}
.t-hero-visual .brand-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1.1;
  color: var(--teal-deep);
  margin: 0.5rem 0 1rem;
}
.t-hero-visual .brand-detail {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.t-hero-visual::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 100%, var(--teal-wash) 0%, transparent 60%);
  z-index: 1;
}

/* Numbers row */
.t-numbers {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--paper);
}
.t-numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.t-num {
  text-align: left;
  border-left: 1px solid var(--rule);
  padding-left: 1.25rem;
}
.t-num .v {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.t-num .v em { font-style: italic; color: var(--teal-deep); }
.t-num .l {
  font-family: var(--sans);
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.45;
  letter-spacing: 0.01em;
}

/* Split: figura + texto */
.t-split {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.t-split-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.t-split.reverse .t-split-grid { direction: rtl; }
.t-split.reverse .t-split-grid > * { direction: ltr; }
.t-split-figure {
  background: var(--teal-wash);
  border-radius: 16px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
}
.t-split-figure-content {
  position: relative; z-index: 2;
  text-align: center;
}
.t-split-figure .marker {
  font-family: var(--serif);
  font-size: clamp(4rem, 8vw, 7rem);
  font-style: italic;
  color: var(--teal-deep);
  line-height: 0.9;
  margin-bottom: 1rem;
}
.t-split-figure .marker-label {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.t-split-text .eyebrow { margin-bottom: var(--s-3); display: inline-block; }
.t-split-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  font-weight: 400;
}
.t-split-text h2 em { font-style: italic; color: var(--teal-deep); }
.t-split-text .lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.t-split-text .body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
}
.t-split-text ul {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
}
.t-split-text ul li {
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}
.t-split-text ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.65rem;
  width: 8px; height: 1px;
  background: var(--teal-deep);
}

/* Process — timeline tipo heritage */
.t-process {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.t-process-head {
  max-width: 720px;
  margin: 0 auto clamp(3rem, 5vw, 4.5rem);
  text-align: center;
  padding: 0 var(--gutter);
}
.t-process-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  margin-top: var(--s-3);
}
.t-process-head h2 em { font-style: italic; color: var(--teal-deep); }
.t-process-head p {
  margin-top: 1rem;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.t-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.t-step {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  transition: transform 350ms var(--ease-quart), border-color 350ms var(--ease-quart);
}
.t-step:hover { transform: translateY(-2px); border-color: var(--teal-soft); }
.t-step .step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--teal-deep);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.t-step h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  color: var(--ink);
}
.t-step p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

/* Pricing — tarjetas */
.t-pricing {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.t-pricing-head {
  max-width: 720px;
  margin: 0 auto 3rem;
  text-align: center;
  padding: 0 var(--gutter);
}
.t-pricing-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  margin-top: var(--s-3);
}
.t-pricing-head h2 em { font-style: italic; color: var(--teal-deep); }
.t-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.t-price {
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  border-radius: 12px;
  padding: 1.75rem;
  transition: transform 350ms var(--ease-quart), border-color 350ms var(--ease-quart);
}
.t-price:hover { transform: translateY(-2px); border-color: var(--teal-soft); }
.t-price .price-name {
  font-family: var(--sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-deep);
  margin-bottom: 0.75rem;
}
.t-price .price-value {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.t-price .price-value em { font-style: italic; color: var(--teal-deep); }
.t-price .price-detail {
  font-size: 0.88rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.t-pricing-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-top: 2rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--gutter);
}

/* FAQ section */
.t-faq {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--paper-warm);
  border-top: 1px solid var(--rule-soft);
}
.t-faq-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.t-faq-head { margin-bottom: 3rem; }
.t-faq-head h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  margin-top: var(--s-3);
}
.t-faq-head h2 em { font-style: italic; color: var(--teal-deep); }

/* CTA full section (cierre) */
.t-cta {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.t-cta-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.t-cta h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 1.25rem;
}
.t-cta h2 em { font-style: italic; color: var(--teal); }
.t-cta p {
  color: oklch(0.85 0.01 80);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}
.t-cta-actions {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.t-cta .btn-primary {
  background: var(--teal);
  color: var(--paper);
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
  font-family: var(--sans);
  transition: background 250ms var(--ease-quart);
}
.t-cta .btn-primary:hover { background: var(--teal-rich); }
.t-cta .btn-ghost {
  background: transparent;
  color: var(--paper);
  padding: 1rem 1.8rem;
  border-radius: 999px;
  border: 1px solid oklch(0.5 0.02 200);
  text-decoration: none;
  font-family: var(--sans);
  transition: border-color 250ms;
}
.t-cta .btn-ghost:hover { border-color: var(--paper); }

/* Indicaciones — chips */
.t-chips {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1.5rem;
}
.t-chip {
  background: var(--teal-wash);
  border: 1px solid var(--teal-soft);
  color: var(--teal-deep);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

@media (max-width: 880px) {
  .t-hero-grid { grid-template-columns: 1fr; }
  .t-hero-visual { aspect-ratio: 4/3; }
  .t-numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .t-split-grid { grid-template-columns: 1fr; }
  .t-split.reverse .t-split-grid { direction: ltr; }
  .t-split-figure { aspect-ratio: 5/4; }
}

/* ==========================================================
   HERO VISUAL CON FOTO REAL
   ========================================================== */
.t-hero-visual.with-photo {
  padding: 0;
  background: var(--teal-wash);
  position: relative;
  overflow: hidden;
}
.t-hero-visual.with-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.t-hero-visual.with-photo::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, oklch(0.20 0.025 200 / 0.55) 100%);
  z-index: 1;
}
.t-hero-visual.with-photo .t-hero-visual-inner {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 2;
  text-align: left;
  color: var(--paper);
}
.t-hero-visual.with-photo .t-hero-visual-inner .eyebrow {
  color: oklch(0.85 0.04 187);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  margin-bottom: 0.4rem;
  display: block;
}
.t-hero-visual.with-photo .brand-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.05;
  color: var(--paper);
  margin: 0 0 0.5rem;
}
.t-hero-visual.with-photo .brand-detail {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: oklch(0.88 0.02 200);
  line-height: 1.45;
}

/* Team grid con fotos reales */
.t-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.t-team-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper-warm);
  border: 1px solid var(--rule-soft);
  transition: transform 350ms var(--ease-quart), border-color 350ms var(--ease-quart);
}
.t-team-card:hover { transform: translateY(-3px); border-color: var(--teal-soft); }
.t-team-card .photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--teal-wash);
}
.t-team-card .photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 800ms var(--ease-quart);
}
.t-team-card:hover .photo img { transform: scale(1.03); }
.t-team-card .info {
  padding: 1.25rem 1.25rem 1.5rem;
}
.t-team-card .specialty {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.6rem;
  display: block;
}
.t-team-card h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}
.t-team-card .role {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.t-team-card .since {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* Galería ambiente — banda de fotos */
.t-gallery-band {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.t-gallery-band figure {
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  margin: 0;
  background: var(--teal-wash);
}
.t-gallery-band figure:first-child { aspect-ratio: 4/3; }
.t-gallery-band figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 800ms var(--ease-quart);
}
.t-gallery-band figure:hover img { transform: scale(1.03); }
@media (max-width: 880px) {
  .t-gallery-band { grid-template-columns: 1fr 1fr; }
  .t-gallery-band figure:first-child { grid-column: 1 / -1; }
}

/* Split con foto real (sustituye el marker tipográfico) */
.t-split-figure.with-photo {
  background: var(--teal-wash);
  padding: 0;
}
.t-split-figure.with-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* === Cookie consent banner === */
#fp-cookie-banner{position:fixed;left:1rem;right:1rem;bottom:1rem;max-width:560px;margin-inline:auto;background:#fff;border:1px solid oklch(0.85 0.02 187);border-radius:14px;box-shadow:0 12px 40px -8px rgba(0,0,0,.18);padding:1.1rem 1.25rem;z-index:9999;font-size:.9rem;animation:fpCbIn .35s ease-out}
@keyframes fpCbIn{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
#fp-cookie-banner p{margin:0 0 .8rem;line-height:1.45;color:#333}
#fp-cookie-banner .fp-cb-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.6rem}
#fp-cookie-banner .fp-cb-btn{padding:.55rem 1rem;border-radius:999px;border:none;cursor:pointer;font-weight:600;font-size:.85rem;transition:transform .15s,opacity .15s}
#fp-cookie-banner .fp-cb-btn:hover{transform:translateY(-1px)}
#fp-cookie-banner .fp-cb-primary{background:#0F8A82;color:#F5F1E5}
#fp-cookie-banner .fp-cb-secondary{background:transparent;color:#0F8A82;border:1px solid oklch(0.85 0.02 187)}
#fp-cookie-banner .fp-cb-legal{margin:0;font-size:.75rem;color:#666}
#fp-cookie-banner .fp-cb-legal a{color:#0F8A82}

/* === t-map: bloque de mapa Google Maps === */
.t-map { padding: var(--s-7) 0; background: var(--canvas); }
.t-map .wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--s-4); }
.t-map-head { text-align: center; margin-bottom: var(--s-5); }
.t-map-head .eyebrow { color: var(--teal-deep); font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.4rem; display: block; }
.t-map-head h2 { font-family: 'Instrument Serif', serif; font-size: clamp(2rem, 3.4vw, 2.6rem); margin: 0; line-height: 1.1; color: var(--ink); }
.t-map-head h2 em { font-style: italic; color: var(--teal-deep); }
.t-map-frame { border-radius: 18px; overflow: hidden; box-shadow: 0 12px 40px -10px rgba(0,0,0,0.14); border: 1px solid oklch(0.85 0.02 187); aspect-ratio: 16 / 7; }
.t-map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85); }
@media (max-width: 700px) { .t-map-frame { aspect-ratio: 4 / 3; } }

/* === team-banner: foto grande del equipo === */
.team-banner { padding: 0 0 var(--s-6); }
.team-banner .wrap { max-width: 1280px; margin-inline: auto; padding-inline: var(--s-4); }
.team-banner-img { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 16px 60px -14px rgba(0,0,0,0.22); aspect-ratio: 16 / 7; }
.team-banner-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-banner-overlay { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1.8rem; background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55)); color: #fff; }
.team-banner-overlay .eyebrow { display: block; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.85; margin-bottom: 0.25rem; }
.team-banner-overlay h2 { font-family: 'Instrument Serif', serif; font-size: clamp(1.6rem, 2.5vw, 2.1rem); margin: 0; line-height: 1.2; }
.team-banner-overlay h2 em { color: oklch(0.88 0.06 187); font-style: italic; }
@media (max-width: 700px) { .team-banner-img { aspect-ratio: 4 / 3; } .team-banner-overlay { padding: 1rem 1.2rem; } }

/* === Header unificado: ocultar texto duplicado, agrandar logo === */
.site-header .brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.site-header .brand-mark { height: 44px; width: auto; display: block; }
/* El texto "Dr. de la Peña · Clínica Dental" ya está en el logo gráfico → ocultamos el span */
.site-header .brand-text { display: none !important; }
@media (max-width: 720px) { .site-header .brand-mark { height: 36px; } }

/* === Mini-mapa Google Maps en las cards de sedes (home) === */
.loc-map-frame { width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 22px -6px rgba(0,0,0,0.12); border: 1px solid oklch(0.85 0.02 187); margin-top: var(--s-3); }
.loc-map-frame iframe { width: 100%; height: 100%; border: 0; display: block; filter: saturate(0.85); }

/* === Sticky TOC en páginas de tratamiento === */
.sticky-toc {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(0.985 0.005 80);
  border-bottom: 1px solid oklch(0.92 0.015 187);
  padding: 0;
  overflow: hidden;
}
.sticky-toc ul {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.sticky-toc li { flex-shrink: 0; }
.sticky-toc a {
  display: block;
  padding: 0.85rem 1.2rem;
  font-size: 0.85rem;
  color: var(--ink-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  text-transform: capitalize;
}
.sticky-toc a:hover { color: var(--teal-deep); }
.sticky-toc a.active {
  color: var(--teal-deep);
  border-bottom-color: var(--teal-deep);
  font-weight: 600;
}
@media (max-width: 720px) {
  .sticky-toc a { padding: 0.65rem 0.9rem; font-size: 0.8rem; }
}
