/* ── TOKENS (idénticos al resto del sitio) ── */
:root {
  --teal:     #0E7C7B;
  --teal-d:   #0A5F5E;
  --teal-l:   #E0F4F3;
  --teal-xl:  #F2FAFA;
  --blue:     #1A7AB0;
  --blue-l:   #E3F2FD;
  --green:    #2D7D35;
  --green-l:  #EAF5EB;
  --purple:   #6B3FA0;
  --purple-l: #EFE8F7;
  --gold:     #C8890F;
  --gold-l:   #FEF7E6;
  --red:      #B3403E;
  --red-l:    #FBEAEA;
  --text:     #1A2E35;
  --muted:    #527080;
  --border:   #C5DFE0;
  --surface:  #F4FBFB;
  --white:    #FFFFFF;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Sora', system-ui, sans-serif; background: var(--surface); color: var(--text); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── HEADER ── */
#site-header { position: sticky; top: 0; z-index: 200; background: var(--white); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.logo-icon { width: 32px; height: 32px; background: var(--teal); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; }
.logo-icon svg { width: 18px; height: 18px; }
.logo-text { font-size: 18px; font-weight: 600; color: var(--text); }
.logo-text strong { color: var(--teal); }
.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.header-nav a { padding: 6px 14px; font-size: 13.5px; font-weight: 500; border-radius: var(--r-pill); color: var(--muted); transition: color .15s, background .15s; }
.header-nav a:hover { color: var(--text); background: var(--surface); }
.nav-about { color: var(--teal) !important; }
.nav-empresa { color: var(--teal) !important; }
.nav-servicios { color: var(--teal) !important; }
.nav-business { color: var(--teal) !important; }
.btn-login { border: 1px solid var(--border) !important; color: var(--text) !important; }
.btn-register { background: var(--teal) !important; color: var(--white) !important; }
.btn-register:hover { background: var(--teal-d) !important; }

/* ── HERO (Home) ── */
#hero {
  position: relative; overflow: hidden;
  background: var(--white);
  padding: 72px 0 60px;
  text-align: center;
}
.ecg-bg {
  position: absolute; bottom: 0; left: 0; right: 0;
  width: 100%; height: 90px; opacity: .065; pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--teal); margin-bottom: 18px;
}
h1.hero-headline {
  font-size: clamp(26px, 4.5vw, 50px); font-weight: 700; line-height: 1.12;
  color: var(--text); margin-bottom: 16px;
}
.hero-sub {
  font-size: 16px; color: var(--muted);
  max-width: 480px; margin: 0 auto 40px;
}

