:root {
  --teal: #1d615f;
  --teal-dark: #134542;
  --teal-soft: #e6f0ee;
  --paper: #f8faf9;
  --ink: #14302e;
  --muted: #4d6a67;
  --accent: #f0b43c;
  --accent-dark: #d99a1f;
  --wa: #1fa855;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 1rem; }

.wrap { width: min(1080px, 92%); margin-inline: auto; }
section { padding: 4.5rem 0; }

/* Masthead */
.masthead { background: var(--teal); }
.masthead img { width: 100%; max-height: 190px; object-fit: cover; object-position: center; }

/* Nav */
.nav {
  background: var(--teal-dark);
  position: sticky; top: 0; z-index: 20;
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0;
}
.nav ul { display: flex; gap: 1.4rem; list-style: none; flex-wrap: wrap; }
.nav a { color: #dcebe8; text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:hover { color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.7rem;
  border-radius: 999px;
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary { background: var(--accent); color: #2a1f00; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--teal); color: var(--teal); }
.btn-ghost:hover { background: var(--teal-soft); }
.btn-sm { padding: .55rem 1.2rem; font-size: .95rem; }
.btn:active { transform: scale(.98); }

/* Hero */
.hero { background: var(--teal); color: #fff; padding: 4rem 0 4.5rem; }
.hero .wrap {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center;
}
.hero .kicker { color: #bfdcd7; font-weight: 600; margin-bottom: .6rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin-bottom: 1.2rem; }
.hero p.lead { font-size: 1.2rem; color: #e3f0ee; max-width: 34em; margin-bottom: 2rem; }
.hero .actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero .btn-ghost { border-color: #9cc6c0; color: #fff; }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); }
.doctor-photo {
  justify-self: center;
  width: min(300px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 0 0 12px rgba(255,255,255,.12);
}

/* Síntomas */
.symptoms { background: var(--teal-soft); }
.symptoms .wrap {
  display: grid; grid-template-columns: 340px 1fr; gap: 3.5rem; align-items: center;
}
.icon-panel {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.icon-panel img { width: 100%; max-height: 380px; object-fit: contain; }
.symptoms .intro { color: var(--muted); margin-bottom: 1.6rem; max-width: 36em; }
.symptom-list { list-style: none; border-top: 1px solid #c3d8d4; }
.symptom-list li {
  padding: 1rem 0; border-bottom: 1px solid #c3d8d4;
}
.symptom-list strong { color: var(--teal-dark); font-size: 1.1rem; }
.symptom-list span { color: var(--muted); }
.symptoms .cta { margin-top: 2rem; }

/* Sobre el doctor */
.about .wrap { max-width: 780px; }
.about p { color: var(--muted); margin-bottom: 1rem; }
.facts { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; list-style: none; }
.facts li {
  background: var(--teal-soft); color: var(--teal-dark);
  padding: .6rem 1.1rem; border-radius: 999px; font-weight: 600;
}

/* FAQ */
.faq { background: #fff; }
.faq .wrap { max-width: 780px; }
details { border-bottom: 1px solid #d3e2df; padding: 1.1rem 0; }
details:first-of-type { border-top: 1px solid #d3e2df; }
summary {
  cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: .7rem; color: var(--muted); }

/* Contacto */
.contact { background: var(--teal-dark); color: #fff; }
.contact h2 { color: #fff; }
.contact .grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 3rem; align-items: start; }
.contact address { font-style: normal; }
.contact .row { margin-bottom: 1.4rem; }
.contact .label { color: #a8cdc7; font-size: .95rem; }
.contact .value { font-size: 1.25rem; font-weight: 600; }
.contact .value a { text-decoration: none; }
.contact .value a:hover { text-decoration: underline; }
.map {
  width: 100%; height: 380px; border: 0; border-radius: var(--radius);
  background: #cfe0dd;
}

/* Footer */
footer { background: #0e332f; color: #a8cdc7; padding: 1.6rem 0; font-size: .95rem; text-align: center; }

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

/* Responsive */
@media (max-width: 820px) {
  section { padding: 3.2rem 0; }
  .hero .wrap, .symptoms .wrap, .contact .grid { grid-template-columns: 1fr; gap: 2rem; }
  .doctor-photo { order: -1; width: 200px; }
  .hero { padding: 2.5rem 0 3rem; }
  .icon-panel { max-width: 260px; margin-inline: auto; }
  .nav ul { gap: .9rem; }
  .nav .btn { display: none; }
  .map { height: 300px; }
}

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