/* =========================================================
   M.G HEALTH PARTNERS · Estilos
   ========================================================= */

:root {
  --navy: #102B46;
  --navy-deep: #091B2C;
  --teal: #52BAC5;
  --teal-strong: #12A0AE;   /* variante accesible para gráficas sobre blanco */
  --blue-chart: #2B5FA6;    /* serie "actual" en gráficas */
  --white: #FFFFFF;
  --gray-bg: #F5F7FA;
  --gray-text: #64748B;
  --ink: #0F1F33;
  --line: #E3E8EF;
  --line-dark: rgba(255,255,255,.09);

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16,43,70,.05), 0 2px 8px rgba(16,43,70,.04);
  --shadow: 0 2px 4px rgba(16,43,70,.04), 0 12px 32px rgba(16,43,70,.08);
  --shadow-lg: 0 30px 80px rgba(3,12,22,.45);
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--navy); margin: 0; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--teal); color: var(--navy-deep); padding: 8px 14px; border-radius: 8px; z-index: 200; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: -.005em;
  cursor: pointer; transition: transform .25s var(--ease), background .25s, box-shadow .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--teal); color: var(--navy-deep); box-shadow: 0 6px 20px rgba(82,186,197,.28); }
.btn-primary:hover { background: #63c6d0; transform: translateY(-1px); box-shadow: 0 10px 28px rgba(82,186,197,.38); }
.btn-ghost-light { color: var(--white); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.03); }
.btn-ghost-light:hover { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.07); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(9,27,44,.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: .08em; }
.brand-sub { font-family: var(--font-head); font-weight: 600; font-size: 10.5px; letter-spacing: .42em; color: var(--teal); margin-top: 5px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul a { white-space: nowrap;
  display: block; padding: 8px 12px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,.72);
  transition: color .2s, background .2s;
}
.main-nav ul a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.main-nav ul a.is-active { color: var(--white); }
.main-nav ul a.is-active::after { content: ""; display: block; height: 2px; margin-top: 3px; border-radius: 2px; background: var(--teal); }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-dark); background: transparent; border-radius: 10px; cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Tipografía de sección ---------- */
.section { padding: 120px 0; position: relative; }
.section-alt { background: var(--gray-bg); }
.section-dark { background: var(--navy-deep); color: var(--white); overflow: hidden; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 64px; }
.section-head h2, .about h2, .contact h2, .tech-copy h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-strong);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-light { color: var(--teal); }
.lead { font-size: 18px; color: var(--gray-text); margin-top: 20px; line-height: 1.65; }
.lead-light { color: rgba(255,255,255,.66); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100vh, 980px); padding: calc(var(--header-h) + 64px) 0 56px;
  background: radial-gradient(1200px 600px at 85% 20%, #143a5c 0%, transparent 60%), linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: var(--white); overflow: hidden; display: flex; flex-direction: column; justify-content: center;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 80%);
}
.hero-glow { position: absolute; width: 520px; height: 520px; right: 6%; top: 18%; border-radius: 50%; background: radial-gradient(circle, rgba(82,186,197,.18), transparent 65%); filter: blur(20px); animation: glow 9s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate(-40px, 30px) scale(1.08); } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 64px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(38px, 5.2vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.hero h1 .accent { color: var(--teal); }
.hero-sub { margin-top: 24px; font-size: 18.5px; line-height: 1.65; color: rgba(255,255,255,.7); max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-trust { display: flex; align-items: center; gap: 10px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 14.5px; color: rgba(255,255,255,.62); max-width: 560px; }
.hero-trust svg { width: 20px; height: 20px; color: var(--teal); flex: none; }

.hero-pillars-strip {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 22px;
  margin-top: 72px; font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.45);
}
.hero-pillars-strip i { width: 5px; height: 5px; border-radius: 50%; background: var(--teal); opacity: .7; }

/* Dashboard */
.hero-visual { position: relative; }
.dash {
  position: relative; padding: 20px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(23,52,82,.82), rgba(12,32,52,.9));
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}
.dash-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-dark); }
.dash-dots { display: flex; gap: 6px; }
.dash-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.16); }
.dash-title { font-size: 12.5px; color: rgba(255,255,255,.7); font-weight: 500; }
.dash-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--teal); }
.dash-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.kpi { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line-dark); display: flex; flex-direction: column; gap: 4px; }
.kpi-label { font-size: 11.5px; color: rgba(255,255,255,.55); }
.kpi-value { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--white); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi-delta { font-size: 11.5px; font-weight: 600; }
.kpi-delta.up, .kpi-delta.down-good { color: var(--teal); }