/* Search box */
.search-box {
  display: flex; max-width: 680px; margin: 0 auto;
  background: var(--white);
  border: 2px solid var(--teal); border-radius: var(--r-pill);
  overflow: hidden;
  box-shadow: 0 4px 28px rgba(14,124,123,.14);
  transition: box-shadow .2s;
}
.search-box:focus-within { box-shadow: 0 6px 36px rgba(14,124,123,.24); }
.search-input-wrap {
  flex: 1; display: flex; align-items: center;
  padding: 0 0 0 20px; gap: 8px;
}
.search-icon { color: var(--muted); font-size: 18px; flex-shrink: 0; }
#search-input {
  flex: 1; border: none; outline: none;
  font-family: inherit; font-size: 15px; color: var(--text);
  background: transparent; padding: 16px 0;
}
#search-input::placeholder { color: var(--muted); }
.city-divider { width: 1px; height: 28px; background: var(--border); flex-shrink: 0; }
.city-wrap {
  display: flex; align-items: center; gap: 4px;
  padding: 0 12px; font-size: 13px; color: var(--muted); flex-shrink: 0;
}
.city-wrap i { font-size: 15px; color: var(--teal); }
#city-select {
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 13px; color: var(--text); cursor: pointer;
}
.btn-search {
  background: var(--teal); color: var(--white);
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 0 28px;
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  transition: background .15s; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.btn-search:hover { background: var(--teal-d); }

/* Category pills */
.category-pills {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-top: 22px;
}
.pill {
  padding: 7px 18px;
  border: 1.5px solid var(--border); border-radius: var(--r-pill);
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--muted); background: var(--white);
  transition: all .15s;
  display: flex; align-items: center; gap: 6px;
}
.pill i { font-size: 15px; }
.pill:hover { border-color: var(--teal); color: var(--teal); }
.pill.active { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ═══════════════════════════════════════
   RESULTS
═══════════════════════════════════════ */
#results { padding: 40px 0; }
.results-block { margin-bottom: 44px; }
.block-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.block-title { font-size: 15px; font-weight: 600; }
.block-meta { margin-left: auto; font-size: 13px; color: var(--muted); }
.badge-sponsored {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  background: var(--gold-l); color: var(--gold);
  border: 1px solid #F0D08A; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; letter-spacing: .2px;
}

.results-grid { display: flex; flex-direction: column; gap: 12px; }

/* Entity card */
.entity-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid;
  border-radius: var(--r-lg);
  padding: 20px 24px 20px 20px;
  display: flex; gap: 16px; align-items: flex-start;
  cursor: pointer; position: relative;
  transition: box-shadow .15s;
}
.entity-card:hover { box-shadow: 0 4px 20px rgba(14,124,123,.1); }
.entity-card[data-type="hospital"]    { border-left-color: var(--teal); }
.entity-card[data-type="professional"]{ border-left-color: var(--blue); }
.entity-card[data-type="lab"]         { border-left-color: var(--green); }
.entity-card[data-type="pharmacy"]    { border-left-color: var(--purple); }
.entity-card.sponsored { background: #FEFCF5; }

.card-sponsored-badge { position: absolute; top: 14px; right: 16px; }

.card-avatar {
  width: 48px; height: 48px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.card-avatar[data-type="hospital"]    { background: var(--teal-l);  color: var(--teal); }
.card-avatar[data-type="professional"]{ background: #E3F2FD; color: var(--blue); }
.card-avatar[data-type="lab"]         { background: #E8F5E9; color: var(--green); }
.card-avatar[data-type="pharmacy"]    { background: #F3E5F5; color: var(--purple); }

.card-body { flex: 1; min-width: 0; }
.card-type-label {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .8px; margin-bottom: 4px;
  display: flex; align-items: center; gap: 4px;
}
[data-type="hospital"]    .card-type-label { color: var(--teal); }
[data-type="professional"].card-type-label { color: var(--blue); }
[data-type="lab"]         .card-type-label { color: var(--green); }
[data-type="pharmacy"]    .card-type-label { color: var(--purple); }

.card-name {
  font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-sub {
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.card-sub i { font-size: 13px; vertical-align: -2px; margin-right: 2px; }
.verified-badge {
  color: var(--teal); font-size: 12px;
  display: inline-flex; align-items: center; gap: 3px;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 500;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--border);
}
.card-actions {
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end; flex-shrink: 0;
}
.card-rating {
  display: flex; align-items: center; gap: 3px;
  font-size: 13px; font-weight: 500;
  white-space: nowrap;
}
.star { color: #F5A623; font-size: 13px; }
.rating-count { color: var(--muted); font-weight: 400; font-size: 12px; }
.btn-ver-perfil {
  font-family: inherit;
  padding: 8px 20px;
  border: 1.5px solid var(--teal); border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--teal);
  background: var(--white);
  transition: all .15s; white-space: nowrap;
  text-decoration: none; display: inline-block;
}
.btn-ver-perfil:hover { background: var(--teal); color: var(--white); }
.btn-ver-perfil:disabled { opacity: .5; cursor: not-allowed; }
.btn-ver-perfil:disabled:hover { background: var(--white); color: var(--teal); }

.load-more-wrap { text-align: center; margin-top: 24px; }
.btn-load-more {
  font-family: inherit;
  padding: 12px 36px;
  border: 1.5px solid var(--border); border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--muted);
  background: var(--white); transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-load-more:hover { border-color: var(--teal); color: var(--teal); }

/* ═══════════════════════════════════════
   EXPLORE
═══════════════════════════════════════ */
#explore { padding: 64px 0; }
.explore-section { margin-bottom: 56px; }
.explore-section:last-child { margin-bottom: 0; }
.section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px;
}
h2.section-title { font-size: 22px; font-weight: 700; color: var(--text); }
.section-link {
  font-size: 13px; font-weight: 500; color: var(--teal);
  display: flex; align-items: center; gap: 3px;
}
.section-link:hover { text-decoration: underline; }

/* Specialties */
.specialties-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
}
.specialty-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--border); border-radius: var(--r-md);
  cursor: pointer; transition: all .15s; text-align: left;
  font-family: inherit;
}
.specialty-chip:hover { border-color: var(--teal); background: var(--teal-l); }
.specialty-chip i { font-size: 22px; color: var(--teal); flex-shrink: 0; }
.chip-name { font-size: 13px; font-weight: 500; color: var(--text); }
.chip-count { font-size: 11px; color: var(--muted); margin-top: 1px; }

/* Hospitals */
.hospitals-scroll {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.hospital-card {
  background: var(--white);
  border: 1px solid var(--border); border-top: 3px solid var(--teal);
  border-radius: var(--r-lg); padding: 20px;
  cursor: pointer; transition: box-shadow .15s;
}
.hospital-card:hover { box-shadow: 0 4px 16px rgba(14,124,123,.1); }
.hospital-card-badge {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .8px; color: var(--teal); margin-bottom: 8px;
}
.hospital-card-name { font-size: 15px; font-weight: 600; line-height: 1.3; margin-bottom: 8px; }
.hospital-card-city {
  font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 4px; margin-bottom: 14px;
}
.hospital-card-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec-chip {
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 500;
  background: var(--teal-l); color: var(--teal);
}

/* Pharmacies */
.pharmacies-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.pharmacy-item {
  background: var(--white);
  border: 1px solid var(--border); border-left: 4px solid var(--purple);
  border-radius: var(--r-lg); padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
  cursor: pointer; transition: box-shadow .15s;
}
.pharmacy-item:hover { box-shadow: 0 4px 16px rgba(107,63,160,.1); }
.pharmacy-icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: #F3E5F5; color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.pharmacy-info { flex: 1; min-width: 0; }
.pharmacy-name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.pharmacy-meta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.badge-24h {
  background: #E8F5E9; color: var(--green);
  border-radius: var(--r-pill); padding: 2px 8px;
  font-size: 11px; font-weight: 600;
}
.badge-delivery {
  background: #E3F2FD; color: var(--blue);
  border-radius: var(--r-pill); padding: 2px 8px;
  font-size: 11px; font-weight: 600;
}

/* ═══════════════════════════════════════
   CÓMO FUNCIONA
═══════════════════════════════════════ */
#como-funciona { background: var(--teal); padding: 64px 0; color: var(--white); }
.cf-inner { text-align: center; margin-bottom: 48px; }
.cf-title { font-size: 28px; font-weight: 700; margin-bottom: 10px; }
.cf-sub { font-size: 15px; opacity: .8; }
.cf-steps {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.cf-step { text-align: center; }
.cf-step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; margin: 0 auto 14px;
}
.cf-step i { font-size: 28px; display: block; margin-bottom: 12px; opacity: .9; }
.cf-step h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.cf-step p { font-size: 13.5px; opacity: .72; line-height: 1.55; }

/* ═══════════════════════════════════════
   STATS
═══════════════════════════════════════ */
#stats {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0;
}
.stats-grid { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.stat-item { text-align: center; }
.stat-num { font-size: 34px; font-weight: 700; color: var(--teal); line-height: 1; }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── Sub-nav ── */
#about-subnav { position: sticky; top: 60px; z-index: 190; background: var(--white); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
#about-subnav::-webkit-scrollbar { display: none; }
.subnav-inner { display: flex; gap: 4px; padding: 10px 24px; white-space: nowrap; }
.subnav-inner a { padding: 7px 14px; font-size: 13px; font-weight: 500; color: var(--muted); border-radius: var(--r-pill); transition: all .15s; }
.subnav-inner a:hover { color: var(--teal); background: var(--teal-xl); }
.subnav-inner a.current { color: var(--white); background: var(--teal); }

/* ── HERO ── */
#about-hero { background: linear-gradient(180deg, var(--teal-xl) 0%, var(--surface) 100%); padding: 64px 0 48px; text-align: center; }
.hero-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
h1.hero-headline { font-size: clamp(26px, 4.2vw, 44px); font-weight: 700; line-height: 1.15; color: var(--text); margin-bottom: 16px; }
.hero-sub { font-size: 16px; color: var(--muted); max-width: 600px; margin: 0 auto 32px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }
.hero-stat-num { font-size: 26px; font-weight: 700; color: var(--teal); line-height: 1; }
.hero-stat-label { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

/* ── Misión / pilares ── */
#mision { padding: 56px 0 8px; }
.mision-text { font-size: 15.5px; color: var(--text); max-width: 720px; margin-bottom: 40px; }
.pillars-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.pillar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
.pillar-icon { width: 38px; height: 38px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 14px; }
.pillar-card h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.pillar-card p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── Bloques resumen (una sección por archivo integrado) ── */
.about-section { padding: 64px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 116px; }
.about-section:last-of-type { border-bottom: none; }
.about-section.alt { background: var(--white); }
.section-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
.section-eyebrow i { font-size: 14px; }
.about-section-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.section-heading { font-size: 24px; font-weight: 700; margin-bottom: 10px; max-width: 620px; }
.section-lede { font-size: 14.5px; color: var(--muted); max-width: 560px; }
.about-link-out {
  font-size: 13px; font-weight: 600; color: var(--teal);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 16px; border: 1.5px solid var(--teal-l); border-radius: var(--r-pill);
  transition: all .15s;
}
.about-link-out:hover { background: var(--teal-xl); border-color: var(--teal); }

.mini-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.mini-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 16px 18px;
}
.about-section.alt .mini-item { background: var(--surface); }
.mini-item i { width: 32px; height: 32px; border-radius: var(--r-sm); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.mini-item div h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.mini-item div p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.mi-teal   { background: var(--teal-l);   color: var(--teal); }
.mi-blue   { background: var(--blue-l);   color: var(--blue); }
.mi-purple { background: var(--purple-l); color: var(--purple); }
.mi-gold   { background: var(--gold-l);   color: var(--gold); }
.mi-green  { background: var(--green-l);  color: var(--green); }
.mi-red    { background: var(--red-l);    color: var(--red); }

/* Legal: lista compacta en vez de mini-grid con icono grande */
.legal-mini-list { display: flex; flex-direction: column; gap: 10px; }
.legal-mini-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 16px; font-size: 13.5px;
}
.legal-mini-item i { color: var(--teal); font-size: 16px; flex-shrink: 0; }
.legal-mini-item span { color: var(--muted); margin-left: auto; font-size: 12px; text-align: right; }

/* ── CTA final ── */
#about-cta { background: var(--teal); color: var(--white); text-align: center; padding: 60px 0; }
#about-cta h2 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
#about-cta p { font-size: 14px; opacity: .85; max-width: 480px; margin: 0 auto 26px; }
.btn-primary-inv {
  font-family: inherit; padding: 12px 26px; background: var(--white); color: var(--teal);
  border-radius: var(--r-pill); font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; transition: background .15s;
}
.btn-primary-inv:hover { background: var(--teal-xl); }

/* ── FOOTER ── */
#site-footer { background: #1A2E35; color: rgba(255,255,255,.65); padding: 56px 0 0; }
.footer-grid { display: grid; gap: 40px; margin-bottom: 48px; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand .logo-text strong { color: #5CD9D8; }
.footer-brand p.footer-desc { font-size: 13px; line-height: 1.65; margin-top: 14px; max-width: 210px; }
.footer-brand .disclaimer { font-size: 11px; line-height: 1.55; margin-top: 16px; opacity: .45; max-width: 240px; }
.footer-col h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: rgba(255,255,255,.9); margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: 13px; color: rgba(255,255,255,.55); transition: color .15s; }
.footer-col ul a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 12px; }
.footer-badges { display: flex; gap: 10px; }
.footer-badge { padding: 4px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: var(--r-sm); font-size: 11px; color: rgba(255,255,255,.42); }

/* ═══════════════════════════════════════
   SERVICIOS PAGE
═══════════════════════════════════════ */
#servicios-subnav { position: sticky; top: 60px; z-index: 190; background: var(--white); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
#servicios-subnav::-webkit-scrollbar { display: none; }

#servicios-hero { background: linear-gradient(180deg, var(--teal-xl) 0%, var(--surface) 100%); padding: 64px 0 56px; text-align: center; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Buttons (servicios & generales) */
.btn-primary {
  font-family: inherit; padding: 13px 28px;
  background: var(--teal); color: var(--white);
  border-radius: var(--r-pill); font-size: 14.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .15s;
}
.btn-primary:hover { background: var(--teal-d); }
.btn-secondary {
  font-family: inherit; padding: 13px 28px;
  background: var(--white); color: var(--text);
  border: 1.5px solid var(--border); border-radius: var(--r-pill);
  font-size: 14.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s;
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); }

.servicios-section { padding: 72px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 116px; }
.servicios-section:last-of-type { border-bottom: none; }
.servicios-section.alt { background: var(--white); }

/* ── 1. Para Personas (Feature Grid) ── */
.feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin-bottom: 36px; }
.feature-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.feature-icon {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: var(--teal-l); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ── 2. Personal de Salud (Specialty Groups) ── */
.specialty-groups { display: flex; flex-direction: column; gap: 28px; margin-bottom: 8px; }
.specialty-group-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 600; margin-bottom: 14px;
}
.specialty-group-title i {
  width: 30px; height: 30px; border-radius: var(--r-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.sg-teal i   { background: var(--teal-l);   color: var(--teal); }
.sg-blue i   { background: var(--blue-l);   color: var(--blue); }
.sg-purple i { background: var(--purple-l); color: var(--purple); }
.sg-gold i   { background: var(--gold-l);   color: var(--gold); }
.sg-green i  { background: var(--green-l);  color: var(--green); }
.tag-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-pill {
  font-size: 13px; font-weight: 500; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: var(--r-pill);
  transition: all .15s;
}
.tag-pill:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-xl); }

/* ── 3. Establecimientos e Instituciones / 4. Servicios de Apoyo (Facility Grid) ── */
.facility-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.facility-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.facility-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.fi-teal   { background: var(--teal-l);   color: var(--teal); }
.fi-blue   { background: var(--blue-l);   color: var(--blue); }
.fi-purple { background: var(--purple-l); color: var(--purple); }
.fi-gold   { background: var(--gold-l);   color: var(--gold); }
.fi-green  { background: var(--green-l);  color: var(--green); }
.fi-red    { background: var(--red-l);    color: var(--red); }
.facility-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.facility-count {
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap; margin-top: 4px;
}
.facility-card h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.facility-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* ── 5. Tratamientos ── */
.treatment-search {
  display: flex; gap: 10px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 6px; margin-bottom: 32px; max-width: 520px;
}
.treatment-search input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 14px; padding: 8px 14px; color: var(--text);
}
.treatment-search input::placeholder { color: var(--muted); }
.treatment-search button {
  background: var(--teal); color: var(--white); font-family: inherit;
  font-size: 13.5px; font-weight: 600; padding: 10px 20px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
}
.treatment-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.treatment-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 16px 18px;
}
.treatment-card i { font-size: 20px; color: var(--teal); flex-shrink: 0; }
.treatment-card div h4 { font-size: 13.5px; font-weight: 600; margin-bottom: 2px; }
.treatment-card div span { font-size: 12px; color: var(--muted); }

