/* ============================================================
   Dr. Martín Sabio · Implantes Dentales
   Hoja de estilos principal
   ============================================================ */

:root {
  /* Paleta */
  --ink: #0c2a3a;          /* títulos / texto fuerte */
  --body: #415663;         /* texto secundario */
  --muted: #6b8190;        /* texto tenue */
  --brand: #0fa8a0;        /* teal principal */
  --brand-deep: #0b7e78;   /* teal oscuro */
  --brand-soft: #e6f6f4;   /* teal muy claro (fondos) */
  --navy: #0e2a40;         /* secciones oscuras (color del ambo) */
  --navy-2: #123a57;
  --wa: #25d366;           /* verde WhatsApp */
  --wa-deep: #1ebe5d;

  --bg: #ffffff;
  --bg-soft: #f3f8f8;
  --line: #e2ecee;
  --white: #ffffff;

  /* Tipografía */
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(12, 42, 58, .06);
  --shadow-md: 0 12px 30px rgba(12, 42, 58, .10);
  --shadow-lg: 0 30px 60px rgba(12, 42, 58, .14);

  /* Radios */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --container: 1180px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.15;
  margin: 0;
  font-weight: 700;
  letter-spacing: -.02em;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

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

/* ===== Botones ===== */
.btn {
  --pad-y: 13px; --pad-x: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  border: 0;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--wa {
  background: linear-gradient(180deg, var(--wa) 0%, var(--wa-deep) 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, .35);
}
.btn--wa:hover { box-shadow: 0 14px 30px rgba(37, 211, 102, .45); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn--ghost:hover { border-color: var(--brand); color: var(--brand-deep); }

.btn--lg { --pad-y: 16px; --pad-x: 30px; font-size: 16.5px; }
.btn--sm { --pad-y: 10px; --pad-x: 16px; font-size: 14px; }
.ico-wa { flex-shrink: 0; }

/* ===== Kicker / Eyebrow / encabezados de sección ===== */
.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 14px;
}
.kicker--light { color: #7fe3da; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(15,168,160,.2);
}

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 660px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 14px; }
.section__head p { color: var(--muted); font-size: 18px; }
.section__head--light h2 { color: #fff; }
.section__head--light p { color: #aecbd6; }

.grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
  background: var(--navy);
  color: #cfe4ec;
  font-size: 13.5px;
  overflow: hidden;
}
.marquee { overflow: hidden; padding: 9px 0; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
/* Se frena al pasar el mouse, para poder leer un mensaje puntual */
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex; align-items: center;
  gap: 14px; padding-right: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}
/* -33.333% = exactamente el ancho de un grupo (hay 3), así el loop es continuo */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3333%); }
}
.topbar__item { white-space: nowrap; }
.topbar__item strong { color: #fff; font-weight: 600; }
.topbar__sep { color: var(--brand); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; height: 76px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15,168,160,.32);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-head); font-size: 19px; color: var(--ink); white-space: nowrap; }
.brand__text small { font-size: 12px; color: var(--muted); letter-spacing: .01em; white-space: nowrap; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: #9fc0cc; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a {
  font-family: var(--font-head);
  font-weight: 600; font-size: 15.5px;
  color: var(--ink);
  position: relative;
  transition: color .2s ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--brand);
  transition: width .25s ease;
}
.nav a:hover { color: var(--brand-deep); }
.nav a:hover::after { width: 100%; }

.header__cta { padding: 11px 18px; }

.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.hamburger span {
  width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(15,168,160,.12), transparent 60%),
    radial-gradient(50% 60% at 5% 100%, rgba(14,42,64,.06), transparent 60%),
    linear-gradient(180deg, #f7fbfb 0%, #ffffff 100%);
  z-index: -1;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 50px;
  padding: 70px 24px 90px;
}
.hero__title {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.06;
  margin-bottom: 22px;
}
.hero__lead { font-size: 19px; color: var(--body); max-width: 560px; margin-bottom: 26px; }