.dash-chart { margin-top: 12px; padding: 14px 14px 10px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line-dark); }
.dash-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 8px; flex-wrap: wrap; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: rgba(255,255,255,.55); }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.legend { gap: 14px; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lg-a { background: var(--teal); }
.lg-b { background: rgba(255,255,255,.35); }
.line-chart { width: 100%; height: 130px; overflow: visible; }
.grid-lines line { stroke: rgba(255,255,255,.06); stroke-width: 1; }
.line-a, .line-b { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.line-a { stroke: var(--teal); stroke-dasharray: 600; stroke-dashoffset: 600; }
.line-b { stroke: rgba(255,255,255,.3); stroke-dasharray: 4 5; }
.area { opacity: 0; transition: opacity 1.2s .9s; }
.pulse-dot { fill: var(--teal); opacity: 0; transform-origin: 400px 34px; }
.dash-chart.is-in .line-a { animation: draw 2s var(--ease) .3s forwards; }
.dash-chart.is-in .area { opacity: 1; }
.dash-chart.is-in .pulse-dot { animation: pop .4s 2.1s forwards, pulse 2.4s 2.5s infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }
@keyframes pulse { 0%,100% { r: 4; } 50% { r: 6; } }
.dash-months { display: flex; justify-content: space-between; font-size: 10.5px; color: rgba(255,255,255,.38); margin-top: 6px; }

.dash-bottom { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; margin-top: 10px; }
.dash-bars, .dash-donut { padding: 14px; border-radius: 12px; background: rgba(255,255,255,.03); border: 1px solid var(--line-dark); }
.mini-title { display: block; font-size: 11.5px; color: rgba(255,255,255,.6); margin-bottom: 10px; font-weight: 500; }
.bar-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; font-size: 11px; color: rgba(255,255,255,.6); }
.bar-row + .bar-row { margin-top: 8px; }
.bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, #2f7f95, var(--teal)); transition: width 1.4s var(--ease); }
.dash-bars.is-in .bar i { width: var(--w); }
.bar-row:nth-child(3) i { transition-delay: .1s; }
.bar-row:nth-child(4) i { transition-delay: .2s; }
.bar-row:nth-child(5) i { transition-delay: .3s; }

.dash-donut { position: relative; display: flex; flex-direction: column; align-items: center; }
.dash-donut svg { width: 76px; height: 76px; transform: rotate(-90deg); }
.donut-bg, .donut-fg { fill: none; stroke-width: 7; }
.donut-bg { stroke: rgba(255,255,255,.08); }
.donut-fg { stroke: var(--teal); stroke-linecap: round; stroke-dasharray: 201; stroke-dashoffset: 201; transition: stroke-dashoffset 1.6s var(--ease) .4s; }
.dash-donut.is-in .donut-fg { stroke-dashoffset: calc(201 - 201 * var(--p) / 100); }
.donut-val { position: absolute; top: 62px; font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.dash-note { margin-top: 10px; font-size: 10.5px; color: rgba(255,255,255,.35); text-align: right; letter-spacing: .02em; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgba(255,255,255,.96); color: var(--navy); box-shadow: 0 18px 40px rgba(3,12,22,.35); font-size: 12.5px;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--font-head); font-size: 13px; }
.float-card span:not(.fc-icon) { color: var(--gray-text); font-size: 12px; }
.fc-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(82,186,197,.15); color: #138794; flex: none; }
.fc-icon svg { width: 18px; height: 18px; }
.fc-1 { left: -38px; top: 41%; }
.fc-2 { right: -24px; bottom: -22px; animation-delay: -3s; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- Tarjetas problema ---------- */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe7ea; }
.icon-box { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(180deg, #eef8f9, #e3f3f5); color: #138794; margin-bottom: 22px; }
.icon-box svg { width: 24px; height: 24px; }
.problem-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.problem-card p { color: var(--gray-text); font-size: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tags li { font-size: 12px; font-weight: 500; color: var(--navy); background: var(--gray-bg); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }

.statement { margin: 72px auto 0; max-width: 820px; text-align: center; }
.statement p { font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; color: var(--gray-text); font-weight: 500; letter-spacing: -.015em; }
.statement strong { color: var(--navy); font-weight: 800; }

/* ---------- Pilares ---------- */
.pillars { display: grid; grid-template-columns: 320px 1fr; gap: 28px; align-items: start; }
.pillar-tabs { display: flex; flex-direction: column; gap: 8px; position: sticky; top: calc(var(--header-h) + 24px); }
.pillar-tab {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 18px 20px; border-radius: 14px;
  background: transparent; border: 1px solid transparent; cursor: pointer; transition: background .25s, border-color .25s, box-shadow .25s;
}
.pillar-tab:hover { background: rgba(255,255,255,.7); }
.pillar-tab.is-active { background: var(--white); border-color: var(--line); box-shadow: var(--shadow-sm); }
.pt-num { font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--gray-text); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); transition: all .25s; flex: none; }
.pillar-tab.is-active .pt-num { background: var(--navy); color: var(--teal); border-color: var(--navy); }
.pt-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--navy); }