/* ── CTA final (Servicios) ── */
#servicios-cta { background: var(--teal); color: var(--white); text-align: center; padding: 64px 0; }
#servicios-cta h2 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
#servicios-cta p { font-size: 14.5px; opacity: .85; max-width: 480px; margin: 0 auto 28px; }
#servicios-cta .btn-primary { background: var(--white); color: var(--teal); }
#servicios-cta .btn-primary:hover { background: var(--teal-xl); }

/* ═══════════════════════════════════════
   BUSINESS SOLUTIONS PAGE
═══════════════════════════════════════ */
#bizsol-subnav { position: sticky; top: 60px; z-index: 190; background: var(--white); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
#bizsol-subnav::-webkit-scrollbar { display: none; }

#bizsol-hero { background: linear-gradient(180deg, var(--teal-xl) 0%, var(--surface) 100%); padding: 64px 0 56px; text-align: center; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; }

.bizsol-section { padding: 72px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 116px; }
.bizsol-section:last-of-type { border-bottom: none; }
.bizsol-section.alt { background: var(--white); }

/* ── 1. Inteligencia en Salud ── */
.intel-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-bottom: 8px; }
.intel-panel {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px; box-shadow: 0 8px 28px rgba(14,124,123,.08);
}
.intel-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.intel-panel-header strong { font-size: 14px; }
.intel-panel-header span { font-size: 11.5px; color: var(--muted); }
.intel-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.intel-bar-row .lbl { font-size: 12px; color: var(--muted); width: 130px; flex-shrink: 0; }
.intel-bar-track { flex: 1; height: 8px; background: var(--surface); border-radius: var(--r-pill); overflow: hidden; }
.intel-bar-fill { height: 100%; background: var(--teal); border-radius: var(--r-pill); }
.intel-bar-row .val { font-size: 12px; font-weight: 600; color: var(--text); width: 36px; text-align: right; flex-shrink: 0; }

