:root {
  --base: #2f3b4a;
  --base-soft: #f4f6f8;
  --text: #1f2730;
  --muted: #5b6673;
  --line: #dde2e8;
  --accent: var(--base);
}
.dr-barrera { --accent: #2b3a7a; }
.dra-corado { --accent: #b4375a; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  font-size: 17px;
}
a { color: var(--accent); }
header.site {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }
.nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { font-weight: 700; color: var(--base); text-decoration: none; font-size: 1.05rem; }
.nav ul { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text); font-size: 0.95rem; }
.nav a:hover { color: var(--accent); }
section { padding: 44px 0; }
section + section { border-top: 1px solid var(--line); }
h1 { font-size: 2rem; line-height: 1.25; margin: 0 0 12px; color: var(--base); }
h2 { font-size: 1.35rem; margin: 0 0 14px; color: var(--base); }
h3 { font-size: 1.05rem; margin: 0 0 6px; }
p { margin: 0 0 14px; }
.lead { font-size: 1.1rem; color: var(--muted); }
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: 10px;
  padding: 20px;
  background: #fff;
}
.card .role { color: var(--muted); font-size: 0.95rem; margin-bottom: 10px; }
.card .btn { margin-top: 10px; }
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.tag {
  display: inline-block;
  font-size: 0.85rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--base-soft);
  color: var(--text);
  margin: 0 6px 6px 0;
  border: 1px solid var(--line);
}
.photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: var(--base-soft);
  border: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.split { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 720px) { .split { grid-template-columns: 300px 1fr; } }
ul.plain { padding-left: 18px; margin: 0 0 14px; }
ul.plain li { margin-bottom: 6px; }
.sites { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .sites { grid-template-columns: 1fr 1fr; } }
.site-box { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.site-box strong { display: block; margin-bottom: 4px; }
.note { font-size: 0.9rem; color: var(--muted); }
footer.site {
  border-top: 1px solid var(--line);
  padding: 26px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Enlaces de acción dentro de cada sede */
.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.site-links a {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 12px;
  background: #fff;
}
.site-links a:hover { border-color: var(--accent); }
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.social a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
footer.site .social { margin-top: 10px; }

/* Pie: enlace discreto al acceso de médicos */
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
}
.staff-link {
  font-size: 0.8rem;
  text-decoration: none;
  color: #9aa4b0;
  white-space: nowrap;
}
.staff-link:hover { color: var(--base); text-decoration: underline; }

/* Fotos de los médicos */
img.photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--base-soft);
}

/* Logos de aseguradoras */
.insurers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
@media (min-width: 560px) { .insurers { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 820px) { .insurers { grid-template-columns: repeat(4, 1fr); } }
.insurers li {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
}
.insurers img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
