/* ───────────────────────────────────────────────────────────────────────────
   Estilos para las páginas de servicio (HTML estático) — Dra. Alva Damaris Ortiz
   Diseño coherente con el sitio principal (navy + Cormorant Garamond + DM Sans)
   ─────────────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

:root {
  --navy: #1a3a7c;
  --navy-dark: #0d1b3e;
  --navy-darkest: #050d1f;
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --bg-light: #eef2fb;
  --border: #dde6f5;
  --text: #0d1b3e;
  --text-soft: #4a5a7a;
  --wa: #25d366;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }

/* ── HEADER ── */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-light); border-bottom: 1px solid var(--border);
  height: 70px; display: flex; align-items: center;
}
.site-header .inner {
  max-width: 1100px; margin: 0 auto; width: 100%;
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.brand .name { font-family: var(--serif); font-weight: 600; font-size: 14px; color: var(--navy-dark); letter-spacing: .02em; white-space: nowrap; }
.brand .role { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); }
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-dark); text-decoration: none; transition: color .2s; }
.header-nav a:hover { color: var(--blue); }
.header-cta {
  background: var(--navy); color: #fff !important; text-decoration: none;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 22px; border-radius: 6px; transition: background .2s, transform .2s;
}
.header-cta:hover { background: var(--navy-dark); transform: translateY(-1px); }
@media (max-width: 720px) {
  .header-nav a:not(.header-cta) { display: none; }
}

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--bg-light); border-bottom: 1px solid var(--border); }
.breadcrumb ol {
  max-width: 1100px; margin: 0 auto; padding: 12px 24px;
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--text-soft);
}
.breadcrumb a { color: var(--navy); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: #9ca3af; }

/* ── HERO ── */
.hero {
  background: radial-gradient(circle at 20% 20%, rgba(26,58,124,.55) 0%, transparent 55%),
              radial-gradient(circle at 85% 80%, rgba(37,99,235,.35) 0%, transparent 55%),
              var(--navy-darkest);
  color: #fff; padding: 72px 24px;
}
.hero .inner { max-width: 880px; margin: 0 auto; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(147,197,253,.9); border: 1px solid rgba(96,165,250,.3);
  background: rgba(96,165,250,.07); padding: 5px 14px; border-radius: 20px; margin-bottom: 22px;
}
.hero .eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.hero h1 { font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 5.5vw, 58px); line-height: 1.1; margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--blue-light); }
.hero .subtitle { font-size: clamp(15px, 1.8vw, 18px); color: rgba(196,218,255,.82); max-width: 620px; line-height: 1.75; margin-bottom: 30px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── BOTONES ── */
.btn { display: inline-block; font-family: var(--sans); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 14px 30px; border-radius: 6px; cursor: pointer; transition: all .25s; border: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; box-shadow: 0 8px 28px rgba(37,99,235,.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 38px rgba(37,99,235,.45); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #1ebe5d; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: rgba(147,197,253,.95); border: 1px solid rgba(96,165,250,.4); }
.btn-ghost:hover { background: rgba(96,165,250,.1); }
.btn-outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ── CONTENIDO ── */
main { display: block; }
.section { padding: 56px 24px; }
.section .inner { max-width: 820px; margin: 0 auto; }
.section:nth-child(even) { background: var(--bg-light); }
.section h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; margin-bottom: 18px; color: var(--navy-dark); }
.section h2 em { color: var(--navy); font-style: italic; }
.section h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 24px 0 10px; color: var(--navy-dark); }
.section p { font-size: 16px; line-height: 1.85; color: var(--text-soft); margin-bottom: 16px; }
.section p strong { color: var(--navy-dark); }
.section ul { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.section ul li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 16px; line-height: 1.7; color: var(--text-soft); }
.section ul li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.lead p { font-size: 17px; color: #36456a; }

/* aviso educativo */
.disclaimer { font-size: 13px; color: #6b7a99; background: #f6f9ff; border: 1px solid var(--border); border-left: 3px solid var(--blue-light); border-radius: 8px; padding: 14px 18px; margin-top: 24px; }

/* ── FAQ (sin JS, con <details>) ── */
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.faq details[open] { border-color: var(--navy); box-shadow: 0 8px 24px rgba(26,58,124,.1); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 14px; font-family: var(--serif); font-size: 19px; color: var(--navy-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #eff6ff; border: 1px solid #bfdbfe; display: flex; align-items: center; justify-content: center; font-size: 16px; transition: transform .3s; }
.faq details[open] summary::after { content: "−"; background: var(--navy); color: #fff; border-color: var(--navy); }
.faq .answer { padding: 0 22px 20px; }
.faq .answer p { font-size: 15px; line-height: 1.8; color: var(--text-soft); border-top: 1px solid #eef2fb; padding-top: 14px; }

/* ── CTA / CONTACTO ── */
.cta { background: var(--navy-dark); color: #fff; padding: 64px 24px; }
.cta .inner { max-width: 880px; margin: 0 auto; text-align: center; }
.cta .eyebrow { color: #93c5fd; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 12px; }
.cta h2 { font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 4vw, 46px); color: #fff; margin-bottom: 12px; }
.cta h2 em { color: var(--blue-light); font-style: italic; }
.cta > .inner > p { color: rgba(255,255,255,.55); margin-bottom: 34px; }
.clinics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; }
.clinic-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 24px; }
.clinic-card .tag { font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 8px; }
.clinic-card .cname { font-family: var(--serif); font-size: 20px; color: #fff; margin-bottom: 12px; }
.clinic-card .row { display: flex; gap: 8px; margin-bottom: 7px; font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; }
.clinic-card .btn-wa { width: 100%; text-align: center; margin-top: 14px; font-size: 13px; }
@media (max-width: 640px) { .clinics { grid-template-columns: 1fr; } }

/* ── PÁGINAS RELACIONADAS ── */
.related { padding: 48px 24px; background: #fff; }
.related .inner { max-width: 1000px; margin: 0 auto; }
.related h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; text-align: center; margin-bottom: 28px; color: var(--navy-dark); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related-grid a { display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; text-decoration: none; transition: all .25s; }
.related-grid a:hover { transform: translateY(-3px); border-color: var(--navy); box-shadow: 0 12px 30px rgba(26,58,124,.1); }
.related-grid .r-title { font-family: var(--serif); font-size: 19px; color: var(--navy-dark); margin-bottom: 6px; }
.related-grid .r-desc { font-size: 13px; color: var(--text-soft); line-height: 1.5; }

/* ── FOOTER ── */
.site-footer { background: var(--navy-darkest); color: rgba(255,255,255,.6); padding: 48px 24px 32px; }
.site-footer .inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.site-footer h4 { font-family: var(--sans); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-light); margin-bottom: 14px; }
.site-footer .fname { font-family: var(--serif); font-size: 22px; color: #fff; margin-bottom: 8px; }
.site-footer p { font-size: 13px; line-height: 1.7; margin-bottom: 6px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.6); text-decoration: none; font-size: 13px; transition: color .2s; }
.site-footer a:hover { color: var(--blue-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 12px; color: rgba(255,255,255,.4); text-align: center; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ── BOTÓN FLOTANTE WHATSAPP ── */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 1100;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wa);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45); text-decoration: none;
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