/* ── 2. Marketing ── */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 8px; margin-bottom: 8px; }
.stat-box { background: var(--teal-xl); border: 1px solid var(--teal-l); border-radius: var(--r-lg); padding: 20px 22px; }
.stat-box b { display: block; font-size: 24px; color: var(--teal); }
.stat-box span { font-size: 12.5px; color: var(--muted); }

/* ── 3. Ventas ── */
.sales-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.code-block {
  background: #10262A; border-radius: var(--r-lg); padding: 22px;
  font-family: 'JetBrains Mono', monospace; font-size: 12.5px; line-height: 1.7;
  color: #DDEFEE; overflow-x: auto;
}
.code-block .cm { color: #6B9C9B; }
.code-block .ck { color: #7FD8CE; }
.code-block .cs { color: #F2C77E; }
.code-block .cv { color: #E8967A; }
.sales-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.sales-item { display: flex; gap: 14px; }
.sales-item i {
  width: 38px; height: 38px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--teal-l); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.sales-item h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.sales-item p { font-size: 13.5px; color: var(--muted); }

/* ── 4. Redes de servicios de salud ── */
.network-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.network-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.network-item { display: flex; gap: 14px; align-items: flex-start; }
.network-item-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin-top: 1px;
}
.network-item h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.network-item p { font-size: 13.5px; color: var(--muted); }
.network-preview {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px;
}
.network-badge-lg {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--teal); font-size: 14px; font-weight: 600;
  background: var(--teal-l); padding: 6px 14px; border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.network-preview h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.network-doc-list { display: flex; flex-direction: column; gap: 8px; }
.network-doc-list li { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.network-doc-list li i { color: var(--teal); font-size: 15px; margin-top: 1px; }

/* ── 5. Proveedores de insumos ── */
.supplier-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.supplier-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.supplier-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--gold-l); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.supplier-card h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.supplier-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.supplier-preview-mini {
  display: flex; align-items: center; gap: 4px;
  background: var(--gold-l); color: var(--gold);
  border: 1px solid #F0D08A; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; padding: 3px 10px; width: fit-content;
}

/* ── CTA final (Business Solutions) ── */
#bizsol-cta { background: var(--teal); color: var(--white); text-align: center; padding: 64px 0; }
#bizsol-cta h2 { font-size: 26px; font-weight: 700; margin-bottom: 10px; }
#bizsol-cta p { font-size: 14.5px; opacity: .85; max-width: 480px; margin: 0 auto 28px; }
#bizsol-cta .btn-primary { background: var(--white); color: var(--teal); }
#bizsol-cta .btn-primary:hover { background: var(--teal-xl); }

/* ═══════════════════════════════════════
   EMPRESAS PAGE
═══════════════════════════════════════ */
#empresa-subnav { position: sticky; top: 60px; z-index: 190; background: var(--white); border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
#empresa-subnav::-webkit-scrollbar { display: none; }

#empresa-hero { background: linear-gradient(180deg, var(--teal-xl) 0%, var(--surface) 100%); padding: 64px 0 56px; text-align: center; }

.empresa-section { padding: 72px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 116px; }
.empresa-section:last-of-type { border-bottom: none; }
.empresa-section.alt { background: var(--white); }

/* ── 1. Registra tu negocio ── */
.steps-row { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); margin-bottom: 36px; }
.step-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal-l); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; margin-bottom: 16px;
}
.step-card h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.step-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.step-card ul { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.step-card ul li { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.step-card ul li i { color: var(--teal); font-size: 14px; margin-top: 2px; flex-shrink: 0; }

/* ── 2. Planes y precios ── */
.pricing-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.price-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px 24px; display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--teal); position: relative; box-shadow: 0 8px 28px rgba(14,124,123,.12); }
.price-card-badge {
  position: absolute; top: -12px; left: 24px;
  background: var(--teal); color: var(--white);
  font-size: 11px; font-weight: 600; letter-spacing: .3px;
  padding: 4px 12px; border-radius: var(--r-pill);
}
.price-plan-name { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.price-amount { font-size: 34px; font-weight: 700; color: var(--text); }
.price-amount span { font-size: 14px; font-weight: 500; color: var(--muted); }
.price-desc { font-size: 13px; color: var(--muted); margin: 10px 0 20px; }
.price-features { flex: 1; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.price-features li { font-size: 13.5px; display: flex; gap: 8px; align-items: flex-start; }
.price-features li i { color: var(--teal); font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.price-features li.muted-feat { color: var(--muted); }
.price-features li.muted-feat i { color: var(--border); }
.btn-plan {
  font-family: inherit; padding: 11px; text-align: center;
  border-radius: var(--r-pill); font-size: 13.5px; font-weight: 600;
  border: 1.5px solid var(--border); color: var(--text); transition: all .15s;
}
.btn-plan:hover { border-color: var(--teal); color: var(--teal); }
.price-card.featured .btn-plan { background: var(--teal); color: var(--white); border-color: var(--teal); }
.price-card.featured .btn-plan:hover { background: var(--teal-d); }
.pricing-note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 24px; }

/* ── 3. Publicidad ── */
.ads-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.ad-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
.ad-icon {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--gold-l); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.ad-card h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.ad-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.ad-preview-mini {
  display: flex; align-items: center; gap: 4px;
  background: var(--gold-l); color: var(--gold);
  border: 1px solid #F0D08A; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 600; padding: 3px 10px; width: fit-content;
}

/* ── 4. COFEPRIS ── */
.cofepris-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.cofepris-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.cofepris-item { display: flex; gap: 14px; align-items: flex-start; }
.cofepris-item-num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; margin-top: 1px;
}
.cofepris-item h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.cofepris-item p { font-size: 13.5px; color: var(--muted); }
.verified-preview {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px;
}
.verified-badge-lg {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--teal); font-size: 14px; font-weight: 600;
  background: var(--teal-l); padding: 6px 14px; border-radius: var(--r-pill);
  margin-bottom: 16px;
}
.verified-preview h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.verified-doc-list { display: flex; flex-direction: column; gap: 8px; }
.verified-doc-list li { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.verified-doc-list li i { color: var(--muted); font-size: 15px; margin-top: 1px; }

/* ── 5. API ── */
.api-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.api-endpoint-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.api-endpoint {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 16px; font-size: 13px;
}
.api-method {
  font-family: 'JetBrains Mono', monospace; font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: var(--r-sm); flex-shrink: 0;
}
.api-method.get  { background: var(--teal-l); color: var(--teal); }
.api-method.post { background: #E3F2FD; color: var(--blue); }
.api-endpoint code { font-family: 'JetBrains Mono', monospace; color: var(--text); }
.api-endpoint span { color: var(--muted); margin-left: auto; font-size: 12.5px; }

/* ── 6. Panel de empresa ── */
.panel-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.panel-feature-list { display: flex; flex-direction: column; gap: 20px; }
.panel-feature { display: flex; gap: 14px; }
.panel-feature i {
  width: 38px; height: 38px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--teal-l); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.panel-feature h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.panel-feature p { font-size: 13.5px; color: var(--muted); }
.panel-mock {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 20px; box-shadow: 0 8px 28px rgba(14,124,123,.08);
}
.panel-mock-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-mock-header strong { font-size: 14px; }
.panel-mock-header span { font-size: 11.5px; color: var(--muted); }
.panel-mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.panel-mock-stat { background: var(--surface); border-radius: var(--r-md); padding: 12px; text-align: center; }
.panel-mock-stat b { display: block; font-size: 18px; color: var(--teal); }
.panel-mock-stat span { font-size: 10.5px; color: var(--muted); }
.panel-mock-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; padding: 0 4px; }
.panel-mock-bars div { flex: 1; background: var(--teal-l); border-radius: 3px 3px 0 0; position: relative; }
.panel-mock-bars div::after { content: ''; position: absolute; inset: 0; background: var(--teal); border-radius: 3px 3px 0 0; height: var(--h); position: absolute; bottom: 0; width: 100%; }

/* ── Footer (Empresas): tarjeta CTA + órbitas + enlaces ── */
#empresa-footer { background: var(--surface); padding: 64px 0; overflow-x: clip; }

.ef-cta-card {
  background: var(--white); border-radius: 28px;
  padding: 44px 32px; margin-bottom: 56px;
  box-shadow: 0 2px 40px -12px rgba(0,0,0,.08);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.ef-cta-blob {
  position: absolute; top: -140px; right: -140px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, var(--teal-l) 0%, transparent 70%);
  opacity: .7; filter: blur(40px); pointer-events: none;
}
.ef-cta-left { position: relative; z-index: 2; max-width: 520px; }
.ef-cta-eyebrow { font-size: 13px; font-weight: 600; color: var(--teal); text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.ef-cta-card h2 { font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; color: var(--text); margin-bottom: 14px; }
.ef-cta-card p { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 26px; }
.ef-cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: var(--white);
  padding: 14px 28px; border-radius: var(--r-pill); font-weight: 600; font-size: 14.5px;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.ef-cta-btn:hover { background: #0F2027; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.15); }

/* Gráfico de órbitas (solo escritorio) */
.ef-orbit { position: relative; width: 380px; height: 380px; flex-shrink: 0; display: none; z-index: 2; }
.ef-orbit-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 52px; height: 52px; border-radius: 50%; background: var(--white);
  border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: center; z-index: 5;
}
.ef-orbit-ring { position: absolute; top: 50%; left: 50%; border: 1px dashed var(--border); border-radius: 50%; transform: translate(-50%, -50%); }
.ef-ring-1 { width: 140px; height: 140px; animation: ef-spin 25s linear infinite; }
.ef-ring-2 { width: 260px; height: 260px; animation: ef-spin-rev 35s linear infinite; }
.ef-ring-3 { width: 380px; height: 380px; animation: ef-spin 45s linear infinite; }
@keyframes ef-spin { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes ef-spin-rev { from { transform: translate(-50%,-50%) rotate(0deg); } to { transform: translate(-50%,-50%) rotate(-360deg); } }

.ef-avatar {
  position: absolute; width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--white); box-shadow: 0 3px 10px rgba(0,0,0,.14); object-fit: cover;
}
.ef-ring-1 .ef-avatar { top: -21px; left: 50%; margin-left: -21px; animation: ef-spin-rev 25s linear infinite; }
.ef-ring-2 .ef-avatar-a { top: -21px; left: 50%; margin-left: -21px; animation: ef-spin 35s linear infinite; }
.ef-ring-2 .ef-avatar-b { top: 50%; right: -21px; margin-top: -21px; animation: ef-spin 35s linear infinite; }
.ef-ring-3 .ef-avatar-a { top: -21px; left: 50%; margin-left: -21px; animation: ef-spin-rev 45s linear infinite; }
.ef-ring-3 .ef-avatar-c { bottom: -21px; left: 50%; margin-left: -21px; animation: ef-spin-rev 45s linear infinite; }

@media (min-width: 1024px) { .ef-orbit { display: block; } }

/* Enlaces */
.ef-links-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.ef-col-brand .logo-text { color: var(--text); }
.ef-desc { font-size: 13px; color: var(--muted); line-height: 1.65; margin: 14px 0 12px; max-width: 260px; }
.ef-disclaimer { font-size: 11px; color: var(--muted); opacity: .8; line-height: 1.55; max-width: 280px; margin-bottom: 20px; }
.ef-col h3 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.1px; color: var(--text); margin-bottom: 16px; }
.ef-col ul li { margin-bottom: 10px; }
.ef-col ul a { font-size: 13.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; transition: color .15s; }
.ef-col ul a:hover { color: var(--text); }
.ef-col ul a i { font-size: 11px; transition: transform .2s; }
.ef-col ul a:hover i { transform: translate(3px, -3px); }
.ef-links-grid > div:nth-child(2) { transition-delay: .05s; }
.ef-links-grid > div:nth-child(3) { transition-delay: .1s; }
.ef-links-grid > div:nth-child(4) { transition-delay: .15s; }
.ef-links-grid > div:nth-child(5) { transition-delay: .2s; }

/* Boletín */
.ef-newsletter { position: relative; max-width: 280px; }
.ef-newsletter input {
  width: 100%; padding: 13px 50px 13px 34px; border-radius: var(--r-pill);
  border: 1px solid var(--border); font-size: 13.5px; font-family: inherit;
  background: var(--white); color: var(--text); box-shadow: 0 2px 10px -4px rgba(0,0,0,.03);
}
.ef-newsletter input:focus { outline: none; border-color: var(--teal); }
.ef-newsletter-at { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 500; font-size: 13.5px; pointer-events: none; }
.ef-newsletter button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-size: 13px; transition: transform .15s;
}
.ef-newsletter button:hover { transform: translateY(-50%) scale(1.05); }
.ef-newsletter button:active { transform: translateY(-50%) scale(.95); }

