:root {
    --navy: #073b5c;
    --navy-deep: #042d48;
    --blue: #0d6f9f;
    --blue-soft: #eaf5fa;
    --orange: #f28a20;
    --orange-deep: #db7310;
    --ink: #173246;
    --muted: #687f8e;
    --line: #dce9ef;
    --surface: #ffffff;
    --page: #f3f8fb;
    --shadow: 0 20px 55px rgba(9, 56, 85, .10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
    background:
        radial-gradient(circle at 8% 10%, rgba(27, 137, 184, .08), transparent 25%),
        linear-gradient(180deg, #f9fcfd 0, var(--page) 100%);
    color: var(--ink);
}
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.directory-shell { max-width: 1420px; margin: 0 auto; padding: 26px 22px 38px; }
.hero {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    padding: 28px 42px 46px;
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(125deg, var(--navy-deep) 0%, var(--navy) 55%, #0a648e 100%);
    box-shadow: 0 26px 70px rgba(4, 45, 72, .22);
}
.hero::after { content: ""; position: absolute; inset: auto -90px -170px auto; width: 460px; height: 460px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.hero-decoration { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-decoration-one { width: 330px; height: 330px; right: 12%; top: -180px; background: rgba(255,255,255,.045); }
.hero-decoration-two { width: 170px; height: 170px; right: 3%; top: 90px; border: 36px solid rgba(242,138,32,.10); }
.hero-topbar, .hero-content { position: relative; z-index: 2; }
.hero-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo { width: 208px; height: auto; padding: 9px 13px; border-radius: 13px; background: #fff; object-fit: contain; }
.institutional-badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); font-size: 13px; font-weight: 700; }
.institutional-badge svg { width: 17px; fill: var(--orange); }
.hero-content { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: end; gap: 44px; margin-top: 50px; }
.hero-copy { max-width: 850px; }
.eyebrow, .section-kicker { display: block; color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
.hero h1 { max-width: 870px; margin: 10px 0 15px; font-size: clamp(30px, 4.1vw, 40px); line-height: 1.04; letter-spacing: -.045em; font-weight: 600; }
.hero h1 strong { color: #fff; font-weight: 600; }
.hero h1 .title-line { display: block; }
.hero-copy > p { margin: 0; max-width: 690px; color: rgba(255,255,255,.77); font-size: 18px; line-height: 1.55; }
.search-box { display: flex; align-items: center; width: min(780px, 100%); margin-top: 28px; padding: 7px; border-radius: 17px; background: #fff; box-shadow: 0 16px 36px rgba(0,0,0,.18); }
.search-icon { display: grid; place-items: center; flex: 0 0 46px; color: var(--blue); }
.search-icon svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.search-box input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; color: var(--ink); font-size: 16px; background: transparent; }
.search-box input::placeholder { color: #8aa0ae; }
.search-box button { align-self: stretch; border: 0; border-radius: 12px; padding: 0 20px; color: #fff; background: var(--orange); font-weight: 800; cursor: pointer; transition: .2s ease; }
.search-box button:hover { background: var(--orange-deep); transform: translateY(-1px); }
.hero .search-help { margin-top: 10px; color: rgba(255,255,255,.58); font-size: 13px; }
.hero-highlight { padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 22px; background: rgba(255,255,255,.08); backdrop-filter: blur(9px); }
.highlight-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 14px; background: var(--orange); }
.highlight-icon svg { width: 25px; fill: none; stroke: #fff; stroke-width: 1.8; }
.hero-highlight span, .hero-highlight small { display: block; color: rgba(255,255,255,.65); }
.hero-highlight span { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 800; }
.hero-highlight strong { display: block; margin: 7px 0; font-size: 30px; }
.hero-highlight small { font-size: 13px; line-height: 1.45; white-space: nowrap; }
.stats-grid { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 16px; margin: -24px auto 38px; padding: 0 28px; }
.stat-card { display: flex; align-items: center; gap: 15px; min-height: 112px; padding: 22px; border: 1px solid rgba(220,233,239,.9); border-radius: 20px; background: #fff; box-shadow: 0 16px 40px rgba(9,56,85,.09); }
.stat-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px; color: var(--blue); background: var(--blue-soft); }
.stat-icon svg { width: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-card strong { display: block; color: var(--orange); font-size: 38px; line-height: 1; font-weight: 900; }
.stat-card span:last-child { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.25; }
.stat-card-accent { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--orange), #f5a13f); }
.stat-card-accent .stat-icon { color: #fff; background: rgba(255,255,255,.18); }
.stat-card-accent strong, .stat-card-accent span:last-child { color: #fff; }
.directory-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin: 0 5px 20px; }
.directory-intro h2 { margin: 7px 0 5px; color: var(--navy); font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; }
.directory-intro p { margin: 0; color: var(--muted); }
.top-five-block { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.top-five-title { color: var(--navy); font-size: 13px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.quick-filters { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; max-width: 650px; }
.province-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy); background: #fff; font-size: 13px; font-weight: 750; cursor: pointer; transition: .18s ease; }
.province-chip span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; color: var(--blue); background: var(--blue-soft); font-size: 11px; }
.province-chip:hover, .province-chip.active { border-color: var(--orange); color: #fff; background: var(--orange); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(242,138,32,.2); }
.province-chip:hover span, .province-chip.active span { color: var(--orange-deep); background: #fff; }
.directory-grid { display: grid; grid-template-columns: minmax(580px, 1fr) 405px; gap: 22px; align-items: start; }
.map-card, .result-card { border: 1px solid rgba(220,233,239,.88); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.map-card { overflow: hidden; }
.map-card-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 24px 28px 10px; }
.map-card-head h3 { margin: 5px 0 0; color: var(--navy); font-size: 28px; }
.map-instruction { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 16px; font-weight: 750; }
.map-instruction i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(242,138,32,.13); }
.map-stage { position: relative; min-height: 590px; padding: 8px 22px 24px; background: radial-gradient(circle at 50% 45%, #fff 0, #f5fafc 68%, #edf6f9 100%); }
.argentina-map { display: block; width: 100%; max-width: 760px; height: auto; margin: 0 auto; background: transparent !important; }
.provincia { fill: #dcecf3; stroke: #fff; stroke-width: 1.5; cursor: pointer; outline: none; transition: fill .18s ease, filter .18s ease, transform .18s ease; transform-box: fill-box; transform-origin: center; }
.provincia:hover { fill: var(--orange) !important; filter: drop-shadow(0 4px 6px rgba(8,56,84,.18)); }
.provincia.active { fill: var(--orange-deep) !important; filter: drop-shadow(0 5px 8px rgba(8,56,84,.25)); }
.provincia:focus-visible { stroke: var(--navy); stroke-width: 3; }
.map-tooltip { position: fixed; z-index: 50; pointer-events: none; opacity: 0; transform: translate(-50%, -115%); padding: 9px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; color: #fff; background: var(--navy-deep); box-shadow: 0 10px 30px rgba(4,45,72,.25); font-size: 12px; white-space: nowrap; transition: opacity .12s ease; }
.map-tooltip strong { color: #fff; }
.map-tooltip.visible { opacity: 1; }
.result-card { position: sticky; top: 18px; min-height: 630px; max-height: calc(100vh - 36px); overflow: auto; scrollbar-width: thin; scrollbar-color: #bdd3dd transparent; }
.empty-state, .loading { min-height: 628px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 38px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 22px; border-radius: 24px; color: var(--orange); background: #fff4e9; }
.empty-icon svg { width: 35px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.empty-state > span:not(.empty-icon) { color: var(--navy); font-size: 24px; font-weight: 850; }
.empty-state p { max-width: 275px; margin: 10px 0; color: var(--muted); line-height: 1.55; }
.empty-state small { color: #9aabb5; }
.loading { color: var(--blue); font-weight: 750; }
.loading::before { content: ""; width: 34px; height: 34px; margin-bottom: 16px; border: 3px solid #dbeaf0; border-top-color: var(--orange); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-head { position: sticky; top: 0; z-index: 2; padding: 26px 26px 20px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.result-label { color: var(--orange-deep); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.result-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 7px; }
.result-head h2 { margin: 0; color: var(--navy); font-size: 28px; line-height: 1.15; }
.result-count { flex: 0 0 auto; min-width: 52px; height: 52px; display: grid; place-items: center; padding: 0 12px; border-radius: 16px; color: #fff; background: var(--orange); font-size: 24px; font-weight: 900; }
.result-summary { margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.specialist-list { list-style: none; margin: 0; padding: 16px; }
.specialist-list li { display: flex; align-items: center; gap: 0; margin-bottom: 10px; padding: 14px; border: 1px solid #e5eef2; border-radius: 16px; background: #fff; transition: .18s ease; }
.specialist-list li:hover { border-color: #bfdbe7; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(9,56,85,.08); }
.specialist-info { min-width: 0; }
.specialist-list strong { display: block; overflow: hidden; color: var(--ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.specialist-list span { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--muted); font-size: 12px; }
.specialist-list span svg { width: 13px; fill: none; stroke: var(--orange); stroke-width: 2; }
.no-results { display: block !important; padding: 26px !important; color: var(--muted); text-align: center; }
.directory-footer { display: flex; justify-content: space-between; gap: 30px; margin-top: 24px; padding: 24px 6px 5px; color: var(--muted); }
.directory-footer strong, .directory-footer span { display: block; }
.directory-footer strong { color: var(--navy); margin-bottom: 5px; }
.directory-footer span { font-size: 13px; }
.footer-mark { align-self: center; color: var(--orange) !important; font-size: 18px !important; font-weight: 900; }
@media (max-width: 1050px) {
    .hero-content { grid-template-columns: 1fr; gap: 25px; }
    .hero-highlight { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .directory-grid { grid-template-columns: 1fr; }
    .result-card { position: static; min-height: 420px; max-height: none; }
    .empty-state, .loading { min-height: 420px; }
    .directory-intro { align-items: flex-start; flex-direction: column; }
    .top-five-block { align-items: flex-start; }
    .quick-filters { justify-content: flex-start; }
}
@media (max-width: 680px) {
    .directory-shell { padding: 12px; }
    .hero { min-height: 0; padding: 20px 18px 32px; border-radius: 22px; }
    .hero-topbar { align-items: flex-start; }
    .brand-logo { width: 165px; }
    .hero-content { margin-top: 38px; }
    .hero h1 { font-size: clamp(33px, 10vw, 45px); }
    .hero-copy > p { font-size: 16px; }
    .search-box { align-items: stretch; flex-wrap: wrap; padding: 7px; }
    .search-icon { flex-basis: 42px; }
    .search-box input { width: calc(100% - 42px); }
    .search-box button { width: 100%; min-height: 44px; margin-top: 4px; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 9px; margin: -14px 9px 30px; }
    .stat-card { min-height: 118px; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
    .stat-icon { width: 40px; height: 40px; flex-basis: 40px; }
    .stat-card strong { font-size: 31px; }
    .directory-intro { margin-left: 3px; margin-right: 3px; }
    .quick-filters { flex-wrap: nowrap; width: calc(100vw - 24px); overflow-x: auto; padding-bottom: 6px; }
    .province-chip { flex: 0 0 auto; }
    .map-card, .result-card { border-radius: 19px; }
    .map-card-head { align-items: flex-start; padding: 20px 18px 6px; }
    .map-instruction { display: none; }
    .map-stage { min-height: auto; padding: 5px 8px 20px; }
    .result-card { min-height: 360px; }
    .empty-state, .loading { min-height: 360px; padding: 28px 20px; }
    .result-head { padding: 22px 18px 18px; }
    .specialist-list { padding: 12px; }
    .directory-footer { flex-direction: column; }
}
