/* ============================================================
   Dra. Jennyfer Osorio C. — Ortodoncia
   Paleta: #E4CCAF · #ABB8D0 · #DCBA92 · #FFE9B7 sobre blanco/beige
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-soft: #fbf7f1;      /* beige muy claro */
  --sand: #e4ccaf;
  --tan: #dcba92;
  --blue: #abb8d0;
  --blue-soft: #eef1f7;
  --cream: #ffe9b7;
  --ink: #2b3445;          /* azul tinta del trazo del logo */
  --ink-2: #4a5468;
  --muted: #6e7383;
  --line: #ece3d6;
  --wa: #1fa855;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -18px rgba(43, 52, 69, .35);
  --max: 1120px;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--tan); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 64px 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 1px;
  background: var(--tan);
  vertical-align: middle;
  margin-right: 10px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 16px; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(36px, 6vw, 58px); }
h2 { font-size: clamp(30px, 4.4vw, 44px); }
h3 { font-size: 24px; }
h1 em, h2 em { font-style: italic; color: #b08d62; }
p { margin: 0 0 16px; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 620px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: #1f2735; }
.btn--wa { background: #fff; color: var(--ink); border-color: var(--sand); }
.btn--wa svg { color: var(--wa); }
.btn--wa:hover { background: var(--bg-soft); }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; white-space: nowrap; }
.brand-tag { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
@media (min-width: 960px) { .nav { display: flex; } }
.site-header .btn--sm { white-space: nowrap; flex: none; }
.brand-name { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .site-header .container { height: 64px; }
  .brand img { width: 34px; }
  .brand-name { font-size: 10.5px; letter-spacing: .12em; }
  .brand-tag { display: none; }
  .site-header .btn--sm { padding: 9px 14px; font-size: 13px; min-height: 40px; }
  .hero { padding-top: 36px; }
}

/* ---------- Hero + video ---------- */
.hero { padding: 56px 0 80px; background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-grid { gap: 28px; }
.hero-title h1 { margin-bottom: 0; }
.hero-title { order: 1; } .hero-media { order: 2; } .hero-body { order: 3; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1.15fr; grid-template-areas: "title media" "body media"; gap: 24px 56px; align-items: end; }
  .hero-title { grid-area: title; }
  .hero-body { grid-area: body; align-self: start; }
  .hero-media { grid-area: media; align-self: center; }
}
.hero .lead { margin-bottom: 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 13px; color: var(--ink-2); padding: 0; list-style: none; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tan); }

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 60px -35px rgba(43, 52, 69, .55);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-facade {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: 100%; border: 0; padding: 20px; margin: 0;
  background-size: cover; background-position: center;
  color: #fff; cursor: pointer; font-family: var(--sans);
}
.video-facade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,52,69,.15), rgba(43,52,69,.55)); }
.video-facade > * { position: relative; }
.video-play {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.video-play svg { width: 28px; height: 28px; margin-left: 4px; }
.video-facade:hover .video-play { transform: scale(1.06); }
.video-label { font-size: 14px; letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.video--pending .video-facade { cursor: default; }
.video--pending .video-play { opacity: .55; }
.video-caption { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

/* ---------- Pacientes ---------- */
.cards { display: grid; gap: 18px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column;
}
.card-num { font-family: var(--serif); font-size: 20px; color: var(--tan); margin-bottom: 18px; letter-spacing: .1em; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding: 8px 0 0; list-style: none; }
.chips li { font-size: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--ink-2); }

/* ---------- Diferenciales ---------- */
.features { display: grid; gap: 34px 40px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; }
.feature-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--blue-soft); color: var(--ink); display: grid; place-items: center; }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 22px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); font-size: 15px; margin: 0; }
.financing { margin-top: 48px; padding: 22px 26px; border-radius: var(--radius); background: #fff; border: 1px dashed var(--tan); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.financing p { margin: 0; color: var(--ink-2); font-size: 15px; }
.financing strong { color: var(--ink); }

/* ---------- Sobre mí ---------- */
.about { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .about { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.about-photo { position: relative; max-width: 420px; width: 100%; margin: 0 auto; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 35%; border-radius: var(--radius); }
.about-photo::after { content: ""; position: absolute; inset: 12px -10px -12px 10px; border: 1px solid var(--sand); border-radius: var(--radius); z-index: -1; }
.about { position: relative; z-index: 0; }
.cred { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.cred li { padding-left: 22px; position: relative; color: var(--ink-2); font-size: 15px; }
.cred li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 1px; background: var(--tan); }
.signature { font-family: var(--serif); font-style: italic; font-size: 22px; margin-top: 24px; color: #b08d62; }

/* ---------- Antes y después ---------- */
.ba-grid { display: grid; gap: 22px; }
@media (min-width: 720px) { .ba-grid { grid-template-columns: repeat(3, 1fr); } }
.ba-case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.ba-slot { position: relative; aspect-ratio: 1 / 1; background: var(--bg-soft); display: grid; place-items: center; }
.ba-slot img { width: 100%; height: 100%; object-fit: cover; }
.ba-slot .ba-tag { position: absolute; left: 10px; top: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; background: rgba(255,255,255,.9); padding: 3px 8px; border-radius: 999px; }
.ba-slot .ba-empty { width: 34px; height: 34px; color: var(--sand); }
.ba-info { padding: 16px 18px; }
.ba-info h3 { font-size: 20px; margin: 0 0 2px; }
.ba-info p { margin: 0; font-size: 13px; color: var(--muted); }
.note { font-size: 13px; color: var(--muted); text-align: center; margin-top: 22px; }

/* ---------- Reseñas ---------- */
.reviews-wrap { min-height: 220px; }

/* ---------- CTA ---------- */
.cta-band { display: grid; gap: 32px; align-items: center; background: var(--ink); color: #fff; border-radius: 24px; overflow: hidden; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.2fr .8fr; } }
.cta-band .cta-text { padding: 44px 28px; }
@media (min-width: 860px) { .cta-band .cta-text { padding: 56px 56px; } }
.cta-band h2 { color: #fff; }
.cta-band h2 em { color: var(--cream); }
.cta-band p { color: #d5dae4; }
.cta-band .btn--primary { background: var(--cream); color: var(--ink); }
.cta-band .btn--primary:hover { background: #fff; }
.cta-band .btn--wa { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.cta-band .btn--wa:hover { background: rgba(255,255,255,.08); }
.cta-band .btn--wa svg { color: #6fdd9a; }
.cta-photo { height: 100%; min-height: 280px; }
.cta-photo img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; object-position: center 40%; }

/* ---------- Contacto ---------- */
.contact { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact { grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: stretch; } }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: var(--bg-soft); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; filter: saturate(.85); }
.info-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 22px; }
.info-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.info-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--line); display: grid; place-items: center; }
.info-ico svg { width: 18px; height: 18px; }
.info-list h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin: 0 0 4px; color: var(--muted); }
.info-list p { margin: 0; font-size: 15px; }
.info-list a { text-decoration: none; border-bottom: 1px solid var(--sand); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; font-size: 15px; }
.hours span:nth-child(odd) { color: var(--muted); }
.social { display: flex; gap: 10px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .2s ease; }
.social a:hover { background: var(--bg-soft); }
.social svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 48px 0 110px; font-size: 14px; color: var(--ink-2); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 96px; height: auto; border-radius: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a, .footer-links button { color: var(--ink-2); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: var(--ink); text-decoration: underline; }
.copyright { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(31, 168, 85, .6);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70;
  max-width: 560px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(43,52,69,.4);
  padding: 20px 22px;
  font-size: 14px; color: var(--ink-2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0 0 14px; }
.cookie-banner .btn-row { gap: 8px; }
.cookie-banner .btn { min-height: 40px; padding: 8px 18px; font-size: 13px; }

/* ---------- Páginas legales ---------- */
.legal { padding: 56px 0 96px; }
.legal .container { max-width: 800px; }
.legal h1 { font-size: clamp(32px, 5vw, 46px); }
.legal h2 { font-size: 26px; margin-top: 44px; }
.legal h3 { font-size: 20px; margin-top: 28px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.legal th { background: var(--bg-soft); font-weight: 600; color: var(--ink); }
.back-link { display: inline-block; margin-bottom: 24px; font-size: 14px; text-decoration: none; color: var(--ink-2); }
.back-link:hover { color: var(--ink); }
mark.pendiente { background: var(--cream); color: var(--ink); padding: 0 4px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
