/* ============ Variables ============ */
:root {
  --teal: #0a9a8a;
  --teal-600: #077f72;
  --teal-50: #e1f7f3;
  --teal-100: #bff0e7;
  --navy: #0c3b44;
  --navy-800: #0f5763;
  --warm: #f2651c;
  --warm-50: #fdeee5;
  --violet: #6a5bd8;
  --violet-50: #efedfc;
  --ink: #12282d;
  --muted: #557075;
  --line: #e3ebee;
  --bg: #ffffff;
  --bg-soft: #f0f9f8;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(12, 59, 68, .18);
  --shadow-lg: 0 30px 60px -20px rgba(12, 59, 68, .28);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.ico {
  width: 1.2em; height: 1.2em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.muted { color: var(--muted); }

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .75em 1.3em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 10px 24px -10px rgba(10, 154, 138, .7); }
.btn--primary:hover { background: var(--teal-600); box-shadow: 0 16px 30px -12px rgba(10, 154, 138, .8); }
.btn--ghost { border-color: var(--line); background: #fff; color: var(--navy); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal-600); }
.btn--white { background: #fff; color: var(--navy); }
.btn--lg { padding: 1em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }

/* ============ Topbar ============ */
.topbar { background: var(--navy); color: #d6e3e4; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; gap: 24px; padding: 8px 0; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; }
.topbar__item a:hover { color: #fff; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -16px rgba(12, 59, 68, .3); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }

.logo { display: inline-flex; align-items: center; }
.logo img { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a:not(.btn) {
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .93rem; color: var(--navy);
  white-space: nowrap; transition: background .2s, color .2s;
}
.nav > a:not(.btn):hover,
.nav > a.is-active { background: var(--teal-50); color: var(--teal-600); }
.nav__cta { margin-left: 10px; }

.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--teal-50); border-radius: 12px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s var(--ease); }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ============ Hero ============ */
.hero { position: relative; padding: 80px 0 120px; overflow: hidden; background: linear-gradient(180deg, #e9faf7 0%, #fff 100%); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; }
.blob--1 { width: 520px; height: 520px; background: #8fe6da; top: -160px; right: -120px; animation: float 14s ease-in-out infinite; }
.blob--2 { width: 380px; height: 380px; background: #ffc9a8; bottom: -140px; left: -100px; animation: float 18s ease-in-out infinite reverse; }
.grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(12, 59, 68, .08) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 65%);
}
@keyframes float { 50% { transform: translate(30px, 40px) scale(1.08); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: .85rem; font-weight: 700; color: var(--navy);
}
.pulse { width: 10px; height: 10px; border-radius: 50%; background: #e5484d; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #e5484d; animation: ping 1.6s ease-out infinite; }
@keyframes ping { to { transform: scale(2.6); opacity: 0; } }

.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; margin: 22px 0 18px; color: var(--navy); }
.grad { background: linear-gradient(90deg, var(--teal), #19c2ad 45%, var(--warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 28px; }
.hero__trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: .92rem; color: var(--navy); }
.hero__trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero__trust .ico { color: var(--teal); }

.hero__visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hero-card--main {
  width: min(400px, 100%); padding: 32px;
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-800) 60%, #0a9a8a 100%);
  color: #fff; border: 0; position: relative; overflow: hidden;
}
.hero-card--main::before {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63, 230, 207, .35), transparent 70%); top: -80px; right: -80px;
}
.hero-card--main h3 { font-size: 1.6rem; position: relative; }
.hero-card--main p { color: #c5d6d8; position: relative; }
.hero-card__emblem {
  position: relative; width: 84px; height: 84px; border-radius: 50%; margin-bottom: 22px;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), 0 12px 24px -8px rgba(0, 0, 0, .35);
}
.hero-card__emblem img { width: 62px; height: auto; }
.hero__watermark {
  position: absolute; width: 560px; right: -110px; top: 50%; transform: translateY(-50%) rotate(-8deg);
  opacity: .09;
}
.ecg svg { width: 100%; height: 70px; }
.ecg path {
  fill: none; stroke: #3fe6cf; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 420; stroke-dashoffset: 420; animation: ecg 2.6s linear infinite;
  filter: drop-shadow(0 0 6px rgba(63, 230, 207, .7));
}
@keyframes ecg { 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -420; } }

.hero-card--float {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  animation: bob 6s ease-in-out infinite;
}
.hero-card--float .ico { width: 42px; height: 42px; padding: 10px; border-radius: 12px; }
.hero-card--float strong { display: block; font-size: .95rem; color: var(--navy); }
.hero-card--float span { font-size: .82rem; color: var(--muted); }
.hero-card--a { top: 10px; left: -10px; }
.hero-card--a .ico { background: #ffe8e8; color: #e5484d; }
.hero-card--b { bottom: 20px; right: -10px; animation-delay: -3s; }
.hero-card--b .ico { background: var(--teal-50); color: var(--teal); }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* ============ Accesos rápidos ============ */
.quick {
  position: relative; z-index: 2; margin-top: -70px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  overflow: hidden;
}
.quick__item { display: flex; align-items: center; gap: 14px; padding: 24px; transition: background .25s; }
.quick__item + .quick__item { border-left: 1px solid var(--line); }
.quick__item:hover { background: var(--bg-soft); }
.quick__item:hover .quick__ico { background: var(--teal); color: #fff; transform: rotate(-6deg); }
.quick__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); transition: .3s var(--ease); }
.quick__item strong { display: block; color: var(--navy); }
.quick__item small { color: var(--muted); }

/* ============ Secciones ============ */
.section { padding: 110px 0; }
.section--tint { background: var(--bg-soft); }
.section--dark { background: radial-gradient(1200px 500px at 80% 0%, #0f7a74 0%, var(--navy) 55%); color: #fff; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section__head h1, .section__head h2, .about h2, .contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; color: var(--navy); }
.section__head p { color: var(--muted); font-size: 1.08rem; }
.section__head--light h2 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal-600); margin-bottom: 14px; padding: 6px 14px; background: var(--teal-50); border-radius: 999px;
}
.section--dark .eyebrow, .eyebrow--light { background: rgba(255, 255, 255, .12); color: #5ef0db; }

/* ============ Tabs y servicios ============ */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 40px; }
.tab {
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy);
  transition: .25s var(--ease);
}
.tab:hover { border-color: var(--teal); color: var(--teal-600); }
.tab.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.service {
  position: relative; padding: 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s, opacity .35s;
  overflow: hidden;
}
.service::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--warm));
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.service:hover::after { transform: scaleX(1); }
.service__ico { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; font-size: 1.15rem; }
.service h3 { font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.service p { font-size: .9rem; color: var(--muted); margin: 0; }
.service__tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: 14px; color: var(--muted); }
.service.is-hidden { display: none; }
.services--groups { grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service--group h3 { font-size: 1.12rem; line-height: 1.3; margin-bottom: 10px; }
.service--group p { font-size: .93rem; line-height: 1.6; }

/* Modelo de atención en salud */
.model { margin-top: 80px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; background: var(--navy); color: #fff; border-radius: 26px; padding: 48px; box-shadow: var(--shadow-lg); }
.model h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; margin: 14px 0 16px; }
.model p { color: #c9d8da; margin: 0 0 12px; }
.model p:last-child { margin-bottom: 0; }
.model em { color: #5ef0db; font-style: italic; }
.model__routes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.model__routes li { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); min-height: 112px; }
.model__routes span { font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #5ef0db; }
.model__routes strong { font-size: 1.02rem; line-height: 1.3; }
.service.is-entering { animation: pop .45s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }

.c-inmediata .service__ico { background: #ffe8e8; color: #e5484d; }
.c-consulta .service__ico { background: var(--teal-50); color: var(--teal); }
.c-diagnostico .service__ico { background: var(--violet-50); color: var(--violet); }
.c-terapeutico .service__ico { background: #e6f2ff; color: #2f7ad8; }
.c-pyms .service__ico { background: #eaf8e6; color: #3a9a2a; }
.c-empresas .service__ico { background: var(--warm-50); color: var(--warm); }

/* ============ Citas ============ */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.channel {
  background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px; transition: box-shadow .3s, transform .3s var(--ease);
}
.channel:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.channel > .btn { margin-top: auto; }
.channel__head { display: flex; gap: 14px; align-items: center; }
.channel__head h3 { margin: 0; font-size: 1.2rem; color: var(--navy); }
.channel__head p { margin: 0; font-size: .9rem; }
.channel__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); font-size: 1.25rem; }
.channel__ico--warm { background: var(--warm-50); color: var(--warm); }
.channel__ico--violet { background: var(--violet-50); color: var(--violet); }
.channel__big { font-size: 1.8rem; font-weight: 800; color: var(--navy); letter-spacing: -.02em; }
.channel__big:hover { color: var(--teal); }
.channel__hours { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.channel__hours li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warm-50); color: var(--navy); font-size: .86rem; white-space: nowrap; }
.channel__hours .ico { color: var(--warm); flex: none; }
.channel__hours strong { margin-left: auto; white-space: nowrap; }
.channel__siau { border-top: 1px solid var(--line); padding-top: 18px; }
.channel__siau h4 { font-size: .95rem; color: var(--navy); margin: 0 0 12px; line-height: 1.35; }
.channel__siau ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.channel__siau li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink); line-height: 1.45; }
.channel__siau .ico { flex: none; color: var(--warm); margin-top: 2px; }
.channel__siau a { color: var(--teal-600); font-weight: 600; white-space: nowrap; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: .8rem; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--navy); }
.note { display: flex; gap: 10px; font-size: .88rem; background: var(--bg-soft); padding: 12px 14px; border-radius: var(--radius-sm); margin: 0; color: var(--ink); }
.note .ico { color: var(--teal); margin-top: 2px; }

.preferential {
  margin-top: 26px; display: flex; gap: 20px; align-items: center;
  padding: 26px 30px; border-radius: var(--radius);
  background: linear-gradient(110deg, var(--teal) 0%, #19c2ad 100%); color: #fff;
}
.preferential h3 { margin: 0 0 4px; font-size: 1.2rem; }
.preferential p { margin: 0; opacity: .92; }
.preferential__ico { width: 62px; height: 62px; flex-shrink: 0; border-radius: 18px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; font-size: 1.5rem; }

.hours { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hours__item { display: flex; gap: 14px; align-items: center; padding: 20px 22px; background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.hours__item > .ico { width: 26px; height: 26px; color: var(--teal); }
.hours__item small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.hours__item strong { color: var(--navy); }
.hours__item--alert { border-color: #ffd3d3; background: #fff6f6; }
.hours__item--alert > .ico { color: #e5484d; }

/* ============ Nosotros ============ */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: start; }
.mv { display: grid; gap: 16px; margin: 26px 0; }
.mv__card { padding: 24px 26px; border-radius: var(--radius); background: var(--bg-soft); border-left: 4px solid var(--teal); }
.mv__card:nth-child(2) { border-left-color: var(--warm); }
.mv__card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; color: var(--navy); }
.mv__card h3 .ico { color: var(--teal); }
.mv__card:nth-child(2) h3 .ico { color: var(--warm); }
.mv__card p { margin: 0; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-600); }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico, a:hover > .link-arrow .ico { transform: translateX(5px); }

.values { background: var(--navy); color: #fff; border-radius: 26px; padding: 34px; position: sticky; top: 110px; box-shadow: var(--shadow-lg); }
.values__title { font-size: 1.3rem; margin-bottom: 18px; }
.values ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.values li { display: flex; gap: 16px; padding: 14px; border-radius: 14px; transition: background .25s; }
.values li:hover { background: rgba(255, 255, 255, .06); }
.values li > span { font-weight: 800; font-size: .85rem; color: #5ef0db; padding-top: 2px; }
.values strong { display: block; font-size: 1.02rem; }
.values p { margin: 0; color: #b4c5c7; font-size: .9rem; }

/* ============ Principios ============ */
.principles { margin-top: 100px; }
.principles__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.principle { grid-column: span 2; position: relative; padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.principle:nth-child(4) { grid-column: 2 / span 2; }
.principle::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--teal), #19c2ad); }
.principle:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.principle__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal); font-size: 1.3rem; margin-bottom: 18px; transition: .3s var(--ease); }
.principle:hover .principle__ico { background: var(--teal); color: #fff; transform: rotate(-6deg); }
.principle h3 { font-size: 1.25rem; color: var(--navy); }
.principle__lead { font-weight: 700; color: var(--teal-600); }
.principle p:last-child { margin: 0; color: var(--muted); font-size: .93rem; }

/* Objetivos institucionales */
.objectives { margin-top: 100px; }
.objectives__grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.objective { display: flex; gap: 16px; align-items: flex-start; padding: 26px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.objective > span { flex: none; font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--teal); }
.objective p { margin: 0; font-weight: 600; color: var(--navy); line-height: 1.5; }

/* Mapa general de procesos */
.procmap { margin-top: 100px; }
.procmap__note { max-width: 820px; margin: 30px auto 0; text-align: center; color: var(--muted); }
.pmap { margin: 0 auto; max-width: 940px; display: grid; gap: 12px; }
.pmap__band { text-align: center; font-weight: 800; color: #fff; background: var(--teal); padding: 14px 20px; border-radius: 14px; letter-spacing: .01em; }
.pmap__body { display: grid; grid-template-columns: 76px 1fr 76px; gap: 12px; align-items: stretch; }
.pmap__side { display: grid; place-items: center; background: var(--teal); color: #fff; font-weight: 700; font-size: .92rem; line-height: 1.3; text-align: center; padding: 16px 22px 16px 8px; clip-path: polygon(0 0, 72% 0, 100% 50%, 72% 100%, 0 100%); }
.pmap__side span { writing-mode: vertical-rl; transform: rotate(180deg); }
.pmap__rows { display: grid; gap: 12px; }
.pmap__row { background: var(--navy); border-radius: 16px; padding: 18px 18px 12px; text-align: center; }
.pmap__row--main { background: linear-gradient(120deg, var(--teal), #19c2ad); padding: 24px 18px 16px; }
.pmap__row ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pmap__row li { background: #fff; color: var(--navy); font-weight: 700; font-size: .95rem; line-height: 1.3; padding: 10px 20px; border-radius: 999px; }
.pmap__row--main li { font-size: 1.1rem; padding: 12px 44px; }
.pmap__row p { margin: 10px 0 0; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fd8cf; }
.pmap__row--main p { color: #eafffb; }
.legal .pmap { margin: 22px 0; }
.legal .pmap__row p { color: #9fd8cf; margin: 10px 0 0; line-height: 1.4; }
.legal .pmap__row--main p { color: #eafffb; }
.legal .pmap__row ul { padding: 0; margin: 0; list-style: none; display: flex; }
.legal .pmap__row li { color: var(--navy); line-height: 1.3; }

/* ============ Participación ============ */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.glass {
  display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px); transition: background .3s, transform .3s var(--ease);
}
.glass:hover { background: rgba(255, 255, 255, .11); transform: translateY(-5px); }
.glass > .ico { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: rgba(94, 240, 219, .15); color: #5ef0db; margin-bottom: 18px; }
.glass h3 { font-size: 1.2rem; }
.glass p { color: #bccbcd; flex: 1; }
.glass .link-arrow { color: #5ef0db; }

/* ============ CTA ============ */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  padding: 50px 56px; border-radius: 28px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--warm) 0%, #f08a3c 55%, #f4a75a 100%);
}
.cta-band::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .08); right: -120px; top: -180px; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.cta-band p { margin: 0; opacity: .92; max-width: 520px; }
.cta-band .btn { position: relative; }

/* ============ Contacto ============ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact__list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 14px; align-items: center; }
.contact__list small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.contact__list strong { color: var(--navy); word-break: break-word; }
.contact__list a:hover strong { color: var(--teal); }

/* Contactos por área */
.areas { margin-top: 50px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.area { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.area h3 { font-size: 1.1rem; color: var(--navy); margin: 0 0 16px; line-height: 1.35; }
.area ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.area li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-size: .95rem; line-height: 1.5; }
.area li .ico { flex: none; color: var(--teal); margin-top: 3px; }
.area a:not(.btn) { color: var(--teal-600); font-weight: 600; }
.area a:not(.btn):hover { text-decoration: underline; }
.area .btn { margin-top: 20px; }
.btn--whatsapp { background: #128c7e; color: #fff; box-shadow: 0 10px 24px -10px rgba(18, 140, 126, .7); }
.btn--whatsapp:hover { background: #0e7266; }
.ci { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--teal); border: 1px solid var(--line); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 260px; background: var(--teal-50); }
.map iframe { width: 100%; height: 100%; border: 0; }

.form { background: #fff; padding: 36px; border-radius: 24px; box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.form h3 { font-size: 1.5rem; color: var(--navy); margin: 0; }
.form > p { margin: -10px 0 4px; font-size: .9rem; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; color: var(--navy); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 500; color: var(--ink); width: 100%;
  padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg-soft);
  transition: border-color .2s, box-shadow .2s, background .2s; resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(10, 154, 138, .15); }
.form .is-invalid { border-color: #e5484d; }
.form__hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
.form .form__check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; font-weight: 500; line-height: 1.45; }
.form .form__check input { width: 18px; height: 18px; margin-top: 2px; padding: 0; accent-color: var(--teal); }
.form .form__check input.is-invalid { outline: 2px solid #e5484d; outline-offset: 2px; }
.form .form__check a { color: var(--teal-600); text-decoration: underline; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__msg a { text-decoration: underline; }
.form__msg { margin: 0; font-size: .9rem; font-weight: 600; min-height: 1.2em; }
.form__msg.ok { color: var(--teal-600); }
.form__msg.err { color: #e5484d; }

/* ============ Footer ============ */
/* Franja clara para que el logo y el sello de Supersalud se vean con sus colores, sin recuadros; barra oscura de cierre */
.footer { background: #fff; color: var(--muted); border-top: 1px solid var(--line); padding: 64px 0 0; }
.footer--simple { padding: 0; border-top: 0; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 48px; align-items: start; }
.footer h4 { color: var(--navy); font-size: 1rem; margin-bottom: 16px; }
.footer__inner > div > a:not(.logo) { display: block; padding: 4px 0; color: var(--ink); transition: color .2s; }
.footer__inner > div > a:not(.logo):hover { color: var(--teal-600); }
.footer__brand .logo img { height: 56px; }
.footer__brand p { margin: 16px 0; max-width: 280px; }
.social { display: flex; gap: 10px; }
.social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); transition: background .2s, color .2s; }
.social a:hover { background: var(--teal); color: #fff; }
.footer__seal { width: 200px; height: auto; margin-top: 26px; }
.footer__bar { background: var(--navy); color: #b4c5c7; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 20px 0; font-size: .85rem; }

/* ============ Flotantes ============ */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal); color: #fff; font-size: 1.3rem; box-shadow: 0 14px 30px -8px rgba(10, 154, 138, .7);
  transition: transform .25s var(--ease);
}
.fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal); animation: ring 2s ease-out infinite; }
@keyframes ring { to { transform: scale(1.6); opacity: 0; } }
.fab:hover { transform: scale(1.08); }

.to-top {
  position: fixed; right: 28px; bottom: 92px; z-index: 60;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy);
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: .3s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }

/* ============ Animaciones al hacer scroll ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .nav > a:not(.btn) { padding: 8px 10px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* El menú pasa a hamburguesa antes que el resto del diseño: con seis enlaces no cabe en una fila */
@media (max-width: 1140px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .3s var(--ease);
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav > a:not(.btn) { padding: 14px 16px; }
  .nav__cta { margin: 8px 0 0; }
}

@media (max-width: 960px) {
  .hero__inner, .about, .contact { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 110px; }
  .hero__visual { min-height: 380px; }
  .hero__watermark { width: 380px; right: -120px; top: 72%; }
  .quick { grid-template-columns: repeat(2, 1fr); }
  .quick__item:nth-child(3) { border-left: 0; }
  .quick__item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .channels, .cards3, .hours { grid-template-columns: 1fr; }
  .values { position: static; }
  .principles { margin-top: 70px; }
  .principles__grid { grid-template-columns: 1fr 1fr; }
  .objectives { margin-top: 70px; }
  .procmap { margin-top: 70px; }
  .services--groups { grid-template-columns: 1fr 1fr; }
  .model { grid-template-columns: 1fr; padding: 36px 28px; margin-top: 60px; }
  .areas { grid-template-columns: 1fr; }
  .objectives__grid { grid-template-columns: 1fr 1fr; }
  .principle, .principle:nth-child(4) { grid-column: auto; }
  .principle:last-child { grid-column: 1 / -1; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 40px 30px; }
  .section { padding: 80px 0; }
}

@media (max-width: 600px) {
  .topbar__item:first-child { display: none; }
  .logo img { height: 42px; }
  .topbar__inner { gap: 12px; }
  .hero h1 { margin-top: 18px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero-card--a { left: 0; }
  .hero-card--b { right: 0; }
  .quick { grid-template-columns: 1fr; }
  .quick__item + .quick__item { border-left: 0; border-top: 1px solid var(--line); }
  .form { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .preferential { flex-direction: column; align-items: flex-start; padding: 24px; }
  .footer__inner { grid-template-columns: 1fr; }
  .principles__grid { grid-template-columns: 1fr; }
  .objectives__grid { grid-template-columns: 1fr; }
  .pmap__body { grid-template-columns: 1fr; }
  .pmap__side { padding: 14px 16px 30px; clip-path: polygon(0 0, 100% 0, 100% 68%, 50% 100%, 0 68%); }
  .pmap__side span { writing-mode: horizontal-tb; transform: none; }
  .pmap__row li, .pmap__row--main li { padding: 10px 16px; font-size: .92rem; }
  .services--groups { grid-template-columns: 1fr; }
  .model { padding: 30px 20px; }
  .model__routes { grid-template-columns: 1fr; }
  .model__routes li { min-height: 0; }
  .channel { padding: 24px; }
}

/* ============ Páginas legales ============ */
.legal { padding: 60px 0 80px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--navy); margin: 14px 0 6px; }
.legal__date { color: var(--muted); font-size: .9rem; margin-bottom: 28px; }
.legal h2 { font-size: 1.2rem; color: var(--navy); margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink); line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.legal ul { list-style: disc; }
.legal ol { list-style: decimal; }
.legal a { color: var(--teal-600); text-decoration: underline; }

/* ============ Páginas internas ============ */
.page { padding: 60px 0 80px; }
.page .section__head { margin-bottom: 40px; }
.reports { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.report { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.report h2 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin: 0 0 14px; }
.report ul { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.report a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--bg-soft); color: var(--navy); font-weight: 600; font-size: .92rem; transition: background .2s; }
.report a:hover { background: var(--teal-50); }
.report a .ico { width: 22px; height: 22px; flex: none; color: var(--teal-600); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.report a small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.cta-band__mail { color: #fff; font-weight: 700; text-decoration: underline; }
