:root {
  --ink: #1b2a3a;
  --body: #4a5b6e;
  --muted: #5c6c7e;
  --slate: #40536a;
  --text-soft: #34465a;
  --accent: oklch(0.55 0.11 240);
  --accent-deep: oklch(0.5 0.11 240);
  --accent-dark: oklch(0.48 0.1 240);
  --line: oklch(0.93 0.01 235);
  --line-soft: oklch(0.94 0.01 235);
  --bg: oklch(0.985 0.005 235);
  --card-bg: #fff;
  --wa: #25b267;
  --wa-dark: #1e9a58;
}

html { scroll-behavior: smooth; }

section[id], header[id] { scroll-margin-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: oklch(0.4 0.11 240); }

.serif {
  font-family: 'Newsreader', serif;
  font-style: italic;
  font-weight: 500;
  color: var(--accent-deep);
}

.container { max-width: 1140px; margin: 0 auto; }

.kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

h2 { font-size: 34px; margin: 0; font-weight: 800; letter-spacing: -0.8px; }

@keyframes pulseWa {
  0%, 100% { box-shadow: 0 6px 24px rgba(37, 178, 103, .35); }
  50% { box-shadow: 0 6px 34px rgba(37, 178, 103, .55); }
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, oklch(0.55 0.11 240), oklch(0.7 0.09 220));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .5px;
}
.nav-logo-text { line-height: 1.15; }
.nav-logo-name { font-weight: 800; font-size: 15px; }
.nav-logo-sub { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
.nav-links a { color: var(--slate); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}
.nav-cta:hover { background: oklch(0.47 0.12 240); }

/* HERO */
.hero {
  padding: 72px 24px 84px;
  background: linear-gradient(180deg, oklch(0.975 0.012 230) 0%, oklch(0.985 0.005 235) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid oklch(0.9 0.02 235);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 22px;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: oklch(0.65 0.16 150);
  display: inline-block;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -1.2px;
}
.hero-sub {
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--body);
  margin: 0;
  max-width: 500px;
  text-wrap: pretty;
}
.hero-sub-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--wa);
  color: #fff !important;
  padding: 15px 26px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  animation: pulseWa 2.8s ease-in-out infinite;
}
.btn-wa:hover { background: var(--wa-dark); }
.btn-wa svg { width: 21px; height: 21px; }
.btn-outline {
  padding: 15px 24px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-dark);
  border: 1.5px solid oklch(0.85 0.04 240);
}
.btn-outline:hover { background: #fff; }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 38px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}
.hero-stats strong { display: block; font-size: 20px; color: var(--ink); }
.hero-stats-sep { width: 1px; background: oklch(0.9 0.01 235); }
.hero-photo { position: relative; }

.placeholder {
  background: repeating-linear-gradient(45deg, oklch(0.94 0.02 235), oklch(0.94 0.02 235) 12px, oklch(0.965 0.012 235) 12px, oklch(0.965 0.012 235) 24px);
  display: grid;
  place-items: center;
  border: 1px solid oklch(0.9 0.02 235);
}
.placeholder span {
  font-family: monospace;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
}
.hero-photo-frame {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
  box-shadow: 0 24px 60px -24px rgba(27, 58, 92, .25);
}
.hero-card {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: #fff;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 12px 32px rgba(27, 58, 92, .14);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
}
.hero-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: oklch(0.95 0.02 240);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.hero-card-title { font-weight: 800; font-size: 14px; }
.hero-card-sub { font-size: 12.5px; color: var(--muted); }

/* HERO MOLAR */
.hero-molar { width: 96px; height: auto; flex: 0 0 auto; }
.hero-molar .molar-cavity,
.hero-molar .molar-brush,
.hero-molar .molar-foam,
.hero-molar .molar-sparkles path {
  transform-box: fill-box;
  transform-origin: center;
}
.molar-brush-handle { fill: var(--accent); }
.molar-cavity { animation: molarCavity 9s ease-in-out infinite; }
.molar-brush {
  transform: translate(70px, -40px);
  animation: molarBrush 9s ease-in-out infinite;
}
.molar-foam { opacity: 0; animation: molarFoam 9s ease-in-out infinite; }
.molar-sparkle-a { opacity: 0; animation: molarSparkleA 9s ease-in-out infinite; }
.molar-sparkle-b { opacity: 0; animation: molarSparkleB 9s ease-in-out infinite; }
@keyframes molarCavity {
  0%, 34% { opacity: 1; }
  46%, 90% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes molarBrush {
  0%, 12% { transform: translate(70px, -40px); }
  20% { transform: translate(0, 0) rotate(0deg); }
  24% { transform: translate(-5px, 0) rotate(-3deg); }
  28% { transform: translate(5px, 0) rotate(3deg); }
  32% { transform: translate(-5px, 0) rotate(-3deg); }
  36% { transform: translate(5px, 0) rotate(3deg); }
  40% { transform: translate(-5px, 0) rotate(-3deg); }
  44% { transform: translate(5px, 0) rotate(3deg); }
  48% { transform: translate(0, 0) rotate(0deg); }
  56%, 100% { transform: translate(70px, -40px); }
}
@keyframes molarFoam {
  0%, 20% { opacity: 0; transform: scale(.5); }
  26%, 46% { opacity: 1; transform: scale(1); }
  52%, 100% { opacity: 0; transform: scale(.9); }
}
@keyframes molarSparkleA {
  0%, 58% { opacity: 0; transform: scale(.4); }
  63% { opacity: 1; transform: scale(1.1); }
  70%, 100% { opacity: 0; transform: scale(.4); }
}
@keyframes molarSparkleB {
  0%, 62% { opacity: 0; transform: scale(.4); }
  67% { opacity: 1; transform: scale(1); }
  74%, 100% { opacity: 0; transform: scale(.4); }
}
/* TESTIMONIOS */
.testimonios {
  background: oklch(0.35 0.06 245);
  color: #fff;
  padding: 84px 24px;
}
.testimonios .kicker { color: oklch(0.78 0.07 230); }
.testimonios-head { text-align: center; margin-bottom: 44px; }
.testimonios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonio {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 26px;
  margin: 0;
}
.testimonio-stars {
  color: oklch(0.85 0.1 85);
  font-size: 15px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonio blockquote {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.65;
  font-family: 'Newsreader', serif;
  font-style: italic;
  color: rgba(255, 255, 255, .92);
}
.testimonio figcaption {
  font-size: 13.5px;
  font-weight: 700;
  color: oklch(0.78 0.07 230);
}
.testimonio figcaption span { font-weight: 500; color: rgba(255, 255, 255, .6); }

/* RESULTADOS */
.resultados { padding: 84px 24px; }
.section-head-split {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head-split .aside-link { font-weight: 700; font-size: 14.5px; }
.section-head-split .aside-note { font-size: 14px; color: var(--muted); font-weight: 600; }
.casos-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.caso {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.caso-foto { position: relative; margin: 0; }
.caso-foto + .caso-foto { border-top: 1px solid var(--line); }
.caso-foto img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.caso-foto figcaption {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  background: rgba(15, 23, 42, .62);
  padding: 4px 10px;
  border-radius: 999px;
}
.caso-info { padding: 14px 16px; }
.caso-titulo { font-weight: 800; font-size: 14px; }
.caso-detalle { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* DOCTORA */
.doctora {
  background: #fff;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 84px 24px;
}
.doctora-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.doctora-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
}
.doctora h2 { margin-bottom: 18px; }
.doctora p {
  color: var(--body);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
  text-wrap: pretty;
}
.doctora-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 26px;
}
.doctora-check {
  background: oklch(0.975 0.01 235);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  gap: 10px;
  align-items: center;
}

/* SERVICIOS */
.servicios { padding: 84px 24px; }
.section-head-center { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head-center h2 { font-size: 36px; margin-bottom: 14px; }
.section-head-center p { color: var(--body); font-size: 16px; line-height: 1.6; margin: 0; }
.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.servicio {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  transition: box-shadow .2s, transform .2s;
}
.servicio:hover {
  box-shadow: 0 16px 40px -18px rgba(27, 58, 92, .22);
  transform: translateY(-2px);
}
.servicio-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: oklch(0.955 0.02 240);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.servicio h3 { margin: 0 0 8px; font-size: 17px; font-weight: 800; }
.servicio p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--body); }
.servicio a { font-size: 13.5px; font-weight: 700; }

/* PRECIOS */
.precios { padding: 84px 24px; }
.precios .section-head-center { max-width: 640px; margin-bottom: 44px; }
.precios .section-head-center h2 { font-size: 34px; }
.precios .section-head-center p { font-size: 15.5px; }
.precios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.precio {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
}
.precio-nombre { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.precio-detalle { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.precio-valor { font-size: 30px; font-weight: 800; color: var(--accent-deep); }
.precio-valor .desde { font-size: 14px; font-weight: 700; color: var(--muted); }
.precio-cta {
  display: block;
  text-align: center;
  margin-top: 20px;
  padding: 12px;
  border-radius: 12px;
  border: 1.5px solid oklch(0.85 0.04 240);
  font-weight: 700;
  font-size: 14px;
}
.precio-cta:hover { background: oklch(0.975 0.01 235); }

/* FAQ */
.faq-section {
  background: #fff;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 84px 24px;
}
.faq-section .container { max-width: 780px; }
.faq-head { text-align: center; margin-bottom: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: oklch(0.99 0.003 235);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 800;
  font-size: 15.5px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}
.faq[open] summary::after { content: '−'; }
.faq-body {
  padding: 0 22px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--body);
}

/* BLOG */
.blog { padding: 84px 24px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card {
  display: block;
  color: inherit;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover { color: inherit; }
.blog-card:hover {
  box-shadow: 0 16px 40px -18px rgba(27, 58, 92, .22);
  transform: translateY(-2px);
}
.blog-card .placeholder { aspect-ratio: 16 / 9; border: none; }
.blog-card .placeholder span { font-size: 11.5px; padding: 6px 10px; border-radius: 6px; }
.blog-card-body { padding: 22px 24px; }
.blog-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.blog-card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 800; line-height: 1.3; }
.blog-card p { margin: 0 0 14px; font-size: 14px; line-height: 1.6; color: var(--body); }
.blog-card .leer { font-weight: 700; font-size: 13.5px; color: var(--accent-deep); }

.articulo {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 48px 56px;
  max-width: 820px;
  margin: 0 auto;
}
.articulo .blog-tag { font-size: 12.5px; }
.volver {
  all: unset;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent-deep);
  margin-bottom: 22px;
  display: inline-block;
}
.articulo h3,
.articulo-titulo {
  font-size: 32px;
  margin: 0 0 22px;
  font-weight: 800;
  letter-spacing: -0.7px;
  line-height: 1.15;
}
.articulo p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 18px;
  text-wrap: pretty;
}
.articulo-cta {
  margin-top: 30px;
  background: oklch(0.965 0.015 240);
  border-radius: 16px;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.articulo-cta-texto { font-weight: 800; font-size: 15.5px; }
.articulo-cta .btn-wa {
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  animation: none;
}

/* CONTACTO */
.contacto {
  padding: 84px 24px 96px;
  background: linear-gradient(180deg, oklch(0.985 0.005 235), oklch(0.965 0.015 235));
}
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contacto h2 { font-size: 38px; margin-bottom: 16px; letter-spacing: -0.9px; }
.contacto-sub {
  color: var(--body);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 28px;
  max-width: 460px;
}
.contacto .btn-wa { padding: 16px 28px; font-size: 16.5px; animation: none; }
.contacto .btn-wa svg { width: 22px; height: 22px; }
.contacto-datos {
  margin-top: 34px;
  display: grid;
  gap: 14px;
  font-size: 14.5px;
  color: var(--text-soft);
}
.contacto-dato { display: flex; gap: 12px; align-items: start; }
.contacto-dato .emoji { font-size: 17px; }
.contacto-dato .nota { color: var(--muted); }
.redes { margin-top: 28px; }
.redes-titulo {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.redes-botones { display: flex; gap: 12px; }
.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  font-size: 14px;
  color: #fff !important;
  transition: transform .2s, box-shadow .2s;
}
.btn-red svg { width: 18px; height: 18px; }
.btn-red:hover { transform: translateY(-2px); }
.btn-instagram {
  background: linear-gradient(45deg, #f9ce34, #ee2a7b 45%, #6228d7);
  box-shadow: 0 8px 20px -8px rgba(238, 42, 123, .5);
}
.btn-instagram:hover { box-shadow: 0 12px 26px -8px rgba(238, 42, 123, .6); }
.btn-tiktok {
  background: #0f0f0f;
  box-shadow: 0 8px 20px -8px rgba(15, 15, 15, .5);
}
.btn-tiktok:hover { background: #000; box-shadow: 0 12px 26px -8px rgba(0, 242, 234, .45); }
.contacto-mapa {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(45deg, oklch(0.93 0.02 235), oklch(0.93 0.02 235) 12px, oklch(0.955 0.012 235) 12px, oklch(0.955 0.012 235) 24px);
}

/* FOOTER */
.footer {
  background: oklch(0.25 0.04 245);
  color: rgba(255, 255, 255, .75);
  padding: 40px 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13.5px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand .logo-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 12.5px; }
.footer-brand strong { color: #fff; }
.footer-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: oklch(0.78 0.07 230); }
.footer-redes { display: flex; gap: 10px; }
.footer-red {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform .2s, background .2s;
}
.footer-red:hover { transform: translateY(-2px); }
.footer-red svg { width: 17px; height: 17px; }
.footer-red.instagram { background: linear-gradient(45deg, #f9ce34, #ee2a7b 45%, #6228d7); }
.footer-red.tiktok { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); }
.footer-red.tiktok:hover { background: rgba(255, 255, 255, .2); }

/* WHATSAPP FLOTANTE */
.wa-flotante {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  display: grid;
  place-items: center;
  animation: pulseWa 2.8s ease-in-out infinite;
  transition: transform .2s;
}
.wa-flotante:hover { background: var(--wa-dark); transform: scale(1.06); }
.wa-flotante svg { width: 30px; height: 30px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-grid,
  .doctora-grid,
  .contacto-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 40px; }
  .testimonios-grid,
  .servicios-grid,
  .precios-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .articulo { padding: 32px 24px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 34px; }
  .hero-stats { flex-wrap: wrap; }
  .hero-sub-row { gap: 14px; }
  .hero-molar { width: 72px; }
  .casos-grid { grid-template-columns: 1fr; }
  .doctora-checks { grid-template-columns: 1fr; }
}