.hero__chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.hero__chips li {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  padding: 9px 15px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.hero__chips svg { color: var(--brand); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero__trust { display: flex; align-items: center; gap: 14px; }
.hero__trust p { font-size: 14.5px; color: var(--muted); }
.hero__trust strong { color: var(--ink); }
.avatars { display: flex; flex-shrink: 0; }
.avatars img {
  width: 38px; height: 38px; border-radius: 50%;
  border: 2.5px solid #fff;
  margin-left: -10px;
  object-fit: cover;
  background: var(--brand-soft);
  box-shadow: 0 2px 6px rgba(12, 42, 58, .14);
}
.avatars img:first-child { margin-left: 0; }

/* Hero media */
.hero__media { position: relative; }
.hero__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #d6f1ee 0%, #bfe7e2 45%, #a7dcd5 100%);
  box-shadow: var(--shadow-lg);
  display: grid;
  place-items: end center;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
}
.hero__photo-fallback {
  display: none;
  font-family: var(--font-head); font-weight: 700;
  color: var(--brand-deep); text-align: center;
  font-size: 18px; padding-bottom: 40%;
}
.hero__photo.is-empty { place-items: center; }
.hero__photo.is-empty .hero__photo-fallback { display: block; }

.hero__badge {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
}
.hero__badge--exp { left: -18px; top: 36px; }
.hero__badge--exp strong {
  font-family: var(--font-head); font-size: 34px; line-height: 1;
  color: var(--brand-deep);
}
.hero__badge--exp span { font-size: 12.5px; color: var(--muted); line-height: 1.2; font-weight: 600; }

.hero__badge--rating { right: -14px; bottom: 40px; flex-direction: column; gap: 2px; align-items: flex-start; }
.hero__badge--rating .stars { color: #f6b73c; font-size: 16px; letter-spacing: 1px; }
.hero__badge--rating span { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ============================================================
   Stats
   ============================================================ */
.stats {
  margin-top: -40px;
  position: relative; z-index: 2;
}
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stat {
  background: #fff;
  padding: 32px 22px; text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--brand-deep);
  letter-spacing: -.03em;
}
.stat span { font-size: 14.5px; color: var(--muted); font-weight: 500; }

/* ============================================================
   Cards (tratamientos)
   ============================================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 26px;
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.card__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  margin-bottom: 18px;
}
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--body); }

.card--featured {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  border-color: transparent;
}
.card--featured h3, .card--featured p { color: #fff; }
.card--featured p { color: #b9d3de; }
.card--featured .card__icon { background: rgba(255,255,255,.12); color: #7fe3da; }
.card__tag {
  position: absolute; top: 18px; right: 18px;
  background: var(--brand); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 11.5px;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
}

.section__cta {
  margin-top: 46px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center;
}
.section__cta p { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); }

/* ============================================================
   Beneficios
   ============================================================ */
.benefits { display: grid; grid-template-columns: 360px 1fr; gap: 60px; align-items: start; }
.benefits__head { position: sticky; top: 100px; }
.benefits__head h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 14px; }
.benefits__head p { color: var(--muted); font-size: 17px; }
.benefits__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.benefit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px;
  transition: transform .2s ease, box-shadow .25s ease;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.benefit__ico {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-deep);
  margin-bottom: 14px;
}
.benefit h3 { font-size: 18px; margin-bottom: 6px; }
.benefit p { font-size: 15px; color: var(--body); }

/* ============================================================
   El Doctor
   ============================================================ */