/* Barra inferior */
.ef-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.ef-bottom p { font-size: 12.5px; color: var(--muted); }
.ef-bottom-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ef-badge { padding: 4px 10px; border: 1px solid var(--border); border-radius: var(--r-sm); font-size: 11px; color: var(--muted); }
.ef-social { display: flex; gap: 14px; }
.ef-social a { color: var(--muted); font-size: 16px; transition: color .15s; }
.ef-social a:hover { color: var(--text); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pillars-grid { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 32px; }
  .feature-grid, .facility-grid, .treatment-grid { grid-template-columns: 1fr; }
  .supplier-grid, .stat-row { grid-template-columns: 1fr; }
  .intel-layout, .sales-layout, .network-layout { grid-template-columns: 1fr; }
  .ef-links-grid { grid-template-columns: 1fr 1fr; }
  .ef-col-brand { grid-column: 1 / -1; }
  .ef-cta-card { justify-content: center; text-align: center; }
  .ef-cta-left { max-width: 100%; }
}
@media (max-width: 640px) {
  .btn-login, .nav-about, .nav-empresa, .nav-servicios, .nav-business { display: none; }
  h1.hero-headline { font-size: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-section-head { flex-direction: column; align-items: flex-start; }
  .search-box { flex-direction: column; border-radius: var(--r-lg); }
  .search-input-wrap { padding: 0 16px; }
  .city-divider { display: none; }
  .btn-search { border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 14px; justify-content: center; }
  .card-actions { flex-direction: row; align-items: center; }
  .treatment-search { flex-direction: column; border-radius: var(--r-md); }
  .treatment-search button { justify-content: center; }
  .hero-stats { gap: 28px; }
  .ef-links-grid { grid-template-columns: 1fr; }
  .ef-cta-card { padding: 32px 24px; }
  .ef-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }


/* ── EMERGENCIA ── */
.btn-emergencia {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600;
  background: #FFEBEE; color: #C62828;
  border: 1px solid #FFCDD2;
  transition: background .15s, color .15s;
}
.btn-emergencia:hover { background: #C62828; color: #fff; border-color: #C62828; }


/* ═══════════════════════════════════════
   ESTABLECIMIENTOS — listado (catálogo CLUES)
═══════════════════════════════════════ */
#establecimientos-hero { background: linear-gradient(180deg, var(--teal-xl) 0%, var(--surface) 100%); padding: 56px 0 40px; text-align: center; }

.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  max-width: 780px; margin: 24px auto 0;
}
.filter-input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-pill);
  padding: 0 16px; height: 44px; flex: 1; min-width: 180px;
}
.filter-input-wrap:focus-within { border-color: var(--teal); }
.filter-input-wrap i { color: var(--muted); font-size: 15px; flex-shrink: 0; }
.filter-input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 13.5px; color: var(--text); min-width: 0;
}
.filter-input::placeholder { color: var(--muted); }
.btn-filter {
  background: var(--teal); color: var(--white);
  font-family: inherit; font-size: 14px; font-weight: 600;
  padding: 0 26px; height: 44px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  transition: background .15s;
}
.btn-filter:hover { background: var(--teal-d); }