.pillar-panels { background: var(--white); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 44px; min-height: 480px; }
.pillar-panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.pillar-panel.is-active { animation: panelIn .5s var(--ease); }
.pillar-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } }
.pp-copy h3 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.pp-copy > p { color: var(--gray-text); }
.check-list { margin-top: 22px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; font-size: 15px; font-weight: 500; color: var(--navy); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: rgba(82,186,197,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.5 2.5L14 7.5' fill='none' stroke='%23138794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat;
}
.note { display: flex; gap: 10px; margin-top: 24px; padding: 14px 16px; border-radius: 12px; background: var(--gray-bg); border: 1px solid var(--line); font-size: 13.5px; color: var(--gray-text); line-height: 1.55; }
.note svg { width: 18px; height: 18px; flex: none; color: #138794; margin-top: 1px; }

.viz-card { background: linear-gradient(180deg, var(--navy), var(--navy-deep)); border-radius: 18px; padding: 24px; color: var(--white); min-height: 320px; display: flex; flex-direction: column; }
.viz-card .mini-title { color: rgba(255,255,255,.65); }

.orbit { position: relative; flex: 1; min-height: 260px; display: grid; place-items: center; }
.orbit::before, .orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1px dashed rgba(82,186,197,.3); }
.orbit::before { width: 210px; height: 210px; animation: spin 40s linear infinite; }
.orbit::after { width: 120px; height: 120px; border-style: solid; border-color: rgba(255,255,255,.06); }
.orbit-core { position: relative; z-index: 1; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--navy-deep); font-family: var(--font-head); font-weight: 800; font-size: 12.5px; box-shadow: 0 0 0 10px rgba(82,186,197,.12); }
.orbit-item {
  position: absolute; left: 50%; top: 50%; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); white-space: nowrap;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-105px) rotate(calc(-1 * var(--a)));
}
@keyframes spin { to { transform: rotate(360deg); } }

.compare { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 48px; padding-top: 24px; min-height: 240px; }
.compare-col { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 220px; justify-content: flex-end; }
.compare-col span { font-size: 12px; color: rgba(255,255,255,.65); }
.compare-bar { width: 64px; height: var(--h); border-radius: 4px 4px 0 0; transform: scaleY(0); transition: transform 1s var(--ease); transform-origin: bottom; }
.viz-card.is-in .compare-bar { transform: none; }
.compare-col + .compare-col .compare-bar { transition-delay: .2s; }
.cb-a { background: rgba(255,255,255,.22); }
.cb-b { background: var(--teal); }
@keyframes grow { from { transform: scaleY(0); } }

.stack { display: grid; gap: 14px; margin-top: 12px; }
.stack-row { display: grid; grid-template-columns: 118px 1fr; align-items: center; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,.7); }
.stack-bar { height: 10px; border-radius: 4px; background: rgba(255,255,255,.07); }
.stack-bar i { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--teal); transform: scaleX(0); transition: transform 1s var(--ease); transform-origin: left; }
.viz-card.is-in .stack-bar i { transform: none; }
.stack-row:nth-child(2) .stack-bar i { transition-delay: .1s; } .stack-row:nth-child(3) .stack-bar i { transition-delay: .2s; }
.stack-row:nth-child(4) .stack-bar i { transition-delay: .3s; } .stack-row:nth-child(5) .stack-bar i { transition-delay: .4s; }
@keyframes growX { from { transform: scaleX(0); } }

