/* ==========================================================================
   Depósito Dental Providencia — hoja de estilos
   Sin dependencias externas: todo vive en este archivo.
   ========================================================================== */

:root {
  /* Azul de la marca DDP, tomado del logo: #00A1E6 */
  --brand-500: #00a1e6;   /* solo gráficos: 2.9:1 sobre blanco, NO usar en texto */
  --brand-900: #003d5c;
  --brand-700: #0072a6;   /* texto y botones: 5.31:1 sobre blanco */
  --brand-600: #0089c4;
  --brand-100: #cdebfa;
  --brand-50:  #eff8fe;

  --gold: #d99b2b;
  --gold-soft: #f6e9cf;

  --ink: #12232a;
  --body: #40525c;
  --muted: #6b7f8c;
  --line: #e0e9ef;

  --bg: #ffffff;
  --surface: #f5fafd;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(0, 61, 92, .06), 0 4px 12px rgba(0, 61, 92, .05);
  --shadow-md: 0 4px 8px rgba(0, 61, 92, .06), 0 16px 40px rgba(0, 61, 92, .09);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --wrap: 1140px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
  font-weight: 700;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-700); }

:focus-visible {
  outline: 3px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-700);
  color: #fff;
  padding: 12px 18px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------- Encabezado */

.topbar {
  background: var(--brand-900);
  color: #cbe6f5;
  font-size: .875rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  align-items: center;
  justify-content: center;
  padding-block: 9px;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar span { display: inline-flex; align-items: center; gap: 7px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.15; }
.brand-tag { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .13em;
             text-transform: uppercase; color: var(--brand-600); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 9px 13px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--body);
  font-weight: 600;
  font-size: .95rem;
}
.nav a:hover { background: var(--brand-50); color: var(--brand-700); }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 9px 11px;
  cursor: pointer;
  color: var(--ink);
}

/* ------------------------------------------------------------------ Botones */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-900); box-shadow: var(--shadow-md); }

.btn-ghost { background: #fff; color: var(--brand-700); border-color: var(--brand-100); }
.btn-ghost:hover { border-color: var(--brand-600); background: var(--brand-50); }

.btn-wa { background: #1faf54; color: #fff; }
.btn-wa:hover { background: #17913f; }

.btn-sm { padding: 10px 18px; font-size: .93rem; }

/* -------------------------------------------------------------------- Hero */

.hero {
  background:
    radial-gradient(900px 420px at 88% -8%, var(--brand-100), transparent 62%),
    linear-gradient(180deg, var(--brand-50), #fff 78%);
  padding-block: clamp(48px, 8vw, 88px);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--brand-100);
  color: var(--brand-700);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
}
.hero p.lead { font-size: 1.14rem; max-width: 54ch; color: var(--body); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: .93rem;
  font-weight: 600;
  color: var(--brand-900);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 9px; }
.hero-trust svg { color: var(--brand-600); flex: none; }

.hero-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.hero-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.hero-card .note { font-size: .93rem; color: var(--muted); margin-bottom: 22px; }

.hours { list-style: none; margin: 0 0 24px; padding: 0; font-size: .97rem; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.hours li:last-child { border-bottom: 0; }
.hours dt, .hours .day { color: var(--ink); font-weight: 600; }
.hours .time { color: var(--muted); font-variant-numeric: tabular-nums; }
.hours .closed { color: #b4434a; }

/* ---------------------------------------------------------------- Secciones */

.section { padding-block: clamp(56px, 8vw, 92px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.06rem; margin-bottom: 0; }

.kicker {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 12px;
}

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--brand-100); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .97rem; margin-bottom: 0; }

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--brand-50);
  color: var(--brand-700);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-num {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand-900);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .95rem;
}
.feature h3 { font-size: 1.05rem; margin-bottom: 5px; }
.feature p { font-size: .96rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------- Estadística */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--brand-900);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  color: #d6ebed;
  text-align: center;
}
.stats .num {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.stats .lbl { font-size: .9rem; }

/* ------------------------------------------------------------------ Precios */

.price-note {
  background: var(--gold-soft);
  border: 1px solid #ecd5a6;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-size: .95rem;
  color: #6b4c12;
  margin-top: 28px;
}

/* --------------------------------------------------------------- Testimonios */

.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand-600);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.quote p { font-size: 1rem; font-style: italic; color: var(--ink); }
.quote footer { font-size: .9rem; color: var(--muted); font-weight: 600; font-style: normal; }
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }

/* ---------------------------------------------------------------------- FAQ */

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 22px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-600);
  flex: none;
  line-height: 1;
}
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding-bottom: 18px; font-size: .97rem; margin: 0; }

/* ------------------------------------------------------------------ Contacto */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: start;
}
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { flex: none; color: var(--brand-600); margin-top: 3px; }
.contact-list strong { display: block; color: var(--ink); font-size: .88rem;
                       text-transform: uppercase; letter-spacing: .06em; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { text-decoration: underline; }

.map {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.map iframe { display: block; width: 100%; height: 420px; border: 0; }

/* --------------------------------------------------------------------- CTA */

.cta {
  background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(36px, 6vw, 60px);
  text-align: center;
}
.cta h2 { color: #fff; }
.cta p { color: #cbe6f5; max-width: 56ch; margin-inline: auto; font-size: 1.06rem; }
.cta .hero-actions { justify-content: center; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ------------------------------------------------------------------- Footer */

.site-footer {
  background: var(--brand-900);
  color: #a7c9dd;
  padding-block: 56px 0;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 44px;
}
.site-footer h4 {
  color: #fff;
  font-size: .82rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.site-footer a { color: #cbe6f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-tag { color: #7db4d2; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-block: 22px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: .88rem;
}

/* --------------------------------------------------- Páginas de texto legal */

.page-hero {
  background: var(--brand-50);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(40px, 6vw, 64px);
}
.page-hero p { margin: 0; color: var(--muted); }

.prose { max-width: 76ch; padding-block: clamp(40px, 6vw, 72px); }
.prose h2 { font-size: 1.45rem; margin-top: 2.2em; }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); color: var(--ink); }
.toc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.toc h2 { font-size: 1rem !important; margin: 0 0 12px !important; }
.toc ol { margin: 0; }

/* ------------------------------------------------------- Botón WhatsApp fijo */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #1faf54;
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 22px rgba(31, 175, 84, .42);
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.07); }

/* ------------------------------------------------------------- Adaptaciones */

@media (max-width: 940px) {
  .hero-grid,
  .contact-grid,
  .grid-3,
  .grid-2 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 20px;
    gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 12px; }
  .nav .btn { margin-top: 10px; justify-content: center; }
  .nav-toggle { display: inline-flex; }
  .site-header .wrap { position: relative; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .topbar .wrap { justify-content: flex-start; }
}

@media print {
  .site-header, .topbar, .wa-float, .cta, .map { display: none; }
  body { font-size: 12pt; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