#establecimientos-results { padding: 40px 0 64px; }
.clue-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px; margin-top: 20px;
}
.muted-msg { color: var(--muted); padding: 24px 0; grid-column: 1 / -1; }

.clue-card {
  background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--teal);
  border-radius: var(--r-lg); padding: 18px; transition: box-shadow .15s;
  display: flex; flex-direction: column; gap: 8px;
}
.clue-card:hover { box-shadow: 0 4px 16px rgba(14,124,123,.1); }
.clue-card[data-tipo="farmacia"]    { border-top-color: var(--purple); }
.clue-card[data-tipo="laboratorio"] { border-top-color: var(--green); }

.clue-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.clue-type-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px;
  color: var(--teal);
}
.clue-type-badge[data-tipo="farmacia"]    { color: var(--purple); }
.clue-type-badge[data-tipo="laboratorio"] { color: var(--green); }
.clue-status-ok {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: var(--green);
}
.clue-card-name { font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.35; }
.clue-card-sub { font-size: 12.5px; color: var(--muted); }
.clue-card-loc {
  font-size: 12.5px; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}
.clue-card-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border);
}
.clue-id { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--muted); }


/* ═══════════════════════════════════════
   ESTABLECIMIENTOS — ficha de detalle
═══════════════════════════════════════ */
#ficha-hero { background: linear-gradient(180deg, var(--teal-xl) 0%, var(--surface) 100%); padding: 48px 0 36px; }
.ficha-breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ficha-breadcrumb a { color: var(--teal); }
.ficha-type-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px;
  color: var(--teal); margin-bottom: 10px;
}
.ficha-name { font-size: clamp(22px, 3.4vw, 32px); font-weight: 700; color: var(--text); margin-bottom: 8px; }
.ficha-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ficha-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600;
}
.ficha-badge.ok      { background: var(--teal-l);  color: var(--teal); }
.ficha-badge.warn    { background: #FFF3E0; color: #B26A00; }

#ficha-body { padding: 40px 0 64px; }
.ficha-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.ficha-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 24px; margin-bottom: 20px;
}
.ficha-card h3 {
  font-size: 15px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.ficha-card h3 i { color: var(--teal); font-size: 17px; }
.ficha-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.ficha-field dt { font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.ficha-field dd { font-size: 13.5px; color: var(--text); font-weight: 500; word-break: break-word; }
.ficha-field.full { grid-column: 1 / -1; }

.specialty-count-wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.specialty-count-input {
  width: 90px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  padding: 8px 10px; font-family: inherit; font-size: 14px; color: var(--text);
}
.specialty-count-input:focus { outline: none; border-color: var(--teal); }
.btn-guardar {
  background: var(--teal); color: var(--white); font-family: inherit;
  font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: var(--r-pill);
  transition: background .15s;
}
.btn-guardar:hover { background: var(--teal-d); }
.btn-guardar:disabled { opacity: .6; cursor: not-allowed; }
.specialty-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.specialty-save-msg { font-size: 12.5px; margin-top: 8px; }
.specialty-save-msg.ok  { color: var(--green); }
.specialty-save-msg.err { color: #C62828; }

.ficha-map {
  height: 260px; border-radius: var(--r-md); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
/* Marcador de mapa tipo "pin" (cuadrado rotado 45° con esquina recta abajo) —
   truco CSS clásico para simular una gota de Google Maps sin imágenes. */
.ficha-map-marker {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0;
  background: var(--teal); border: 2px solid var(--white);
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center;
}
.ficha-map-marker i { transform: rotate(45deg); color: var(--white); font-size: 16px; }
.ficha-map-marker-farmacia    { background: var(--purple); }
.ficha-map-marker-laboratorio { background: var(--green); }

@media (max-width: 860px) {
  .ficha-layout { grid-template-columns: 1fr; }
  .ficha-fields { grid-template-columns: 1fr; }
}