.flow { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0; }
.flow-node { padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); font-family: var(--font-head); font-weight: 700; font-size: 13px; }
.flow-node-accent { background: var(--teal); color: var(--navy-deep); border-color: var(--teal); }
.flow-line { position: relative; width: 48px; height: 2px; background: rgba(255,255,255,.14); overflow: hidden; }
.flow-line i { position: absolute; inset: 0 auto 0 0; width: 16px; background: var(--teal); animation: flow 1.6s linear infinite; }
@keyframes flow { from { transform: translateX(-16px); } to { transform: translateX(48px); } }
.flow-caption { font-size: 12.5px; color: rgba(255,255,255,.55); text-align: center; }

/* ---------- Método ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; position: relative; counter-reset: step; }
.timeline::before { content: ""; position: absolute; top: 24px; left: 24px; right: 24px; height: 1px; background: linear-gradient(90deg, var(--teal), var(--line)); }
.step { position: relative; }
.step-num {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 24px;
  background: var(--white); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 800; font-size: 14px; color: var(--navy);
  box-shadow: var(--shadow-sm); transition: background .3s, color .3s;
}
.step:hover .step-num { background: var(--navy); color: var(--teal); }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--gray-text); }

.autonomy { margin-top: 88px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 48px; border-radius: 22px; background: var(--gray-bg); border: 1px solid var(--line); }
.autonomy-copy h3 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.autonomy-copy p { color: var(--gray-text); }
.autonomy-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.autonomy-list li { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--navy); }
.al-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--navy); color: var(--teal); flex: none; }
.al-icon svg { width: 20px; height: 20px; }

/* ---------- Tecnología ---------- */
.section-dark::before { content: ""; position: absolute; width: 700px; height: 700px; left: -200px; bottom: -300px; border-radius: 50%; background: radial-gradient(circle, rgba(82,186,197,.12), transparent 65%); }
.tech-inner { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; margin-top: 44px; }
.feature svg { width: 26px; height: 26px; color: var(--teal); margin-bottom: 12px; }
.feature h4 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 14px; color: rgba(255,255,255,.6); }