.doctor { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.doctor__media { position: relative; }
.doctor__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, #e9f6f4, #c8e8e3);
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.doctor__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.doctor__photo-fallback {
  display: none;
  font-family: var(--font-head); font-weight: 700; color: var(--brand-deep);
  text-align: center; padding: 0 20px;
}
.doctor__photo.is-empty .doctor__photo-fallback { display: block; }
.doctor__exp {
  position: absolute; right: -18px; bottom: 28px;
  background: var(--brand);
  color: #fff;
  border-radius: 18px;
  padding: 16px 22px;
  text-align: center;
  box-shadow: 0 16px 30px rgba(15,168,160,.4);
}
.doctor__exp strong { display: block; font-family: var(--font-head); font-size: 32px; line-height: 1; }
.doctor__exp span { font-size: 12.5px; opacity: .9; }

.doctor__content h2 { font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 6px; }
.doctor__role { font-family: var(--font-head); font-weight: 600; color: var(--brand-deep); font-size: 17px; margin-bottom: 18px; }
.doctor__content p { margin-bottom: 16px; }
.doctor__list { margin: 22px 0 28px; display: grid; gap: 12px; }
.doctor__list li { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 15.5px; }
.doctor__list svg { color: var(--brand); flex-shrink: 0; }

/* ============================================================
   Proceso (sección oscura)
   ============================================================ */
.section--dark { background: linear-gradient(160deg, var(--navy) 0%, #0a2032 100%); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-md);
  padding: 30px 24px;
  position: relative;
  transition: transform .25s ease, background .25s ease;
}
.step:hover { transform: translateY(-6px); background: rgba(255,255,255,.07); }
.step__num {
  font-family: var(--font-head); font-weight: 800;
  font-size: 40px;
  background: linear-gradient(120deg, #7fe3da, #0fa8a0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: block; margin-bottom: 12px;
}
.step h3 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.step p { color: #aecbd6; font-size: 15px; }

/* ============================================================
   Tecnología
   ============================================================ */
.tech { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.tech__content h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 14px; }
.tech__content > p { color: var(--body); font-size: 18px; margin-bottom: 30px; max-width: 540px; }
.tech__features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tech__feature {
  padding: 20px 20px;
  border-left: 3px solid var(--brand);
  background: var(--bg-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.tech__feature h3 { font-size: 17px; margin-bottom: 4px; }
.tech__feature p { font-size: 14.5px; color: var(--body); }

.tech__media { position: relative; }
.tech__card {
  aspect-ratio: 1 / 1;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid; place-items: center;
}
.tech__scan {
  width: 62%; height: 62%;
  border-radius: 50%;
  background:
    repeating-conic-gradient(from 0deg, rgba(127,227,218,.0) 0deg, rgba(127,227,218,.18) 12deg, rgba(127,227,218,0) 24deg),
    radial-gradient(circle, rgba(15,168,160,.25), transparent 70%);
  border: 1px dashed rgba(127,227,218,.4);
  position: relative;
  animation: spin 14s linear infinite;
}
.tech__scan::after {
  content: ""; position: absolute; inset: 22%;
  border-radius: 50%;
  border: 1px dashed rgba(127,227,218,.5);
}
@keyframes spin { to { transform: rotate(360deg); } }
.tech__chip {
  position: absolute; bottom: 26px;
  background: rgba(255,255,255,.1);
  color: #7fe3da; backdrop-filter: blur(6px);
  font-family: var(--font-head); font-weight: 700; font-size: 13.5px;
  padding: 9px 18px; border-radius: var(--r-pill);
  border: 1px solid rgba(127,227,218,.3);
}

/* ============================================================
   Testimonios
   ============================================================ */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
}
.testimonial .stars { color: #f6b73c; font-size: 17px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial blockquote { margin: 0 0 18px; font-size: 16px; color: var(--ink); line-height: 1.6; }
.testimonial figcaption { display: flex; flex-direction: column; }
.testimonial figcaption strong { font-family: var(--font-head); color: var(--ink); }
.testimonial figcaption span { font-size: 13.5px; color: var(--brand-deep); font-weight: 600; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; }
.faq__list { display: grid; gap: 14px; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 4px 26px;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.faq__item[open] { box-shadow: var(--shadow-sm); border-color: #cfe4e1; }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-family: var(--font-head); font-weight: 700; font-size: 17.5px;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 26px; font-weight: 400; line-height: 1;
  color: var(--brand);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { overflow: hidden; padding-bottom: 4px; }
.faq__answer p { color: var(--body); padding-bottom: 18px; font-size: 16px; }

/* ============================================================
   CTA final
   ============================================================ */
.cta-final {
  background:
    radial-gradient(50% 120% at 50% 0%, rgba(15,168,160,.25), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, #0a2032 100%);
  padding: 90px 0;
}
.cta-final__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.cta-final h2 { color: #fff; font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; }
.cta-final p { color: #b9d3de; font-size: 19px; margin-bottom: 30px; }
.cta-final__note { font-size: 14px !important; color: #80a3b1 !important; margin-top: 18px !important; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: #081a28; color: #9fc0cc; padding-top: 64px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer__brand p { margin-top: 16px; font-size: 15px; color: #88abb8; max-width: 280px; }
.footer__col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; letter-spacing: .02em; }
/* :not(.btn) evita pisarle display/color/padding a los botones del footer */
.footer__col a:not(.btn) { display: block; font-size: 15px; color: #9fc0cc; padding: 6px 0; transition: color .2s ease; }
.footer__col a:not(.btn):hover { color: #7fe3da; }
.footer__contact p { font-size: 15px; margin-bottom: 6px; }
.footer__contact .btn { margin-top: 14px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; }
.footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.footer__bottom p { font-size: 13px; color: #6f93a1; }
.footer__disclaimer { color: #547686 !important; }

/* ============================================================
   Ubicación / Mapa
   ============================================================ */
.location { display: grid; grid-template-columns: 380px 1fr; gap: 26px; align-items: stretch; }
.location__info {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  display: flex; flex-direction: column; gap: 22px;
  box-shadow: var(--shadow-sm);
}
.location__row { display: flex; gap: 14px; align-items: flex-start; }
.location__ico {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--brand-soft); color: var(--brand-deep);
  flex-shrink: 0;
}
.location__row strong { display: block; font-family: var(--font-head); color: var(--ink); font-size: 16.5px; margin-bottom: 2px; }
.location__row p { font-size: 15px; color: var(--body); }
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 6px; }
.location__map {
  border-radius: var(--r-lg);
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--bg-soft);
}
.location__map iframe { width: 100%; height: 100%; min-height: 430px; border: 0; display: block; }

/* ============================================================
   Botón flotante WhatsApp
   ============================================================ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--wa) 0%, var(--wa-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(37,211,102,.5);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float__pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa);
  animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ============================================================
   Animaciones de aparición (reveal)
   ============================================================ */
.reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .tech__scan, .wa-float__pulse, .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Video del consultorio
   ============================================================ */
.showcase { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.showcase__media { width: 100%; max-width: 360px; margin: 0 auto; }
.showcase__player {
  width: 100%;
  aspect-ratio: 9 / 16;
  display: block;
  border-radius: var(--r-lg);
  background: var(--navy);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.showcase__content h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 14px; }
.showcase__content > p { margin-bottom: 8px; }
.showcase__points { display: grid; gap: 12px; margin: 22px 0 28px; }
.showcase__points li { display: flex; align-items: flex-start; gap: 11px; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 15.5px; }
.showcase__points svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   ¿Qué son los implantes? (explain + when)
   ============================================================ */
.explain { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; margin-bottom: 88px; }
.explain__media { display: flex; justify-content: center; }
.explain__diagram {
  width: 100%; max-width: 400px;
  background: radial-gradient(120% 100% at 50% 0%, #f3fbfa 0%, #e6f6f4 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  box-shadow: var(--shadow-md);
}
.explain__diagram svg { width: 100%; height: auto; display: block; }
.explain__content h2 { font-size: clamp(28px, 3.6vw, 38px); margin-bottom: 14px; }
.explain__content p { margin-bottom: 14px; }
.explain__points { display: grid; gap: 12px; margin-top: 22px; }
.explain__points li { display: flex; align-items: flex-start; gap: 11px; font-family: var(--font-head); font-weight: 600; color: var(--ink); font-size: 15.5px; }
.explain__points svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }

.when__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.when-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 24px;
  transition: transform .2s ease, box-shadow .25s ease;
}
.when-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.when-card__ico {
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand-deep);
  margin-bottom: 14px;
}
.when-card h3 { font-size: 18px; margin-bottom: 6px; }
.when-card p { font-size: 15px; color: var(--body); }

/* ============================================================
   Antes y después (comparador)
   ============================================================ */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case figcaption {
  text-align: center; margin-top: 14px;
  font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 16px;
}
.ba {
  --pos: 65%;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  touch-action: none;
}
/* Ojo con el apilamiento: clip-path crea un contexto de apilamiento propio.
   Si los contenedores quedan en z-index:auto, la imagen del "después" (que no
   está recortada) se escapa al contexto padre y tapa por completo a la del
   "antes". Por eso los dos contenedores llevan z-index explícito: así cada uno
   crea su contexto, sus hijos quedan contenidos y "antes" (2) pinta sobre
   "después" (1). */
.ba__img { position: absolute; inset: 0; }
.ba__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.ba__after { z-index: 1; background: linear-gradient(150deg, #d8f0ec 0%, #b6e3dd 100%); }
.ba__before { z-index: 2; background: linear-gradient(150deg, #e9edf0 0%, #ccd6dd 100%); clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
/* z-index 0: queda por detrás de la imagen (z-index 1). Solo se ve como
   marcador de posición cuando la foto todavía no existe. */
.ba__note { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-size: 13px; color: rgba(12,42,58,.45); }
.ba__before .ba__note { left: 25%; }
.ba__after .ba__note { left: 75%; }
.ba__label {
  position: absolute; top: 12px; z-index: 4;
  padding: 5px 12px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .03em;
  color: #fff; background: rgba(12,42,58,.62); backdrop-filter: blur(4px);
}
.ba__label--before { left: 12px; }
.ba__label--after { right: 12px; }
.ba__range {
  position: absolute; inset: 0; z-index: 6;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; background: #fff; transform: translateX(-1.5px);
  z-index: 5; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(12,42,58,.08);
}
.ba__handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--brand-deep);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   Responsive
   ============================================================ */

/* Notebooks chicos: compacta el menú para que no desborde el header */
@media (max-width: 1080px) {
  .nav { gap: 17px; }
  .nav a { font-size: 14.5px; }
  .header__cta { padding: 10px 14px; font-size: 14px; }
  .brand__mark { width: 42px; height: 42px; }
  .brand__text strong { font-size: 17.5px; }
}

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding-top: 50px; }
  .hero__media { max-width: 440px; margin: 0 auto; width: 100%; }
  .benefits { grid-template-columns: 1fr; gap: 36px; }
  .benefits__head { position: static; }
  .doctor { grid-template-columns: 1fr; gap: 40px; }
  .doctor__media { max-width: 420px; margin: 0 auto; width: 100%; }
  .tech { grid-template-columns: 1fr; gap: 40px; }
  .tech__media { max-width: 380px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; gap: 34px; }
  .showcase__media { max-width: 320px; }
  .explain { grid-template-columns: 1fr; gap: 36px; margin-bottom: 56px; }
  .explain__media { order: -1; }
  .explain__diagram { max-width: 340px; }
  .when__grid { grid-template-columns: repeat(2, 1fr); }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .location { grid-template-columns: 1fr; }
  .location__map, .location__map iframe { min-height: 360px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* Menú hamburguesa: a partir de acá el nav completo ya no entra en el header */
@media (max-width: 1000px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    box-shadow: var(--shadow-md);
    transform: translateY(-130%);
    transition: transform .3s ease;
    visibility: hidden;
  }
  .nav.is-open { transform: translateY(0); visibility: visible; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
  .header__cta { display: none; }
  .hamburger { display: flex; }
  .topbar { font-size: 12.5px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .when__grid { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .benefits__grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 30px; }
  .hero__badge--exp { left: 0; }
  .hero__badge--rating { right: 0; }
  .section__head { margin-bottom: 40px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .hero__actions .btn { width: 100%; }
  .steps { grid-template-columns: 1fr; }
}
