:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --ink: #122033;
  --muted: #667085;
  --line: #dbe3ee;
  --soft: #eef4ff;
  --blue: #1f5fbf;
  --blue-2: #174a96;
  --teal: #0f766e;
  --green: #12805c;
  --amber: #b7791f;
  --red: #b42318;
  --red-soft: #fff1f0;
  --yellow-ve: #f4c542;
  --blue-ve: #213a8f;
  --red-ve: #c1121f;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(18, 32, 51, 0.08);
  --shadow-sm: 0 8px 25px rgba(18, 32, 51, 0.06);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: white;
  padding: .75rem 1rem; border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus { left: 0; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
}
.nav { max-width: var(--max); margin: 0 auto; padding: .85rem 1rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.brand { display:flex; align-items:center; gap:.75rem; text-decoration:none; min-width: 0; }
.flag { width: 44px; height: 30px; border:1px solid var(--line); border-radius: 5px; overflow:hidden; flex-shrink: 0; box-shadow: var(--shadow-sm); }
.flag div { height: 33.333%; }
.flag .f1 { background: var(--yellow-ve); }
.flag .f2 { background: var(--blue-ve); display:flex; align-items:center; justify-content:center; color:white; font-size: 5px; letter-spacing:1px; line-height:1; }
.flag .f3 { background: var(--red-ve); }
.brand-title { font-weight: 750; letter-spacing:-.02em; font-size: .98rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.brand-subtitle { font-size:.78rem; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nav-links { display:flex; gap:.2rem; align-items:center; }
.nav-links a { text-decoration:none; color:var(--muted); padding:.55rem .75rem; border-radius: 999px; font-size:.92rem; font-weight: 600; }
.nav-links a:hover, .nav-links a:focus { background: var(--soft); color: var(--blue); outline: none; }
.mobile-toggle { display:none; border:1px solid var(--line); background: white; border-radius: 999px; padding:.5rem .75rem; font-weight:700; color:var(--blue); }
.hero { background: linear-gradient(150deg, #ffffff 0%, #f1f7ff 48%, #fff8ed 100%); border-bottom:1px solid var(--line); }
.hero-inner { max-width: var(--max); margin:0 auto; padding: 4.5rem 1rem 3.4rem; display:grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items:center; }
.eyebrow { color: var(--blue); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .76rem; }
h1 { font-size: clamp(2.05rem, 6vw, 4.4rem); line-height: .98; letter-spacing:-.06em; margin: .75rem 0 1rem; }
.lead { font-size: clamp(1.02rem, 2vw, 1.25rem); color: #344054; max-width: 760px; }
.hero-card { background: rgba(255,255,255,.82); border:1px solid var(--line); border-radius: var(--radius); padding:1.2rem; box-shadow: var(--shadow); }
.hero-card h2 { font-size:1.05rem; margin:.25rem 0 .55rem; }
.hero-card ul { margin:.8rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1.5rem; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.45rem; border:none; text-decoration:none; border-radius: 999px; padding:.85rem 1.15rem; font-weight: 800; cursor:pointer; transition: transform .18s, box-shadow .18s, background .18s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color:#fff; box-shadow: 0 12px 22px rgba(31,95,191,.2); }
.btn-primary:hover { background: var(--blue-2); }
.btn-secondary { background:#fff; color: var(--blue); border:1px solid var(--line); }
.btn-green { background: var(--green); color:#fff; }
.btn-muted { background: #f2f4f7; color:#344054; }
.notice { border-radius: var(--radius); border:1px solid; padding:1rem 1.1rem; display:flex; gap:.8rem; align-items:flex-start; margin: 1rem 0; }
.notice strong { display:block; margin-bottom:.25rem; }
.notice-red { background: var(--red-soft); border-color:#ffccc7; color:#6b1d16; }
.notice-blue { background:#eff6ff; border-color:#bfdbfe; color:#123c75; }
.notice-green { background:#ecfdf3; border-color:#bbf7d0; color:#065f46; }
.section { max-width: var(--max); margin:0 auto; padding: 3.5rem 1rem; }
.section-tight { padding-top: 2rem; padding-bottom: 2rem; }
.section-head { max-width: 780px; margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); line-height:1.1; letter-spacing:-.035em; margin: 0 0 .7rem; }
h3 { font-size:1.12rem; margin: 0 0 .45rem; }
.muted { color: var(--muted); }
.grid { display:grid; gap:1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card { background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); padding:1.2rem; box-shadow: var(--shadow-sm); }
.icon { width:42px; height:42px; border-radius: 14px; display:flex; align-items:center; justify-content:center; background:var(--soft); color:var(--blue); font-weight:900; margin-bottom:.8rem; }
.kicker { font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; color:var(--blue); font-weight:800; }
.steps { counter-reset: steps; }
.step { position:relative; padding-left: 3.4rem; }
.step::before { counter-increment: steps; content: counter(steps); position:absolute; left:0; top:1.1rem; width: 2.25rem; height:2.25rem; border-radius:999px; background: var(--blue); color:white; display:flex; align-items:center; justify-content:center; font-weight:900; }
.list-check { list-style:none; padding:0; margin:0; }
.list-check li { display:flex; gap:.55rem; margin:.55rem 0; color:#344054; }
.list-check li::before { content:"✓"; color: var(--green); font-weight:900; }
.list-no li::before { content:"✕"; color: var(--red); }
.band { background: #0b2550; color:white; }
.band .muted { color:#cbd5e1; }
.band .card { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color:white; }
.band .btn-secondary { color:#fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.specialties { display:flex; flex-wrap:wrap; gap:.55rem; }
.pill { padding:.5rem .75rem; border:1px solid var(--line); background:white; border-radius:999px; color:#344054; font-weight:650; font-size:.92rem; }
.coordinator { display:flex; gap:1rem; align-items:flex-start; }
.avatar { width:56px; height:56px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), #7c3aed); color:white; display:flex; align-items:center; justify-content:center; font-weight:900; flex-shrink:0; }

.avatar-photo { background: #eef4ff; overflow:hidden; border: 3px solid rgba(255,255,255,.95); box-shadow: 0 10px 24px rgba(3,31,74,.14); }
.avatar-photo img { width:100%; height:100%; object-fit:cover; display:block; }

.legal-grid a { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1rem; text-decoration:none; }
.legal-grid a:hover { border-color: var(--blue); }
details { background:white; border:1px solid var(--line); border-radius: var(--radius-sm); padding:1rem 1.1rem; }
details + details { margin-top:.7rem; }
summary { cursor:pointer; font-weight:800; color:#1d2939; }
details p { color:var(--muted); margin:.7rem 0 0; }
.site-footer { background:#fff; border-top:1px solid var(--line); }
.footer-inner { max-width: var(--max); margin:0 auto; padding:2rem 1rem; display:grid; grid-template-columns: 1.4fr .6fr; gap:1rem; color:var(--muted); font-size:.92rem; }
.footer-links { display:flex; flex-wrap:wrap; gap:.75rem; justify-content:flex-end; }
.footer-links a { color:var(--muted); text-decoration:none; font-weight:650; }
.footer-links a:hover { color:var(--blue); }
.filters { display:flex; gap:.75rem; flex-wrap:wrap; margin: 1rem 0 1.25rem; }
.input, .select { width:100%; padding:.75rem .85rem; border:1px solid var(--line); border-radius:999px; background:white; font:inherit; }
.input-wrap { flex:1 1 260px; }
.select-wrap { flex:0 1 240px; }
.directory-grid { display:grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap:1rem; }
.tag { display:inline-flex; align-items:center; border-radius:999px; padding:.25rem .55rem; background:#ecfdf3; color:#067647; font-size:.78rem; font-weight:800; margin:.25rem .25rem .25rem 0; }
.tag-neutral { background:#f2f4f7; color:#344054; }
.placeholder { border-style:dashed; background: linear-gradient(180deg, #fff, #fafcff); }
.small { font-size:.86rem; }
@media (max-width: 840px) {
  .hero-inner, .grid-2, .grid-3, .footer-inner { grid-template-columns:1fr; }
  .nav { align-items:flex-start; }
  .mobile-toggle { display:block; }
  .nav-links { display:none; position:absolute; top:66px; left:1rem; right:1rem; background:white; border:1px solid var(--line); border-radius: var(--radius); padding:.65rem; box-shadow: var(--shadow); flex-direction:column; align-items:stretch; }
  .nav-links.open { display:flex; }
  .nav-links a { border-radius: var(--radius-sm); }
  .footer-links { justify-content:flex-start; }
}
@media (max-width: 520px) {
  .hero-inner { padding-top: 3rem; }
  .actions .btn { width:100%; }
  .brand-title { max-width: 230px; }
  .brand-subtitle { max-width: 230px; }
}

/* Ajustes de identidad visual basados en el nuevo logo */
:root {
  --bg: #f8fbff;
  --surface: #ffffff;
  --ink: #08234f;
  --muted: #5f6f86;
  --line: #d9e4f2;
  --soft: #eef6ff;
  --blue: #082f66;
  --blue-2: #061f46;
  --green: #0f766e;
  --amber: #f4b31a;
  --red: #e52e36;
  --red-soft: #fff1f2;
  --yellow-ve: #f4b31a;
  --blue-ve: #082f66;
  --red-ve: #e52e36;
}
.site-header {
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 30px rgba(8,35,79,.05);
}
.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(8,35,79,.08);
  background: #fff;
}
.brand-title { color: var(--blue); }
.brand-subtitle { color: #6d95cf; font-weight: 650; }
.hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(244,179,26,.18) 0, transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(109,149,207,.22) 0, transparent 34%),
    linear-gradient(145deg, #ffffff 0%, #f0f7ff 52%, #fff8eb 100%);
}
.hero-inner { align-items: center; }
.eyebrow, .kicker { color: var(--blue); }
h1, h2, h3 { color: var(--blue-2); }
.lead { color: #29425f; }
.hero-logo-card {
  padding: 1.05rem;
  background: rgba(255,255,255,.92);
  position: relative;
  overflow: hidden;
}
.hero-logo-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--yellow-ve), var(--blue-ve), var(--red-ve));
}
.hero-logo {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: .35rem auto .25rem;
  border-radius: 16px;
}
.hero-logo-compact { max-width: 460px; }
.hero-card-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8,47,102,.22), transparent);
  margin: .85rem 0 1rem;
}
.btn-primary { background: var(--blue); box-shadow: 0 12px 22px rgba(8,47,102,.18); }
.btn-primary:hover { background: var(--blue-2); }
.btn-green { background: #0f766e; box-shadow: 0 12px 22px rgba(15,118,110,.14); }
.btn-secondary { color: var(--blue); }
.notice-blue { background:#eff7ff; border-color:#bcd7f8; color:#0b376f; }
.notice-red { background:#fff1f2; border-color:#fecdd3; color:#7f1d1d; }
.card { box-shadow: 0 14px 38px rgba(8,35,79,.07); }
.step::before, .icon { background: linear-gradient(135deg, var(--blue), #6d95cf); }
.band { background: linear-gradient(135deg, #061f46, #082f66 58%, #0d3d7e); }
.pill { border-color:#d5e3f4; background: #ffffff; }
.avatar { background: linear-gradient(135deg, var(--blue), #6d95cf); }
.footer-brand { display:flex; align-items:center; gap:.65rem; margin-bottom:.35rem; color: var(--blue); }
.footer-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 12px; background:white; box-shadow: 0 6px 16px rgba(8,35,79,.08); }
@media (max-width: 840px) {
  .nav-links { top: 78px; }
  .brand-logo { width: 48px; height: 48px; }
}
@media (max-width: 520px) {
  .brand-title { max-width: 230px; }
  .brand-subtitle { max-width: 230px; }
  .hero-logo-card { order: -1; }
  .hero-logo { max-width: 100%; }
}


/* Directorio modular */
.specialist-card {
  position: relative;
  overflow: hidden;
}
.specialist-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow-ve), var(--blue-ve), var(--red-ve));
}
.areas {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: .7rem 0 .45rem;
}
.mini-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .2rem .5rem;
  background: #eef6ff;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 750;
}
.privacy-note {
  border-top: 1px solid var(--line);
  margin-top: .8rem;
  padding-top: .75rem;
}
code {
  background: #f2f4f7;
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  padding: .08rem .28rem;
  font-size: .92em;
}


/* === Rediseño junio 2026 / responsive === */
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.hero-badges { display:flex; gap:.65rem; flex-wrap:wrap; margin-bottom:1.2rem; }
.info-pill {
  display:inline-flex; align-items:center; padding:.5rem .8rem; border-radius:999px;
  background:#fff; border:1px solid var(--line); color:var(--blue); font-weight:750; font-size:.84rem;
  box-shadow: 0 8px 24px rgba(8,35,79,.05);
}
.coordinator-card { background: linear-gradient(180deg, #ffffff, #fbfdff); }
.avatar.alt { background: linear-gradient(135deg, #0f9488, #40b6ac); }
.tag-teal { background:#e6fffb; color:#0f766e; }
.footer-copy { margin:.15rem 0 .55rem; }
.footer-note { margin:.65rem 0 0; font-size:.82rem; color:var(--muted); }
.social-row { display:flex; flex-wrap:wrap; gap:.65rem; margin-top:.9rem; }
.social-link {
  width:42px; height:42px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center;
  background:#fff; border:1px solid var(--line); color:var(--blue); text-decoration:none;
  box-shadow: 0 10px 24px rgba(8,35,79,.06); transition: transform .18s, border-color .18s, color .18s;
}
.social-link:hover { transform: translateY(-2px); border-color: var(--blue); color: var(--red-ve); }
.social-link svg { width:20px; height:20px; fill:currentColor; }
.hero-directory .hero-inner { align-items:center; }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 840px) {
  .hero-inner, .grid-2, .grid-3, .grid-4, .footer-inner { grid-template-columns:1fr; }
  .nav { align-items:center; }
  .site-header { position: sticky; }
}
@media (max-width: 520px) {
  h1 { font-size: clamp(1.85rem, 10vw, 2.65rem); }
  .section { padding: 2.75rem 1rem; }
  .hero-inner { padding-top: 2.7rem; padding-bottom: 2.4rem; }
  .hero-badges { gap:.5rem; }
  .info-pill { width:100%; justify-content:center; }
  .coordinator { align-items:center; }
  .avatar, .avatar-photo { width:64px; height:64px; }
  .social-row { gap:.5rem; }
}

/* === Ajustes solicitados: lectura, serenidad tipográfica y móvil === */
body {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f7fbff;
}
h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
  font-weight: 700;
}
h1 {
  font-size: clamp(2.15rem, 4.7vw, 4.25rem);
  line-height: 1.08;
  max-width: 980px;
}
h2 {
  font-size: clamp(1.8rem, 3.1vw, 2.7rem);
  line-height: 1.14;
}
.hero .lead { max-width: 820px; }
.brand-logo,
.footer-brand img {
  border-radius: 50%;
  background: #fff;
}
.band {
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
  color: var(--blue-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band .kicker,
.band h2,
.band h3 { color: var(--blue-2); }
.band .muted { color: var(--muted); }
.band .card {
  background: #ffffff;
  border-color: #d9e4f2;
  color: var(--ink);
  box-shadow: 0 16px 38px rgba(8,35,79,.07);
}
.band .list-check li { color: #253a56; }
.band .list-no li { color: #253a56; }
.specialties { gap: .7rem; }
.pill {
  color: var(--blue-2);
  font-weight: 750;
  border-color: #cbdced;
  background: linear-gradient(180deg, #ffffff, #f9fcff);
}
.directory-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.specialist-card { padding: 1.45rem; }
.specialist-card .avatar-photo { width: 92px; height: 92px; }
.specialist-card .coordinator { align-items: center; }
.select, .input { min-height: 48px; font-size: 1rem; }
@media (max-width: 840px) {
  .nav { padding: .7rem 1rem; }
  .brand-title { white-space: normal; line-height: 1.15; }
  .brand-subtitle { white-space: normal; }
  .nav-links { top: 74px; }
  .hero-inner { gap: 1.25rem; }
}
@media (max-width: 560px) {
  h1 { font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.12; letter-spacing: -0.025em; }
  h2 { font-size: clamp(1.65rem, 7vw, 2.2rem); }
  .hero-inner { padding: 2rem 1rem 2.2rem; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-title { font-size: .9rem; max-width: 210px; }
  .brand-subtitle { font-size: .72rem; max-width: 210px; }
  .hero-logo-card { padding: .9rem; }
  .directory-grid { grid-template-columns: 1fr; }
  .filters { flex-direction: column; }
  .select-wrap, .input-wrap { flex: 1 1 auto; width: 100%; }
  .specialist-card .avatar-photo { width: 84px; height: 84px; }
}


/* Pensamiento propio de cada especialista */
.specialist-thought {
  margin: .85rem 0;
  padding: .75rem 1rem;
  border-left: 4px solid var(--yellow-ve);
  background: #fff8eb;
  border-radius: 14px;
  color: var(--blue-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  line-height: 1.45;
}