.portal { border-radius: 18px; overflow: hidden; background: var(--white); color: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.1); }
.portal-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #eef2f6; border-bottom: 1px solid var(--line); }
.portal-top .dash-dots i { background: #cbd5e1; }
.portal-url { flex: 1; text-align: center; font-size: 12px; color: var(--gray-text); background: var(--white); padding: 5px 12px; border-radius: 8px; border: 1px solid var(--line); max-width: 300px; margin: 0 auto; }
.portal-body { display: grid; grid-template-columns: 150px 1fr; min-height: 360px; }
.portal-side { background: var(--navy); padding: 20px 12px; display: flex; flex-direction: column; gap: 4px; }
.ps-brand { font-family: var(--font-head); font-weight: 800; font-size: 13px; color: var(--white); padding: 0 10px 18px; letter-spacing: .04em; }
.ps-item { font-size: 13px; color: rgba(255,255,255,.6); padding: 9px 10px; border-radius: 8px; }
.ps-item.is-active { background: rgba(82,186,197,.16); color: var(--teal); font-weight: 600; }
.portal-main { padding: 22px; }
.portal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.portal-head strong { font-family: var(--font-head); color: var(--navy); }
.portal-search { font-size: 12px; color: #94a3b8; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; }
.portal-list li { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 13px; opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s var(--ease); }
.portal-list.is-in li { opacity: 1; transform: none; }
.portal-list li:nth-child(2) { transition-delay: .1s; } .portal-list li:nth-child(3) { transition-delay: .2s; }
.portal-list li:nth-child(4) { transition-delay: .3s; } .portal-list li:nth-child(5) { transition-delay: .4s; }
.pl-id { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--navy); }
.pl-type { color: var(--gray-text); }
.status { font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-ok { background: #e6f6f0; color: #0f7a55; }
.st-proc { background: #fdf3e3; color: #a35f08; }
.portal .dash-note { color: #94a3b8; }

/* ---------- Simulador ---------- */
.sim { display: grid; grid-template-columns: 400px 1fr; gap: 28px; align-items: start; }
.sim-inputs { background: var(--navy); color: var(--white); border-radius: 22px; padding: 32px; display: grid; gap: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.fr-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.fr-head label { font-size: 14px; color: rgba(255,255,255,.72); }
.fr-head output { font-family: var(--font-head); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 4px; background: linear-gradient(90deg, var(--teal) var(--fill, 50%), rgba(255,255,255,.12) var(--fill, 50%)); outline: none; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 4px solid var(--teal); box-shadow: 0 2px 10px rgba(0,0,0,.3); transition: transform .2s; }
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--white); border: 4px solid var(--teal); }

.scenario { border: 0; padding: 0; margin: 0; }
.scenario legend { font-size: 14px; color: rgba(255,255,255,.72); margin-bottom: 12px; padding: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { text-align: center; padding: 10px 6px; border-radius: 9px; font-size: 13px; font-weight: 600; cursor: pointer; color: rgba(255,255,255,.7); transition: background .2s, color .2s; }
.seg input:checked + label { background: var(--teal); color: var(--navy-deep); }
.seg input:focus-visible + label { outline: 2px solid var(--white); outline-offset: 2px; }
.scen-desc { margin-top: 12px; font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.55; }

.sim-results { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 32px; box-shadow: var(--shadow); }

.lg-cur { background: var(--blue-chart); }
.lg-new { background: var(--teal-strong); }
.disclaimer { font-size: 12.5px; color: var(--gray-text); line-height: 1.55; margin: 20px 0; padding: 14px 16px; background: var(--gray-bg); border-radius: 12px; border-left: 3px solid var(--teal); }

/* ---------- Sobre nosotros ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.about-copy > p:not(.lead):not(.eyebrow) { margin-top: 18px; color: var(--gray-text); }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.value::before { content: ""; position: absolute; top: 0; left: 26px; width: 32px; height: 3px; background: var(--teal); border-radius: 0 0 3px 3px; }
.value:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.value h4 { font-size: 17px; margin-bottom: 8px; }
.value p { font-size: 14px; color: var(--gray-text); }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.contact-points { display: grid; gap: 12px; margin-top: 32px; }
.contact-points li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: var(--navy); }
.cp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(82,186,197,.18); }
.contact-info { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.contact-info a { font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--navy); }
.contact-info a:hover { color: #138794; }
.contact-info span { font-size: 14px; color: var(--gray-text); }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--gray-bg);
  font-size: 15px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(82,186,197,.15); }
.field-check { flex-direction: row; align-items: flex-start; flex-wrap: wrap; gap: 10px; }
.field-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal-strong); flex: none; }
.field-check label { flex: 1; font-weight: 400; color: var(--gray-text); font-size: 13.5px; }
.field-check label a { color: #138794; text-decoration: underline; }
.error-msg { display: none; font-size: 12.5px; color: #b42318; width: 100%; }
.field.has-error input, .field.has-error select { border-color: #e5484d; background: #fff8f8; }
.field.has-error .error-msg { display: block; }
.form-success { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: #e6f6f0; color: #0f7a55; font-size: 14px; font-weight: 500; }
.form-success[hidden] { display: none; }
.form-success svg { width: 20px; height: 20px; flex: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.6); padding: 80px 0 32px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-brand p { margin-top: 20px; max-width: 320px; line-height: 1.6; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h5 { color: var(--white); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }
.footer-col a:hover { color: var(--teal); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 12.5px; color: rgba(255,255,255,.4); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .main-nav ul a { padding: 8px 8px; font-size: 13.5px; }
  .main-nav { gap: 16px; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px; background: var(--navy-deep); transform: translateX(100%); transition: transform .4s var(--ease), visibility 0s .4s; overflow-y: auto; visibility: hidden;
  }
  .nav-open .main-nav { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .nav-open .site-header { background: var(--navy-deep); }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul a { font-size: 18px; padding: 14px 8px; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .main-nav ul a.is-active::after { display: none; }
  .main-nav ul a.is-active { color: var(--teal); }
  .nav-cta { padding: 14px; font-size: 15px; }

  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { max-width: 620px; margin-inline: auto; width: 100%; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars > *, .pillar-panel > * { min-width: 0; }
  .pillar-tabs { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .pillar-tab { flex: none; width: auto; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline::before { top: 24px; bottom: 24px; left: 24px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--teal), var(--line)); }
  .step { display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; padding-bottom: 32px; }
  .step-num { grid-row: span 2; margin-bottom: 0; }
  .autonomy, .tech-inner, .about, .contact { grid-template-columns: 1fr; }
  .sim { grid-template-columns: 1fr; }
  .sim-inputs { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 84px 0; }
  .container { width: min(1200px, 100% - 36px); }
  .section-head { margin-bottom: 44px; }
  .cards-4 { grid-template-columns: 1fr; }
  .pillar-panels { padding: 26px; }
  .pillar-panel { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .autonomy { padding: 28px; }
  .autonomy-list, .feature-grid, .values, .form-grid { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .kpi { padding: 10px; }
  .kpi-value { font-size: 17px; }
  .dash-bottom { grid-template-columns: 1fr; }
  .dash-donut { flex-direction: row; gap: 16px; justify-content: flex-start; }
  .dash-donut .mini-title { margin: 0; }
  .donut-val { top: auto; left: 14px; width: 76px; text-align: center; }
  .dash-donut { flex-direction: row-reverse; justify-content: flex-end; }
  .float-card { display: none; }
  .portal-body { grid-template-columns: 1fr; }
  .portal-side { display: none; }
  .sim-inputs, .sim-results, .contact-form { padding: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-pillars-strip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .line-a { stroke-dashoffset: 0; }
}

/* ---------- Enfoque · Salud de la mujer ---------- */
.focus { padding: 96px 0; border-bottom: 1px solid var(--line); }
.focus-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.focus-copy h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.focus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.focus-item { position: relative; padding: 18px 18px 18px 40px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-sm); transition: border-color .3s, transform .3s var(--ease); }
.focus-item:hover { border-color: #cfe7ea; transform: translateY(-2px); }
.focus-item strong { display: block; font-family: var(--font-head); font-size: 15.5px; color: var(--navy); }
.focus-item span:not(.fi-dot) { display: block; font-size: 13px; color: var(--gray-text); margin-top: 2px; }
.fi-dot { position: absolute; left: 18px; top: 24px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(82,186,197,.18); }
.orbit-core { text-align: center; line-height: 1.2; }
@media (max-width: 1024px) { .focus-inner { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 720px) { .focus { padding: 72px 0; } .focus-grid { grid-template-columns: 1fr; } }

/* ---------- Simulador por ratios ---------- */
.sim-group-title { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: -8px; }
.fr-head { align-items: center; }
.fr-num { width: 96px; text-align: right; padding: 4px 8px; border-radius: 8px; border: 1px solid transparent; background: rgba(255,255,255,.06); font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--white); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.fr-num::-webkit-inner-spin-button, .fr-num::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.fr-num:focus { outline: none; border-color: var(--teal); background: rgba(255,255,255,.1); }
.adv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.adv-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,.6); }
.adv-grid span { display: flex; align-items: center; gap: 6px; color: rgba(255,255,255,.7); }
.adv-grid input { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-dark); background: rgba(255,255,255,.06); color: var(--white); font-weight: 600; }
.adv-grid input:focus { outline: none; border-color: var(--teal); }

.mini-title-dark { font-size: 14px; font-weight: 600; color: var(--navy); }

/* ---------- Simulador (rediseño) ---------- */
.sr-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.sr-main { padding: 26px; border-radius: 18px; background: linear-gradient(140deg, var(--navy) 0%, #14405f 100%); color: var(--white); position: relative; overflow: hidden; }
.sr-main::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(82,186,197,.35), transparent 70%); }
.sr-side { padding: 26px; border-radius: 18px; background: var(--gray-bg); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.sr-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--gray-text); }
.sr-main .sr-label { color: rgba(255,255,255,.7); }
.sr-value { display: block; position: relative; z-index: 1; font-family: var(--font-head); font-size: clamp(38px, 4.6vw, 54px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; margin-top: 8px; color: var(--teal); font-variant-numeric: tabular-nums; }
.sr-value-sm { display: block; font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-top: 8px; color: var(--navy); font-variant-numeric: tabular-nums; }
.sr-sub { display: block; font-size: 12.5px; color: var(--gray-text); margin-top: 6px; }
.sr-main .sr-sub { color: rgba(255,255,255,.6); position: relative; z-index: 1; }
.sr-block { margin-top: 26px; }
.sr-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.sr-index-vals { font-family: var(--font-head); font-size: 15px; color: var(--gray-text); font-variant-numeric: tabular-nums; }
.sr-index-vals strong { color: #138794; font-size: 20px; }
.sr-index-vals small { font-size: 12px; }
.gauge { position: relative; height: 14px; border-radius: 99px; background: var(--gray-bg); border: 1px solid var(--line); overflow: hidden; }
.gauge span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; transition: width .7s var(--ease); }
.gauge-pot { background: repeating-linear-gradient(135deg, var(--teal-strong) 0 6px, #2fb3c0 6px 12px); }
.gauge-cur { background: var(--blue-chart); z-index: 1; }
.gauge-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 12.5px; color: var(--gray-text); }
.gauge-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gauge-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.proj { width: 100%; height: 140px; display: block; overflow: visible; }
.proj-base { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.proj-area { fill: url(#projGrad); transition: d .7s var(--ease); }
.proj-line { fill: none; stroke: var(--teal-strong); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: d .7s var(--ease); }
.proj-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-text); margin-top: 8px; }
.sim-status { margin-top: 18px; font-size: 13px; color: var(--gray-text); }
.sim-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 28px; padding: 20px 22px; border-radius: 16px; background: #eef8f9; border: 1px solid #cfe7ea; }
.sim-cta p { margin: 0; font-size: 14px; color: var(--ink); line-height: 1.5; }
.sim-cta .btn { flex: none; }
@media (max-width: 720px) {
  .sr-top { grid-template-columns: 1fr; }
  .sim-cta { flex-direction: column; align-items: stretch; text-align: left; }
}

/* ---------- Sección informe mensual ---------- */
.report-stage { position: relative; padding: 28px; border-radius: 26px; background: linear-gradient(160deg, var(--navy-deep), var(--navy) 70%); box-shadow: var(--shadow); overflow: hidden; }
.report-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 0%, rgba(82,186,197,.25), transparent 70%); pointer-events: none; }
.report-stage .rp-sheet { box-shadow: 0 30px 70px rgba(0,0,0,.4); }
.report-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.report-points li { padding-top: 16px; border-top: 2px solid var(--teal); }
.report-points strong { display: block; font-family: var(--font-head); font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.report-points span { font-size: 14px; color: var(--gray-text); line-height: 1.55; }
.report-note { margin-top: 18px; font-size: 12.5px; color: var(--gray-text); }
@media (max-width: 980px) { .report-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .report-stage { padding: 12px; border-radius: 18px; overflow-x: auto; }
  .report-points { grid-template-columns: 1fr; }
}

/* ---------- Alianzas estratégicas ---------- */
.alliance-section { padding-bottom: 0; }
.alliance {
  position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 26px; overflow: hidden; color: var(--white);
  background: linear-gradient(140deg, var(--navy-deep) 0%, var(--navy) 60%, #14405f 100%); box-shadow: var(--shadow);
}
.alliance::before { content: ""; position: absolute; inset: 0; background: radial-gradient(520px 300px at 100% 0%, rgba(82,186,197,.28), transparent 70%); pointer-events: none; }
.alliance > * { position: relative; }
.alliance h2 { color: var(--white); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 14px 0 18px; }
.alliance-note { margin-top: 18px; font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.6); padding-left: 14px; border-left: 2px solid var(--teal); }
.alliance-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative; }
.alliance-flow::before { content: ""; position: absolute; left: 22px; top: 24px; bottom: 24px; width: 1px; background: linear-gradient(180deg, rgba(255,255,255,.2), var(--teal)); }
.alliance-flow li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; }
.alliance-flow li > div { padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.alliance-flow li.is-accent > div { background: rgba(82,186,197,.14); border-color: rgba(82,186,197,.45); }
.alliance-flow strong { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--white); }
.alliance-flow span:not(.af-num) { display: block; font-size: 14px; color: rgba(255,255,255,.65); margin-top: 2px; }
.af-num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; background: var(--navy); border: 1px solid rgba(255,255,255,.18); color: var(--teal); position: relative; z-index: 1; }
.alliance-flow li.is-accent .af-num { background: var(--teal); color: var(--navy-deep); border-color: var(--teal); }
@media (max-width: 980px) { .alliance { grid-template-columns: 1fr; padding: 40px; gap: 32px; } }
@media (max-width: 720px) { .alliance { padding: 28px 22px; } }

/* ---------- Acceso Área Partners (cabecera) ---------- */
.nav-btns { display: flex; gap: 10px; align-items: center; }
.nav-partners svg { width: 16px; height: 16px; }
@media (max-width: 980px) { .nav-btns { flex-direction: column; align-items: stretch; } .nav-partners { padding: 14px; font-size: 15px; justify-content: center; } }

/* ---------- Sección Área Partners ---------- */
.pa-area { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.area-copy h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin: 14px 0 18px; }
.area-copy .check-list { margin: 24px 0 30px; }
.area-preview { position: relative; display: block; text-decoration: none; color: var(--ink); border-radius: 20px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transition: transform .35s var(--ease), box-shadow .35s; }
.area-preview:hover { transform: translateY(-4px); }
.ap-top { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--navy-deep); color: rgba(255,255,255,.7); font-size: 12.5px; }
.ap-body { padding: 18px; background: #F3F6F9; display: grid; gap: 14px; }
.ap-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ap-kpis div { padding: 12px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.ap-kpis div:nth-child(2) { background: linear-gradient(140deg, var(--navy), #14405f); border-color: transparent; color: var(--white); }
.ap-kpis span { display: block; font-size: 11.5px; color: var(--gray-text); }
.ap-kpis div:nth-child(2) span { color: rgba(255,255,255,.65); }
.ap-kpis strong { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--navy); margin: 2px 0 4px; }
.ap-kpis div:nth-child(2) strong { color: var(--white); }
.ap-kpis em { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; }
.ap-kpis em.up { background: #e3f5f1; color: #0E8F7E; }
.ap-kpis div:nth-child(2) em.up { background: rgba(82,186,197,.2); color: #8fe0e8; }
.ap-kpis em.warn { background: #fdf3dd; color: #C98A12; }
.ap-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; }
.ap-cap, .ap-alerts { padding: 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: grid; gap: 9px; align-content: start; }
.ap-t { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--navy); }
.ap-meter { display: grid; grid-template-columns: 78px 1fr 34px; align-items: center; gap: 8px; font-size: 11.5px; }
.ap-meter b { height: 7px; border-radius: 99px; background: #F3F6F9; overflow: hidden; }
.ap-meter i { display: block; height: 100%; border-radius: 99px; background: var(--teal-strong); }
.ap-meter i.w { background: #C98A12; }
.ap-meter em { font-style: normal; font-weight: 700; text-align: right; }
.ap-cap p { margin: 4px 0 0; font-size: 11.5px; padding: 8px 10px; border-radius: 8px; background: #eef8f9; color: var(--ink); }
.ap-al { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px; font-size: 11.5px; font-weight: 600; }
.ap-al i { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-style: normal; color: var(--white); font-size: 11px; flex: none; }
.ap-al.crit { background: #fdf4f3; } .ap-al.crit i { background: #D2554B; }
.ap-al.warn { background: #fdf8ee; } .ap-al.warn i { background: #C98A12; }
.ap-al.good { background: #f1faf8; } .ap-al.good i { background: #0E8F7E; }
@media (max-width: 980px) { .pa-area { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) { .ap-row { grid-template-columns: 1fr; } .ap-kpis strong { font-size: 18px; } }

.brand-text { white-space: nowrap; }
@media (max-width: 1240px) and (min-width: 981px) { .nav-partners { padding: 10px 12px; } .nav-partners .np-label { display: none; } }

/* Red de seguridad: nada puede ensanchar la página en móvil */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }

/* Flujo en móvil: en vertical para que quepan los recuadros y se vea la animación */
@media (max-width: 560px) {
  .flow { flex-direction: column; padding: 18px 0; }
  .flow-node { min-width: 170px; text-align: center; }
  .flow-line { width: 2px; height: 30px; }
  .flow-line i { inset: 0 0 auto 0; width: 100%; height: 12px; animation-name: flowY; }
}
@keyframes flowY { from { transform: translateY(-12px); } to { transform: translateY(30px); } }
