/* =========================================================
   Consusalud del Caribe IPS — Landing
   Paleta institucional tomada de consusalud.co
   ========================================================= */
:root {
  --red: #d90817;          /* rojo institucional */
  --red-dark: #b0060f;
  --red-bright: #e20613;
  --wine: #8f1d2c;
  --mauve: #b85f6e;        /* hexágonos de los banners */
  --rose: #f4babf;
  --rose-2: #e9a3aa;
  --blush: #f7e8ea;
  --blush-2: #fcf3f4;
  --ink: #101010;
  --text: #4a4a4a;
  --gray: #707070;
  --line: #e7e7e7;
  --gray-bg: #f5f5f5;
  --white: #fff;
  /* Superficies que cambian con el tema */
  --bg: #fff;
  --surface: #fff;
  --nav-text: #3b3b3b;
  --line-soft: rgba(16, 16, 16, .07);
  --line-strong: #c9c9c9;
  --glass: rgba(255,255,255,.92);
  --glass-strong: rgba(255,255,255,.96);
  --glass-hud: rgba(255,255,255,.82);
  --glass-line: rgba(255,255,255,.85);
  --glass-hi: rgba(255,255,255,.7);
  --glass-ring: rgba(16,16,16,.05);
  --radius: 18px;
  --shadow-sm: 0 6px 20px -10px rgba(16, 16, 16, .18);
  --shadow: 0 24px 50px -24px rgba(16, 16, 16, .25);
  --shadow-red: 0 18px 40px -16px rgba(217, 8, 23, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --hex: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
  --hex-v: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  color-scheme: light;
}

/* Tema oscuro: grafito cálido con el rojo institucional más luminoso.
   Sigue al sistema salvo que el usuario elija un tema (data-theme). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --red: #f0303d; --red-dark: #c70a17; --red-bright: #ff3b47; --wine: #c9485b;
    --blush: #2b171a; --blush-2: #211315;
    --ink: #f5eeef; --text: #cdbfc1; --gray: #9c8d90;
    --line: #34262a; --line-soft: rgba(255,255,255,.07); --line-strong: #4a3a3e;
    --gray-bg: #0d0909; --bg: #120d0e; --surface: #1a1315; --nav-text: #d9cdcf;
    --glass: rgba(26,19,21,.82); --glass-strong: rgba(26,19,21,.9); --glass-hud: rgba(26,19,21,.78);
    --glass-line: rgba(255,255,255,.08); --glass-hi: rgba(255,255,255,.05); --glass-ring: rgba(0,0,0,.4);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.35), 0 8px 22px -10px rgba(0,0,0,.6);
    --shadow: 0 2px 4px rgba(0,0,0,.35), 0 26px 54px -24px rgba(0,0,0,.75);
    --shadow-red: 0 18px 40px -16px rgba(240, 48, 61, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --red: #f0303d; --red-dark: #c70a17; --red-bright: #ff3b47; --wine: #c9485b;
  --blush: #2b171a; --blush-2: #211315;
  --ink: #f5eeef; --text: #cdbfc1; --gray: #9c8d90;
  --line: #34262a; --line-soft: rgba(255,255,255,.07); --line-strong: #4a3a3e;
  --gray-bg: #0d0909; --bg: #120d0e; --surface: #1a1315; --nav-text: #d9cdcf;
  --glass: rgba(26,19,21,.82); --glass-strong: rgba(26,19,21,.9); --glass-hud: rgba(26,19,21,.78);
  --glass-line: rgba(255,255,255,.08); --glass-hi: rgba(255,255,255,.05); --glass-ring: rgba(0,0,0,.4);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.35), 0 8px 22px -10px rgba(0,0,0,.6);
  --shadow: 0 2px 4px rgba(0,0,0,.35), 0 26px 54px -24px rgba(0,0,0,.75);
  --shadow-red: 0 18px 40px -16px rgba(240, 48, 61, .5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--red); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }
svg { width: 1em; height: 1em; fill: currentColor; }
svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; }

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

.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200;
  transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--red), var(--rose-2));
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s;
  overflow: hidden; isolation: isolate;
}
.btn .ic, .btn .ic-arrow { width: 18px; height: 18px; }
.btn .ic-arrow { transition: transform .3s var(--ease); }
.btn:hover .ic-arrow { transform: translateX(4px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--primary { background: linear-gradient(135deg, var(--red-bright), var(--red-dark)); color: #fff; box-shadow: var(--shadow-red); }
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red-dark);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.btn--primary:hover::before { transform: scaleX(1); transform-origin: left; }
.btn--primary:hover { transform: translateY(-2px); }
.btn--light { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn--light .ic { color: var(--red); }
.btn--light:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.btn--outline { border: 1.5px solid var(--red); color: var(--red); }
.btn--outline:hover { background: var(--red); color: #fff; }
.btn--white { background: #fff; color: var(--red); box-shadow: 0 14px 30px -14px rgba(0,0,0,.35); }
.btn--white:hover { transform: translateY(-2px); background: var(--blush-2); }

/* ---------- Nav (cápsula flotante) ---------- */
/* Todos los controles del nav comparten alto (--nav-item) para un ritmo uniforme */
.nav { --nav-h: 56px; --nav-item: 38px; position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding: 0 16px; transition: transform .5s var(--ease), top .35s var(--ease); }
.nav.is-scrolled { top: 10px; }
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }
.nav__inner {
  position: relative; display: flex; align-items: center; gap: 12px; height: var(--nav-h); max-width: 980px; margin-inline: auto; padding: 0 9px 0 18px;
  border-radius: 999px; transition: max-width .55s var(--ease), height .35s var(--ease);
}
/* El vidrio va en un pseudo-elemento: backdrop-filter en el padre rompería el panel fijo móvil */
.nav__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--glass); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-ring), 0 14px 34px -20px rgba(16,16,16,.3);
  transition: background .35s, box-shadow .35s;
}
.nav.is-scrolled { --nav-h: 52px; }
.nav.is-scrolled .nav__inner { max-width: 920px; }
.nav.is-scrolled .nav__inner::before { background: var(--glass-strong); box-shadow: inset 0 1px 0 var(--glass-hi), 0 0 0 1px var(--glass-ring), 0 20px 44px -22px rgba(16,16,16,.38); }
.nav__logo { position: relative; z-index: 2; flex: none; display: flex; }
/* logo-nav.png es el logo sin márgenes transparentes: la altura es la del dibujo real */
.nav__logo img { display: block; height: 38px; width: auto; max-width: none; object-fit: contain; transition: height .35s var(--ease); }
.nav.is-scrolled .nav__logo img { height: 35px; }

.nav__links { position: relative; display: flex; align-items: center; gap: 0; margin-inline: auto; font-size: 13.5px; font-weight: 500; color: var(--nav-text); }
.nav__pill {
  position: absolute; left: 0; top: 50%; width: 0; height: var(--nav-item); margin-top: calc(var(--nav-item) / -2); border-radius: 999px; background: var(--blush);
  opacity: 0; pointer-events: none; transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.nav__links > a, .nav__drop-btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 4px; height: var(--nav-item); padding: 0 12px;
  border-radius: 999px; font-weight: 500; white-space: nowrap; transition: color .25s;
}
.nav__links > a:hover, .nav__drop-btn:hover, .nav__links > a.is-active, .nav__dropdown.is-current > .nav__drop-btn { color: var(--red); }
.nav__links > a.is-active::after, .nav__dropdown.is-current > .nav__drop-btn::after {
  content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--red);
}
.nav__dropdown { position: relative; }
.chev { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .3s; }
.nav__drop-menu {
  position: absolute; top: calc(100% + 18px); left: 50%; width: 320px; padding: 8px; display: grid; gap: 2px;
  background: var(--surface); border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 60px -28px rgba(16,16,16,.35);
  opacity: 0; visibility: hidden; transform: translate(-50%, 10px) scale(.98); transform-origin: top center; transition: all .3s var(--ease);
}
.nav__drop-menu::before { content: ""; position: absolute; top: -20px; left: 0; right: 0; height: 20px; }
.nav__drop-menu a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 15px; transition: background .2s; }
.nav__drop-menu a:hover, .nav__drop-menu a.is-active { background: var(--blush-2); }
.nav__drop-ic { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--blush); color: var(--red); transition: background .25s, color .25s, transform .35s var(--ease); }
.nav__drop-ic svg { width: 20px; height: 20px; }
.nav__drop-menu a:hover .nav__drop-ic, .nav__drop-menu a.is-active .nav__drop-ic { background: var(--red); color: #fff; transform: scale(1.05); }
.nav__drop-menu b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.nav__drop-menu small { display: block; font-size: 12.5px; color: var(--gray); line-height: 1.4; }
.nav__dropdown:hover .nav__drop-menu, .nav__dropdown.is-open .nav__drop-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__dropdown:hover .chev, .nav__dropdown.is-open .chev { transform: rotate(180deg); }
.nav__extra { display: none; }

.nav__actions { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 6px; }
.nav__call { display: inline-flex; border-radius: 50%; color: var(--ink); }
.nav__call-ic { position: relative; width: var(--nav-item); height: var(--nav-item); display: grid; place-items: center; border-radius: 50%; background: var(--blush); color: var(--red); transition: background .25s, color .25s; }
.nav__call:hover .nav__call-ic { background: var(--red); color: #fff; }
.nav__call-ic::after { content: ""; position: absolute; top: 1px; right: 1px; width: 9px; height: 9px; border-radius: 50%; background: #1fae5b; border: 2px solid var(--surface); animation: live 1.6s infinite; }
.nav__call-ic svg { width: 16px; height: 16px; }
/* Botón de tema: sol en claro, luna en oscuro (los íconos giran al cambiar) */
.theme { position: relative; width: var(--nav-item); height: var(--nav-item); display: grid; place-items: center; border-radius: 50%; background: var(--blush); color: var(--red); overflow: hidden; transition: background .25s, color .25s, transform .3s var(--ease); }
.theme:hover { background: var(--red); color: #fff; }
.theme:active { transform: scale(.92); }
.theme svg { grid-area: 1 / 1; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease), opacity .35s; }
.theme__moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="dark"] .theme__sun { opacity: 0; transform: rotate(90deg) scale(.4); }
:root[data-theme="dark"] .theme__moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme__sun { opacity: 0; transform: rotate(90deg) scale(.4); }
  :root:not([data-theme="light"]) .theme__moon { opacity: 1; transform: none; }
}
/* Cambio de tema con revelado circular desde el botón (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: themeReveal .6s var(--ease); }
@keyframes themeReveal { from { clip-path: circle(0 at var(--tx, 100%) var(--ty, 0)); } to { clip-path: circle(var(--tr, 150%) at var(--tx, 100%) var(--ty, 0)); } }
.nav__cta { height: var(--nav-item); padding: 0 18px; font-size: 13.5px; box-shadow: 0 10px 22px -12px rgba(217,8,23,.55); }
.nav__toggle { display: none; position: relative; width: var(--nav-item); height: var(--nav-item); border-radius: 50%; background: var(--ink); }
.nav__toggle span { position: absolute; left: 11px; width: 16px; height: 2px; border-radius: 2px; background: var(--bg); transition: transform .35s var(--ease), top .35s var(--ease), width .35s var(--ease); }
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 21px; width: 10px; }
.nav.is-open .nav__toggle span { top: 18px; width: 16px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: rotate(-45deg); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red);
  background: rgba(217,8,23,.07); border: 1px solid rgba(217,8,23,.12);
}
.eyebrow::before {
  content: ""; width: 10px; height: 10px; background: currentColor;
  clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%);
}
.eyebrow--light { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); }
.title { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: 14px 0 14px; text-wrap: balance; }
.lead { font-size: 17px; color: var(--gray); }
.section { position: relative; padding: 72px 0; }
.section--gray { background: var(--gray-bg); }
.section--rose { background: linear-gradient(180deg, var(--blush-2), var(--blush)); overflow: hidden; }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 40px; }
.section__head p { color: var(--gray); font-size: 16.5px; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; text-align: left; flex-wrap: wrap; }
.section__head--row .title { margin-bottom: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--bg); padding: 140px 0 80px; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(217,8,23,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(217,8,23,.07) 1px, transparent 1px);
  background-size: 44px 44px; animation: gridMove 18s linear infinite;
  mask-image: radial-gradient(ellipse 60% 70% at 72% 50%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 50%, #000 20%, transparent 75%);
}
@keyframes gridMove { to { background-position: 44px 44px; } }
.hero__glow { position: absolute; width: 760px; height: 760px; right: -120px; top: 50%; transform: translateY(-45%); border-radius: 50%; background: radial-gradient(circle, rgba(244,186,191,.55), rgba(247,232,234,.35) 45%, transparent 70%); }
.hero__grid > * { min-width: 0; }
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.05fr; gap: 30px; align-items: center; }
.tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--blush); color: var(--red); font-size: 13px; font-weight: 600;
}
.pulse-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--red); animation: ping 1.8s infinite; }
@keyframes ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(2); opacity: 0; } }
.hero__title { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.04; font-weight: 800; color: var(--ink); letter-spacing: -.035em; margin: 22px 0 20px; }
.hero__title .hl { color: var(--red); background: linear-gradient(120deg, var(--red-bright), var(--wine)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.caret { display: inline-block; width: 3px; height: .85em; margin-left: 4px; background: var(--red); vertical-align: -.05em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.underline { position: relative; white-space: nowrap; z-index: 0; }
.underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .2em; z-index: -1;
  background: var(--rose); border-radius: 4px; transform: scaleX(0); transform-origin: left;
  animation: underline 1s .9s var(--ease) forwards;
}
@keyframes underline { to { transform: scaleX(1); } }
.hero__lead { font-size: 17px; color: var(--gray); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 38px; }
.hero__trust { display: flex; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 520px; }
.hero__trust img { height: 72px; max-width: 100%; width: auto; object-fit: contain; filter: none; opacity: 1; }
.hero__trust span { font-size: 13px; color: var(--gray); }

/* Holograma */
.holo { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; justify-self: center; perspective: 900px; }
.holo__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.holo__frame { position: absolute; inset: 7%; pointer-events: none; }
.holo__frame i { position: absolute; width: 34px; height: 34px; border: 2px solid var(--red); opacity: .55; animation: frame 3s ease-in-out infinite; }
.holo__frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.holo__frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.holo__frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.holo__frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
@keyframes frame { 50% { opacity: .2; transform: scale(.92); } }
.holo__orbit {
  position: absolute; left: 50%; top: 50%; width: var(--s); aspect-ratio: 1; margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  border-radius: 50%; border: 1.5px dashed rgba(217,8,23,.28); transform-style: preserve-3d;
  animation: orbit var(--t) linear infinite; z-index: 1;
}
.holo__orbit span { position: absolute; top: -6px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 5px rgba(217,8,23,.15), 0 0 18px rgba(217,8,23,.6); }
.holo__orbit--1 { --s: 84%; --t: 16s; --rx: 72deg; --ry: 0deg; }
.holo__orbit--2 { --s: 70%; --t: 11s; --rx: 66deg; --ry: 38deg; border-style: solid; border-color: rgba(184,95,110,.25); animation-direction: reverse; }
.holo__orbit--2 span { background: var(--mauve); box-shadow: 0 0 0 5px rgba(184,95,110,.15); width: 9px; height: 9px; }
.holo__orbit--3 { --s: 96%; --t: 24s; --rx: 76deg; --ry: -30deg; border-color: rgba(217,8,23,.14); }
.holo__orbit--3 span { width: 8px; height: 8px; background: var(--rose-2); box-shadow: none; }
@keyframes orbit { from { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(0); } to { transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(360deg); } }
.holo__base {
  position: absolute; left: 50%; bottom: 8%; width: 56%; height: 12%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(ellipse, rgba(217,8,23,.28), rgba(217,8,23,.06) 55%, transparent 70%);
}
.holo__base::before, .holo__base::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(217,8,23,.35); animation: basePulse 2.6s ease-out infinite; }
.holo__base::after { animation-delay: 1.3s; }
@keyframes basePulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }

.hud {
  position: absolute; z-index: 4; padding: 12px 14px; border-radius: 16px;
  background: var(--glass-hud); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-line); box-shadow: 0 18px 40px -18px rgba(16,16,16,.3), inset 0 0 0 1px rgba(217,8,23,.06);
  animation: float 6s ease-in-out infinite; font-size: 12px;
}
.hud b { color: var(--ink); }
.hud small { color: var(--gray); font-size: 11.5px; }
.hud__head { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.hud__head svg { width: 15px; height: 15px; color: var(--red); }
.hud__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 6px; }
.hud .ok { color: #1fae5b; font-size: 12.5px; }
.hud .big { color: var(--red); font-size: 20px; line-height: 1; }
.hud .big small { color: var(--red); font-size: 12px; }
.hud--risk { top: 6%; left: -2%; width: 210px; }
.hud__bar { position: relative; height: 6px; border-radius: 6px; background: var(--blush); overflow: hidden; }
.hud__bar i { position: absolute; inset: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--rose-2)); animation: scanBar 3.2s var(--ease) infinite; }
@keyframes scanBar { 0% { width: 0; } 70%, 100% { width: 100%; } }
.hud--spo2 { top: 9%; right: -1%; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; animation-delay: -1.5s; }
.gauge { width: 54px; height: 54px; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 6; }
.gauge__track { stroke: var(--blush); }
.gauge__val { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 170; animation: gauge 2.4s .6s var(--ease) forwards; }
@keyframes gauge { to { stroke-dashoffset: 4; } }
.gauge__txt b { display: block; font-size: 20px; line-height: 1.1; color: var(--ink); }
.hud--ecg { bottom: 4%; left: -3%; width: 236px; animation-delay: -3s; }
.live { width: 8px; height: 8px; border-radius: 50%; background: #1fae5b; animation: live 1.6s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(31,174,91,.6); } 70% { box-shadow: 0 0 0 8px rgba(31,174,91,0); } 100% { box-shadow: 0 0 0 0 rgba(31,174,91,0); } }
.ecg { width: 100%; height: 52px; background: var(--blush-2); border-radius: 8px; }
.ecg__grid { stroke: rgba(217,8,23,.08); stroke-width: 1; fill: none; }
.ecg__line { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 2.6s linear infinite; }
@keyframes draw { 0% { stroke-dashoffset: 420; } 75% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.hud--bp { right: -3%; bottom: 20%; display: flex; align-items: center; gap: 10px; animation-delay: -4.5s; }
.hud__ic { width: 38px; height: 38px; display: grid; place-items: center; background: var(--red); color: #fff; clip-path: var(--hex); }
.hud__ic svg { width: 18px; height: 18px; animation: beat 1.3s ease-in-out infinite; }
.hud--bp b { display: block; font-size: 16px; }
.hud--bp em { font-style: normal; font-size: 11px; color: var(--gray); font-weight: 500; }
.holo__chip { position: absolute; z-index: 3; font-size: 11.5px; font-weight: 600; color: var(--red); padding: 4px 10px; border-radius: 999px; background: var(--glass-hud); border: 1px solid var(--blush); animation: chip 7s ease-in-out infinite; }
.holo__chip--1 { top: 32%; left: 4%; }
.holo__chip--2 { top: 48%; right: 2%; animation-delay: -2.3s; }
.holo__chip--3 { bottom: 30%; left: 10%; animation-delay: -4.6s; }
@keyframes chip { 0%, 100% { opacity: .4; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-8px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 14% { transform: scale(1.15); } 28% { transform: scale(1); } 42% { transform: scale(1.1); } 70% { transform: scale(1); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(10px, -18px) rotate(12deg); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ---------- Stats ---------- */
.stats { background: var(--gray-bg); padding: 10px 0 40px; position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); margin-top: -60px; overflow: hidden; }
.stat { display: flex; align-items: center; gap: 16px; padding: 30px 26px; position: relative; transition: background .3s; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 1px; background: var(--line); }
.stat:hover { background: var(--blush-2); }
.stat__hex { flex: none; width: 56px; height: 56px; display: grid; place-items: center; background: var(--blush); color: var(--red); clip-path: var(--hex); transition: background .3s, color .3s, transform .5s var(--ease); }
.stat:hover .stat__hex { background: var(--red); color: #fff; transform: rotate(60deg); }
.stat:hover .stat__hex svg { transform: rotate(-60deg); }
.stat__hex svg { width: 26px; height: 26px; transition: transform .5s var(--ease); }
.stat__hex svg .fill, .stat__hex use.fill { fill: currentColor; }
.stat strong { display: block; font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.15; }
.stat span:not(.count) { font-size: 13.5px; color: var(--gray); }

/* ---------- About: panal de valores, recorrido misión-visión y políticas ---------- */
#nosotros { background: var(--gray-bg); padding-top: 48px; }
.about__intro { max-width: 440px; color: var(--gray); font-size: 15.5px; }
.ab { display: grid; gap: 18px; }
.ab-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); padding: 34px; display: flex; flex-direction: column; gap: 14px; transition: box-shadow .45s, border-color .45s; }
.ab-card:hover { box-shadow: 0 28px 56px -34px rgba(217,8,23,.32); border-color: rgba(217,8,23,.16); }
.ab-card h3 { font-size: 22px; line-height: 1.25; font-weight: 800; letter-spacing: -.015em; color: var(--ink); }
.ab-card p { font-size: 15px; color: var(--gray); }
.ab-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.ab-label svg { width: 18px; height: 18px; }
.ab-label--dark { color: var(--ink); }
.ab-label--dark svg { color: var(--red); }

/* ADN + panal */
.ab-adn { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 44px 48px;
  background: radial-gradient(60% 80% at 100% 50%, var(--blush-2), transparent 70%), var(--surface); }
.ab-adn__txt { display: grid; gap: 18px; align-content: center; }
.ab-card .ab-statement { font-size: clamp(22px, 2.4vw, 31px); line-height: 1.3; font-weight: 700; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.ab-statement span { background: linear-gradient(transparent 66%, var(--blush) 66%); }
.ab-foco { position: relative; padding: 18px 22px 18px 24px; border-radius: 18px; background: var(--gray-bg); border-left: 4px solid var(--red); max-width: 460px; }
.ab-foco small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gray); }
.ab-foco b { display: block; margin: 2px 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--red); }
.ab-card .ab-foco p { font-size: 14.5px; color: var(--text); min-height: 4.35em; }
.ab-foco.is-cambio b, .ab-foco.is-cambio p { animation: focoIn .5s var(--ease); }
@keyframes focoIn { from { opacity: 0; transform: translateY(6px); } }
.ab-foco__dots { position: absolute; right: 18px; top: 20px; display: flex; gap: 5px; }
.ab-foco__dots u { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, width .3s; }
.ab-foco__dots u.on { width: 18px; border-radius: 99px; background: var(--red); }

.panal { --hw: 132px; --hh: 115px; position: relative; justify-self: center; width: calc(var(--hw) * 2.6 + 20px); height: calc(var(--hh) * 3.12 + 10px); animation: abFlota 8s ease-in-out infinite; }
@keyframes abFlota { 50% { transform: translateY(-8px); } }
.panal ul { position: absolute; inset: 0; }
.panal li, .panal__core, .panal__deco { position: absolute; width: var(--hw); height: var(--hh); left: calc(50% - var(--hw) / 2 + var(--x, 0) * var(--hw) * .82); top: calc(50% - var(--hh) / 2 + var(--y, 0) * var(--hh) * .545); clip-path: var(--hex); display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; }
.panal li { cursor: pointer; background: var(--blush-2); color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.15; padding: 0 10px; transition: background .45s, color .45s, transform .45s var(--ease); }
.panal li svg { width: 24px; height: 24px; color: var(--red); transition: color .45s, transform .45s var(--ease); }
.panal li:hover, .panal li:focus-visible { background: var(--blush); outline: none; }
.panal li.is-on { background: linear-gradient(135deg, var(--red-bright), var(--red-dark)); color: #fff; transform: scale(1.06); }
.panal li.is-on svg { color: #fff; transform: scale(1.15); }
.panal__core { z-index: 1; background: linear-gradient(150deg, #1d1d1f, #0b0b0c); color: #fff; }
:root[data-theme="dark"] .panal__core { background: linear-gradient(150deg, #4a1d25, #2a1216); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .panal__core { background: linear-gradient(150deg, #4a1d25, #2a1216); } }
.panal__core svg { width: 30px; height: 30px; color: var(--red); fill: currentColor; animation: latido 1.6s ease-in-out infinite; }
.panal__core small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.25; opacity: .85; }
@keyframes latido { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
.panal__deco { background: transparent; }
.panal__deco::before { content: ""; position: absolute; inset: 0; clip-path: var(--hex); background: repeating-linear-gradient(135deg, var(--blush) 0 6px, transparent 6px 12px); opacity: .9; }

/* Recorrido misión → visión */
.ab-ruta { padding: 38px 44px 34px; gap: 30px; }
.ruta__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.ruta__col { display: grid; gap: 10px; align-content: start; }
.ruta__col + .ruta__col { position: relative; }
.ruta__col + .ruta__col::before { content: ""; position: absolute; left: -28px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.ab-tag { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--gray-bg); color: var(--ink); }
.ab-tag svg { width: 15px; height: 15px; color: var(--red); }
.ab-tag--red { background: var(--blush); color: var(--red); }
.ruta__linea { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding-top: 24px; border-top: 1px dashed var(--line); }
.ruta__hito { display: grid; font-size: 12.5px; color: var(--gray); line-height: 1.2; }
.ruta__hito b { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.ruta__hito--fin { text-align: right; }
.ruta__hito--fin b { color: var(--red); }
.ruta__track { position: relative; height: 8px; border-radius: 99px; background: var(--gray-bg); }
.ruta__track i { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--pct, 0) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--rose), var(--red) 70%, var(--red-dark)); transition: width 1.8s var(--ease); }
.ruta__track::after { content: ""; position: absolute; right: -2px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; border-radius: 50%; border: 3px solid var(--red); background: var(--surface); }
.ruta__hoy { position: absolute; top: 50%; left: calc(var(--pct, 0) * 1%); width: 20px; height: 20px; translate: -50% -50%; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 6px rgba(217,8,23,.15); transition: left 1.8s var(--ease); }
@keyframes radar { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.ruta__hoy::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--red); animation: radar 2.2s ease-out infinite; }
.ruta__hoy em { position: absolute; bottom: calc(100% + 12px); left: 50%; translate: -50% 0; white-space: nowrap; padding: 5px 11px; border-radius: 999px; background: var(--ink); color: var(--surface); font-style: normal; font-size: 12px; font-weight: 700; }
.ruta__hoy em::after { content: ""; position: absolute; left: 50%; top: 100%; translate: -50% 0; border: 5px solid transparent; border-top-color: var(--ink); }

/* Políticas */
.ab-ic { width: 52px; height: 52px; display: grid; place-items: center; background: var(--red); color: #fff; clip-path: var(--hex); transition: transform .5s var(--ease), background .4s, color .4s; }
.ab-ic svg { width: 24px; height: 24px; transition: transform .5s var(--ease); }
.ab-pol__item:hover .ab-ic { transform: rotate(60deg); }
.ab-pol__item:hover .ab-ic svg { transform: rotate(-60deg); }
.ab-pol { padding: 32px 34px; background: linear-gradient(180deg, var(--surface), var(--blush-2)); }
.ab-pol__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ab-hint { font-size: 13px; color: var(--gray); }
.ab-pol__grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
.ab-pol__item { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 28px 6px; border-left: 1px solid var(--line); }
.ab-pol__item:first-child { border-left: 0; padding-left: 0; }
.ab-pol__item:last-child { padding-right: 0; }
.ab-num { position: absolute; right: 22px; top: 8px; font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--rose); }
.ab-pol__item:last-child .ab-num { right: 0; }
.ab-pol__item .ab-ic { width: 46px; height: 46px; background: var(--blush); color: var(--red); box-shadow: none; }
.ab-pol__item .ab-ic svg { width: 21px; height: 21px; }
.ab-pol__item:hover .ab-ic { background: var(--red); color: #fff; }
.ab-pol__item h3 { font-size: 19px; }
.ab-pol__item ul { display: grid; gap: 7px; margin-top: 4px; }
.ab-pol__item li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text); }
.ab-pol__item li::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ---------- Services ---------- */
.hex-pattern {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: url("../img/cadros_Mesa-de-trabajo-1.png") left top / 900px auto no-repeat;
}
.services { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.service {
  position: relative; padding: 34px 30px 38px; border-radius: 22px; background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .45s;
}
.service:hover { transform: translateY(-10px); box-shadow: 0 30px 60px -28px rgba(217,8,23,.35); }
.service::before {
  content: ""; position: absolute; width: 220px; height: 190px; right: -70px; top: -70px; background: var(--blush);
  clip-path: var(--hex); transition: transform .7s var(--ease), background .4s;
}
.service:hover::before { transform: rotate(60deg) scale(1.15); background: var(--rose); }
.service__top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.service__hex { width: 76px; height: 76px; display: grid; place-items: center; background: var(--red); color: #fff; clip-path: var(--hex); box-shadow: var(--shadow-red); transition: transform .5s var(--ease); }
.service:hover .service__hex { transform: scale(1.06); }
.service__hex svg { width: 36px; height: 36px; }
.service__num { font-size: 15px; font-weight: 700; color: var(--red); background: var(--surface); padding: 4px 10px; border-radius: 999px; }
.service h3 { position: relative; font-size: 24px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.service p { position: relative; color: var(--gray); font-size: 15px; margin-bottom: 20px; }
.service ul li { position: relative; padding: 10px 0 10px 30px; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--text); }
.service ul li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v7h7v6h-7v7H9v-7H2V9h7z'/%3E%3C/svg%3E") center / 12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 2h6v7h7v6h-7v7H9v-7H2V9h7z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.service__bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.service:hover .service__bar { transform: scaleX(1); }
.norms {
  position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px;
  margin-top: 50px; padding: 18px 24px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.norms__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); margin-right: 6px; }
.norms__label svg { width: 22px; height: 22px; color: var(--red); }
.norms__item { padding: 7px 14px; border-radius: 8px; background: var(--blush); color: var(--wine); font-size: 14px; font-weight: 500; }

/* ---------- Blog ---------- */
.blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.post:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.post__media { aspect-ratio: 16/9; overflow: hidden; background: var(--blush); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__media img { transform: scale(1.07); }
.post__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post time { display: inline-block; width: fit-content; font-size: 12px; font-weight: 600; color: var(--red); background: var(--blush); padding: 4px 10px; border-radius: 6px; }
.post h3 { font-size: 17px; line-height: 1.4; color: var(--ink); margin: 12px 0 16px; flex: 1; }
.post__media { position: relative; }
.post__cat { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(176,6,15,.85); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
/* Esqueletos mientras llegan los artículos desde Plenus */
.post--skeleton { pointer-events: none; }
.post--skeleton .post__media, .post--skeleton i, .prose-skeleton i {
  background: linear-gradient(90deg, var(--blush-2) 0%, var(--blush) 50%, var(--blush-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite;
}
.post--skeleton i { display: block; height: 12px; margin-bottom: 12px; border-radius: 6px; }
.post--skeleton i:nth-child(1) { width: 30%; } .post--skeleton i:nth-child(2) { width: 90%; height: 16px; }
.post--skeleton i:nth-child(3) { width: 100%; } .post--skeleton i:nth-child(4) { width: 70%; }
.prose-skeleton i { display: block; height: 14px; margin-bottom: 14px; border-radius: 7px; }
.prose-skeleton i:nth-child(odd) { width: 92%; } .prose-skeleton i:nth-child(3n) { width: 64%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: -14px 0 28px; }
.blog-cats[hidden] { display: none; }
.blog-cat { padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--gray); background: var(--surface); border: 1px solid var(--line); transition: color .25s, background .25s, border-color .25s; }
.blog-cat:hover { color: var(--red); border-color: var(--rose); }
.blog-cat.is-on { color: #fff; background: var(--red); border-color: var(--red); box-shadow: var(--shadow-red); }
/* Ficha editorial al final del artículo */
.article-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 2.2em; padding: 20px 22px; border-radius: 18px; background: var(--blush-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.article-facts small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.article-facts b { color: var(--ink); font-weight: 600; }
.article-facts__src { grid-column: 1 / -1; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--gray); word-break: break-word; }
.article-facts__src a { color: var(--red); text-decoration: underline; }
.post__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--red); }
.post__more svg { width: 16px; height: 16px; transition: transform .3s; }
.post:hover .post__more svg { transform: translateX(5px); }

/* ---------- Participación ---------- */
.part-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.part {
  position: relative; padding: 30px 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  overflow: hidden; isolation: isolate; transition: transform .4s var(--ease), box-shadow .4s, color .4s;
}
.part::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); clip-path: circle(0% at 100% 0); transition: clip-path .6s var(--ease); }
.part:hover { transform: translateY(-6px); box-shadow: var(--shadow-red); color: #fff; }
.part:hover::before { clip-path: circle(150% at 100% 0); }
.part__ic { width: 58px; height: 58px; display: grid; place-items: center; background: var(--blush); color: var(--red); clip-path: var(--hex); margin-bottom: 18px; transition: background .4s; }
.part:hover .part__ic { background: #fff; }
.part__ic svg { width: 28px; height: 28px; }
.part h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; transition: color .4s; }
.part p { font-size: 14px; color: var(--gray); transition: color .4s; }
.part:hover h3, .part:hover p { color: #fff; }
.part__go { position: absolute; top: 24px; right: 22px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--red); transition: transform .4s var(--ease), background .4s, border-color .4s; }
.part__go svg { width: 16px; height: 16px; }
.part:hover .part__go { transform: rotate(-45deg); background: #fff; border-color: #fff; }

/* ---------- Empleo ---------- */
.jobs {
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding: clamp(32px, 5vw, 64px); border-radius: 36px; border: 1px solid var(--blush);
  background: linear-gradient(150deg, var(--surface) 0%, var(--blush-2) 60%, var(--blush) 100%);
}
.jobs::before, .jobs::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.jobs::before { width: 520px; aspect-ratio: 1; right: -140px; top: -200px; background: radial-gradient(circle, rgba(244,186,191,.75), transparent 65%); }
.jobs::after { width: 340px; aspect-ratio: 1; left: -120px; bottom: -180px; background: radial-gradient(circle, rgba(217,8,23,.12), transparent 65%); }
.jobs h2 { font-size: clamp(32px, 4vw, 50px); line-height: 1.05; font-weight: 800; letter-spacing: -.035em; margin: 14px 0 14px; color: var(--ink); }
.jobs h2 em { font-style: normal; color: var(--red); background: linear-gradient(transparent 62%, rgba(217,8,23,.16) 62%); }
.jobs__content > p { max-width: 470px; font-size: 16.5px; color: var(--gray); }
.jobs__perks { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px; list-style: none; }
.jobs__perks li { display: grid; padding: 12px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.jobs__perks li:hover { transform: translateY(-4px); }
.jobs__perks b { font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--red); }
.jobs__perks small { font-size: 12.5px; color: var(--gray); }
.jobs__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.jobs__live { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: #1a9a54; }
.jobs__live i { width: 9px; height: 9px; border-radius: 50%; background: #1fae5b; animation: live 1.8s infinite; }

/* Visual: vacante con seguimiento de la postulación */
.jobs__visual { position: relative; display: grid; place-items: center; min-height: 380px; perspective: 900px; }
.jobs__visual::before { content: ""; position: absolute; width: 340px; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(217,8,23,.18); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.jobs__orb {
  position: absolute; z-index: 2; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface); color: var(--red); border: 2px solid var(--blush); box-shadow: 0 14px 28px -14px rgba(143,29,44,.45);
}
.jobs__orb svg { width: 24px; height: 24px; }
.jobs__orb--1 { top: 4%; left: 12%; }
.jobs__orb--2 { top: 0; right: 14%; animation-delay: -1.5s; }
.jobs__orb--3 { bottom: 6%; left: 4%; animation-delay: -3s; }
.jobs__orb--4 { bottom: 0; right: 8%; animation-delay: -4.5s; }
.jobs__you {
  position: absolute; z-index: 3; top: 44%; right: -4px; padding: 9px 16px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 14px; font-weight: 800; box-shadow: var(--shadow-red); animation: beat 2.4s ease-in-out infinite;
}
.ticket {
  --rx: 0deg; --ry: 0deg;
  position: relative; z-index: 1; width: min(100%, 360px); display: grid; gap: 14px; padding: 22px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 40px 70px -40px rgba(143,29,44,.55);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--ease);
}
.ticket__head { display: flex; align-items: center; justify-content: space-between; }
.ticket__ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.ticket__ic svg { width: 22px; height: 22px; }
.ticket__title { font-size: 19px; line-height: 1.25; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.ticket__facts { display: flex; flex-wrap: wrap; gap: 8px; }
.ticket__facts span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--gray-bg); font-size: 12.5px; color: var(--gray); }
.ticket__facts svg { width: 14px; height: 14px; color: var(--red); }
.ticket__track { height: 6px; border-radius: 6px; background: var(--gray-bg); overflow: hidden; }
.ticket__track i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--rose-2), var(--red)); transition: width .8s var(--ease); }
.ticket__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; }
.ticket__steps li { display: grid; justify-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--gray); transition: color .4s; }
.ticket__steps span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--gray-bg); color: var(--gray); border: 1px solid var(--line); transition: background .4s, color .4s, transform .5s cubic-bezier(.34,1.7,.64,1), box-shadow .4s; }
.ticket__steps svg { width: 20px; height: 20px; }
.ticket__steps li.is-on { color: var(--ink); }
.ticket__steps li.is-on span { background: var(--red); color: #fff; border-color: var(--red); box-shadow: var(--shadow-red); transform: scale(1.08); }
.ticket__done {
  position: absolute; left: 50%; bottom: -18px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: #1fae5b; color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 14px 26px -12px rgba(31,174,91,.7);
  opacity: 0; transform: translateY(10px) scale(.9); transition: opacity .4s, transform .5s cubic-bezier(.34,1.7,.64,1);
}
.ticket__done svg { width: 16px; height: 16px; }
.ticket.is-done .ticket__done { opacity: 1; transform: none; }

/* ---------- App ---------- */
.app { background: var(--red); color: #fff; overflow: hidden; }
.app::before {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='98' viewBox='0 0 56 98'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 32V66' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E");
}
.app__grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.app .title { color: #fff; }
.app__content > p { opacity: .92; font-size: 17px; max-width: 500px; }
.app__features { margin: 28px 0 34px; display: grid; gap: 12px; }
.app__features li { display: flex; align-items: center; gap: 14px; font-weight: 500; }
.app__features span { width: 42px; height: 42px; display: grid; place-items: center; background: rgba(255,255,255,.15); clip-path: var(--hex); }
.app__features svg { width: 20px; height: 20px; }
.app__visual { position: relative; display: grid; place-items: center; min-height: 540px; }
.phone {
  position: relative; z-index: 2; width: 268px; height: 540px; padding: 11px; border-radius: 42px;
  background: #1b1b1b; box-shadow: 0 40px 80px -30px rgba(0,0,0,.55), inset 0 0 0 2px #333; animation: float 7s ease-in-out infinite;
}
.phone__notch { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 86px; height: 22px; border-radius: 20px; background: #1b1b1b; z-index: 2; }
.phone__screen { height: 100%; border-radius: 32px; background: var(--gray-bg); padding: 48px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; color: var(--ink); }
.phone__logo { height: 44px; width: auto; margin: 0 auto 4px; }
.phone__hello { font-size: 12px; color: var(--gray); padding: 0 4px 4px; }
.phone__hello b { display: block; color: var(--ink); font-size: 14px; }
.phone__card { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); opacity: 0; transform: translateX(24px); }
.phone__card span { width: 36px; height: 36px; display: grid; place-items: center; background: var(--blush); color: var(--red); clip-path: var(--hex); }
.phone__card span svg { width: 18px; height: 18px; fill: currentColor; }
.phone__card div { flex: 1; }
.phone__card b { display: block; font-size: 12.5px; margin-bottom: 6px; }
.phone__card i { display: block; height: 6px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.phone__card i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--red); border-radius: inherit; transition: width 1.4s .5s var(--ease); }
.app__visual.is-visible .phone__card { animation: slideIn .7s var(--ease) forwards; }
.app__visual.is-visible .phone__card i::after { width: var(--w); }
.app__visual.is-visible .phone__card:nth-of-type(3) { animation-delay: .15s; }
.app__visual.is-visible .phone__card:nth-of-type(4) { animation-delay: .3s; }
@keyframes slideIn { to { opacity: 1; transform: none; } }
.phone__ecg { width: 100%; height: 50px; margin-top: auto; background: var(--surface); border-radius: 12px; }
.phone__ecg path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: drawSmall 2.4s linear infinite; }
@keyframes drawSmall { to { stroke-dashoffset: 0; } }
/* Plenus App interactiva: login de demostración, inicio y juego */
.phone__screen { position: relative; padding: 0; }
.pv { position: absolute; inset: 0; padding: 48px 14px 14px; display: flex; flex-direction: column; gap: 10px; opacity: 0; visibility: hidden; transform: translateX(18px); transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s; }
.pv.is-on { opacity: 1; visibility: visible; transform: none; }
.pv--login { justify-content: center; gap: 14px; padding-top: 56px; }
.pv--login .phone__logo { height: 52px; }
.pv__hola { text-align: center; display: grid; gap: 2px; }
.pv__hola b { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.pv__hola span { font-size: 12px; color: var(--gray); }
.pv__form { display: grid; gap: 9px; }
.pv__form label { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 44px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.pv__form label:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217,8,23,.12); }
.pv__form svg { width: 17px; height: 17px; color: var(--red); flex: none; }
.pv__form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink); }
.pv__form input::placeholder { color: var(--gray); font-weight: 500; }
.pv__err { display: none; font-size: 11.5px; font-weight: 600; color: var(--red); padding-left: 4px; }
.pv__form.is-error .pv__err { display: block; }
.pv__form.is-error label:first-child { border-color: var(--red); animation: pvShake .4s; }
@keyframes pvShake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.pv__btn { position: relative; height: 46px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--red-bright), var(--red-dark)); color: #fff; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 12px 24px -12px rgba(217,8,23,.7); transition: transform .15s; }
.pv__btn:active { transform: scale(.97); }
.pv__spin { display: none; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: pvGira .7s linear infinite; }
.pv__form.is-cargando .pv__btn span { visibility: hidden; }
.pv__form.is-cargando .pv__spin { display: block; }
@keyframes pvGira { to { transform: rotate(360deg); } }
.pv__demo { text-align: center; font-size: 10.5px; color: var(--gray); }
.pv__bar { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 2px; }
.pv__bar img { height: 26px; width: auto; }
.pv__bar button { border: 0; background: var(--blush); color: var(--red); font-family: inherit; font-size: 11px; font-weight: 700; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.pv.is-on .phone__card { animation: slideIn .6s var(--ease) forwards; }
.pv.is-on .phone__card i::after { width: var(--w); }
.pv.is-on .phone__card:nth-of-type(2) { animation-delay: .1s; }
.pv.is-on .phone__card:nth-of-type(3) { animation-delay: .2s; }
.pv__jugar { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border: 0; border-radius: 16px; text-align: left; cursor: pointer; color: #fff; font-family: inherit; background: linear-gradient(135deg, var(--red-bright), var(--wine)); box-shadow: 0 14px 28px -14px rgba(217,8,23,.8); animation: pvLlama 2.2s ease-in-out infinite; }
.pv__jugar > span { font-size: 24px; }
.pv__jugar div { flex: 1; display: grid; }
.pv__jugar b { font-size: 13.5px; }
.pv__jugar small { font-size: 10.5px; opacity: .88; }
.pv__jugar em { font-style: normal; font-size: 11px; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.2); }
@keyframes pvLlama { 50% { transform: scale(1.03); box-shadow: 0 18px 34px -12px rgba(217,8,23,.9); } }
.pv--juego { padding: 44px 0 0; gap: 0; }
.phone:has(.pv--juego.is-on) { animation: none; }
.pv__bar--juego { margin: 0; padding: 0 12px 8px; font-size: 12px; font-weight: 700; color: var(--ink); }
.pv__bar--juego b { font-size: 14px; color: var(--red); font-variant-numeric: tabular-nums; }
.pv__bar--juego > span { color: var(--gray); font-variant-numeric: tabular-nums; }
.pv__bar--juego button { padding: 5px 10px; }
.pv__lienzo { position: relative; flex: 1; overflow: hidden; border-radius: 0 0 32px 32px; }
.pv__lienzo canvas { display: block; width: 100%; height: 100%; touch-action: manipulation; cursor: pointer; }
.pv__capa { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(255,255,255,.72); backdrop-filter: blur(3px); cursor: pointer; text-align: center; color: #101010; }
.pv__capa[hidden] { display: none; }
.pv__inicio, .pv__fin { display: grid; gap: 8px; justify-items: center; }
.pv__inicio > span, .pv__fin > span { font-size: 42px; animation: float 2.4s ease-in-out infinite; }
.pv__inicio > b, .pv__fin > b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.pv__inicio p, .pv__fin p { font-size: 12px; color: #4a4a4a; line-height: 1.45; }
.pv__inicio em { font-style: normal; font-size: 12px; font-weight: 800; color: #fff; background: var(--red); padding: 8px 14px; border-radius: 999px; animation: pvLlama 1.6s ease-in-out infinite; }
.pv__fin em { font-style: normal; font-size: 14px; font-weight: 800; color: var(--red); }
.pv__fin p { padding: 10px 12px; border-radius: 12px; background: #fcf3f4; }
.pv__fin .pv__btn { width: 100%; padding: 0 22px; }
.pv__reto { align-self: center; padding: 6px 12px; border-radius: 999px; background: var(--blush); color: var(--red); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; animation: pvLlama 2.2s ease-in-out infinite; }
.pv--login .pv__hola b { font-size: 18px; }
.pv--login .pv__hola span { font-size: 12px; line-height: 1.4; padding: 0 6px; }
.pv__capa.is-cuenta { background: rgba(255,255,255,.55); }
.pv__cuenta { display: grid; justify-items: center; gap: 4px; }
.pv__cuenta b { font-size: 92px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--red); animation: pvCuenta .7s cubic-bezier(.2, 1.6, .4, 1) both; }
.pv__cuenta b.ya { font-size: 54px; color: #1fae5b; }
.pv__cuenta small { font-size: 13px; font-weight: 700; color: #4a4a4a; }
@keyframes pvCuenta { from { transform: scale(2.2); opacity: 0; } 60% { opacity: 1; } }
.pv__top { width: 100%; display: grid; gap: 4px; margin: 2px 0; }
.pv__top li { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; border-radius: 10px; background: #fff; border: 1px solid #eee; font-size: 12px; font-weight: 700; color: #101010; }
.pv__top li.yo { border-color: var(--red); background: #fcf3f4; color: var(--red); }
.pv__top li b { font-variant-numeric: tabular-nums; }
.pv__fin { gap: 6px; }
.pv__fin > span { font-size: 36px; }


.ring-pulse { position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); animation: ringPulse 3.2s ease-out infinite; }
.ring-pulse::before, .ring-pulse::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); animation: ringPulse 3.2s ease-out infinite 1.05s; }
.ring-pulse::after { animation-delay: 2.1s; }
@keyframes ringPulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }

/* ---------- Social ---------- */
.marquee { overflow: hidden; margin-bottom: 44px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.marquee__track span::before { content: ""; width: 10px; height: 10px; background: var(--red); clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

/* ---------- Redes: feed de Instagram + canales ---------- */
.social-hub { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: stretch; max-width: 1080px; margin-inline: auto; }
/* Sin feed, los canales ocupan todo el ancho */
.social-hub:has(.ig[hidden]) { grid-template-columns: 1fr; }
.social-hub:has(.ig[hidden]) .socials { grid-template-columns: repeat(3, 1fr); }

.ig { padding: 14px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 20px 44px -34px rgba(16,16,16,.35); }
.ig[hidden] { display: none; }
.ig__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px 14px; }
.ig__profile { display: flex; align-items: center; gap: 12px; min-width: 0; }
/* Anillo con los colores de las historias de Instagram */
.ig__avatar { flex: none; width: 46px; height: 46px; padding: 2.5px; border-radius: 50%; background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.ig__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2.5px solid var(--surface); background: var(--blush); }
.ig__profile b { display: inline-flex; align-items: center; color: var(--ink); font-size: 15px; }
.ig__verified { width: 15px; height: 15px; margin-left: 5px; color: var(--red); }
.ig__profile small { display: block; font-size: 12.5px; color: var(--gray); }
.ig__live { display: inline-flex; align-items: center; gap: 6px; }
.ig__live i { width: 7px; height: 7px; border-radius: 50%; background: #1fae5b; animation: live 1.6s infinite; }
.ig__more { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--blush-2); color: var(--red); font-size: 13px; font-weight: 700; transition: background .25s, color .25s; }
.ig__more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.ig__more:hover { background: var(--red); color: #fff; }
.ig__more:hover svg { transform: translateX(3px); }

.ig__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ig__post {
  position: relative; display: block; overflow: hidden; isolation: isolate; aspect-ratio: 1; border-radius: 14px; background: rgb(var(--c, 247,232,234));
  opacity: 0; animation: igIn .6s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms);
}
/* La entrada usa `translate` para no chocar con el `transform` del hover */
@keyframes igIn { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
.ig__media { position: absolute; inset: 0; display: block; }
.ig__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.ig__post:hover .ig__media img, .ig__post:focus-visible .ig__media img { transform: scale(1.07); }
/* Horizontales completas sobre un fondo difuminado de la misma imagen */
.ig__media--wide { display: grid; place-items: center; overflow: hidden; }
.ig__media--wide::before { content: ""; position: absolute; inset: -24px; background: var(--img) center / cover; filter: blur(18px) saturate(1.2); opacity: .6; }
.ig__media--wide img { position: relative; height: auto; object-fit: contain; }
.ig__new { position: absolute; z-index: 3; top: 8px; left: 8px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: var(--red); color: #fff; }
.ig__type { position: absolute; z-index: 3; top: 8px; right: 8px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(16,16,16,.45); color: #fff; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ig__type svg { width: 13px; height: 13px; }
/* Capa inferior: datos siempre; texto al pasar el cursor */
.ig__over {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px;
  color: #fff; background: linear-gradient(180deg, transparent 60%, rgba(16,16,16,.55)); transition: background .4s;
}
.ig__post:hover .ig__over, .ig__post:focus-visible .ig__over { background: linear-gradient(180deg, rgba(176,6,15,.15) 0%, rgba(176,6,15,.92) 100%); }
.ig__over p { max-height: 0; overflow: hidden; font-size: 12px; line-height: 1.4; opacity: 0; transition: max-height .45s var(--ease), opacity .35s; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.ig__post:hover .ig__over p, .ig__post:focus-visible .ig__over p { max-height: 4.2em; opacity: 1; }
.ig__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; }
.ig__meta span { display: inline-flex; align-items: center; gap: 4px; }
.ig__meta svg { width: 13px; height: 13px; }
.ig__meta time { margin-left: auto; font-weight: 500; opacity: .9; white-space: nowrap; }

/* Canales: tarjetas compactas con el color de cada red */
.socials { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.social {
  --brand: var(--red); --tint: var(--blush-2);
  position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto;
  align-items: center; column-gap: 14px; row-gap: 12px; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.social--ig { --brand: #d62976; --tint: #fdf0f6; }
.social--fb { --brand: #1877f2; --tint: #eef5ff; }
.social--yt { --brand: #ff0000; --tint: #fff1f1; }
.social::before { content: ""; position: absolute; z-index: -1; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: var(--tint); transition: transform .6s var(--ease); }
.social:hover { transform: translateX(-4px); border-color: transparent; box-shadow: 0 18px 36px -24px var(--brand); }
.social:hover::before { transform: scale(2.6); }
.social__ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--brand); color: #fff; box-shadow: 0 10px 20px -10px var(--brand); transition: transform .45s var(--ease); }
.social--ig .social__ic { background: linear-gradient(45deg, #feda75, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5); }
.social:hover .social__ic { transform: rotate(-8deg) scale(1.06); }
.social__ic svg { width: 22px; height: 22px; fill: currentColor; }
.social > div { min-width: 0; }
.social p { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--text); }
.social b { display: block; color: var(--ink); font-size: 15.5px; line-height: 1.3; }
.social small { display: block; color: var(--gray); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social__cta { grid-column: 1 / -1; text-align: center; padding: 9px 13px; border-radius: 12px; font-size: 12.5px; font-weight: 700; color: var(--brand); background: var(--tint); transition: background .3s, color .3s; }
.social:hover .social__cta { background: var(--brand); color: #fff; }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 0; border-radius: 28px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(16,16,16,.35);
}
.contact > * { min-width: 0; }

/* Centro de atención: panel oscuro con estado en vivo */
.hub {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 18px; padding: 32px; color: #fff;
  background-color: #111114;
  background-image:
    radial-gradient(circle at 0% 0%, rgba(217,8,23,.55), transparent 50%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
}
.hub__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hub__label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.hub__label svg { width: 18px; height: 18px; color: var(--rose); }
.hub__status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.hub__status b { font-weight: 600; }
.hub__status i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.5); }
.hub__status.is-open { background: rgba(31,174,91,.16); color: #5fe39a; }
.hub__status.is-open i { background: #1fae5b; animation: live 1.6s infinite; }
.hub__status.is-closed { background: rgba(244,186,191,.14); color: var(--rose); }
.hub__status.is-closed i { background: var(--rose-2); }
.hub__next { font-size: 14px; color: rgba(255,255,255,.7); margin-top: -6px; }
.hub__channels { display: grid; gap: 10px; }
.chan {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px);
  transition: background .3s, border-color .3s, transform .35s var(--ease);
}
.chan:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.22); transform: translateX(6px); }
.chan__ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--red); color: #fff; box-shadow: 0 10px 22px -10px rgba(217,8,23,.8); }
.chan__ic svg { width: 20px; height: 20px; }
.chan > span:nth-child(2) { flex: 1; min-width: 0; }
.chan small { display: block; font-size: 11.5px; color: rgba(255,255,255,.6); }
.chan b { display: block; font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan__go { flex: none; width: 18px; height: 18px; color: rgba(255,255,255,.5); transition: color .3s, transform .3s; }
.chan:hover .chan__go { color: #fff; transform: rotate(-45deg); }
.hub__hours { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12.5px; color: rgba(255,255,255,.6); }
.hub__hours svg { width: 15px; height: 15px; color: var(--rose); }
.hub__week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: -6px; }
.hub__week span {
  display: grid; place-items: center; height: 34px; border-radius: 10px; font-size: 12.5px; font-weight: 700;
  background: rgba(255,255,255,.05); color: rgba(255,255,255,.35); border: 1px solid rgba(255,255,255,.06);
}
.hub__week span.is-work { background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); }
.hub__week span.is-today { background: #fff; color: var(--red); box-shadow: 0 0 0 4px rgba(255,255,255,.15); }
.hub__ecg { position: absolute; z-index: -1; left: 0; right: 0; bottom: 52px; width: 100%; height: 60px; opacity: .35; }
.hub__ecg path { fill: none; stroke: var(--rose-2); stroke-width: 1.5; stroke-dasharray: 600; stroke-dashoffset: 600; animation: drawFooter 4.5s linear infinite; }

/* Lista de contacto (usada en sedes/) */
.contact__list { display: grid; gap: 12px; margin-top: 28px; }
.contact__list li { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; transition: border-color .3s, transform .35s var(--ease); }
.contact__list li:hover { border-color: var(--rose); transform: translateX(6px); }
.ci { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: var(--blush); color: var(--red); clip-path: var(--hex); }
.ci svg { width: 22px; height: 22px; }
.contact__list b { display: block; color: var(--ink); font-size: 14px; }
.contact__list a:hover { color: var(--red); }

/* Formulario */
.form { display: grid; gap: 16px; padding: 38px; border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.form h3 { font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.form--contact { padding: 34px; border-radius: 0; box-shadow: none; border-top: 0; align-content: start; }
.form__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.form__head h3 { margin: 0; letter-spacing: -.01em; }
.form__time { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--gray); }
.form__time svg { width: 15px; height: 15px; color: var(--red); }
.topics { border: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { width: 100%; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic span {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--gray-bg); font-size: 13.5px; font-weight: 600; color: var(--text);
  transition: background .25s, border-color .25s, color .25s, box-shadow .25s, transform .25s var(--ease);
}
.topic svg { width: 16px; height: 16px; color: var(--red); transition: color .25s; }
.topic:hover span { border-color: var(--rose); background: var(--surface); }
.topic input:checked + span { background: var(--red); border-color: var(--red); color: #fff; box-shadow: var(--shadow-red); transform: translateY(-1px); }
.topic input:checked + span svg { color: #fff; }
.topic input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.field__count { position: absolute; right: 12px; bottom: 10px; font-size: 11.5px; color: var(--gray); pointer-events: none; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%; padding: 22px 16px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--gray-bg);
  font: inherit; font-size: 15px; color: var(--ink); outline: none; resize: vertical; transition: border-color .3s, background .3s, box-shadow .3s;
}
.field label { position: absolute; left: 16px; top: 16px; color: var(--gray); font-size: 15px; pointer-events: none; transition: all .25s var(--ease); }
.field input:focus, .field textarea:focus { border-color: var(--red); background: var(--surface); box-shadow: 0 0 0 4px rgba(217,8,23,.1); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 6px; font-size: 11.5px; font-weight: 600; color: var(--red); }
.form__ok { display: none; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: #1fae5b; }
.form__ok svg { width: 20px; height: 20px; }
.form.is-sent .form__ok { display: flex; animation: slideIn .5s; }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--gray-bg); padding-bottom: 72px; }
.newsletter__inner {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 42px 48px; border-radius: 24px; background: var(--wine); color: #fff;
}
.newsletter__inner::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, var(--red) 40%, var(--wine)); }
.newsletter__hex { position: absolute; z-index: -1; width: 220px; height: 220px; left: -50px; top: -80px; fill: rgba(255,255,255,.08); animation: spinSlow 30s linear infinite; }
.newsletter h3 { font-size: 26px; font-weight: 700; }
.newsletter p { opacity: .9; }
.newsletter__form { display: flex; gap: 8px; flex: 1; max-width: 460px; padding: 6px; border-radius: 12px; background: rgba(255,255,255,.15); }
.newsletter__form input { flex: 1; min-width: 0; padding: 0 14px; border: 0; background: transparent; color: #fff; font: inherit; outline: none; }
.newsletter__form input::placeholder { color: rgba(255,255,255,.75); }

/* ---------- Footer (claro, con acento rojo) ---------- */
.footer {
  position: relative; overflow: hidden; isolation: isolate; padding: 0; color: var(--gray);
  background: linear-gradient(180deg, var(--surface) 0%, var(--blush-2) 70%, var(--blush) 100%); border-top: 1px solid var(--line);
}
/* Patrón hexagonal institucional muy suave + halos rosados */
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 40% 50% at 0% 30%, rgba(244,186,191,.45), transparent 70%),
    radial-gradient(ellipse 35% 45% at 100% 70%, rgba(244,186,191,.4), transparent 70%),
    url("../img/cadros_Mesa-de-trabajo-1.png") right -160px bottom -120px / 700px auto no-repeat;
  opacity: .7;
}
/* Pulso que recorre el borde superior */
.footer__pulse { position: absolute; top: -40px; left: 0; width: 100%; height: 80px; pointer-events: none; }
.footer__pulse svg { width: 100%; height: 100%; overflow: visible; }
.footer__pulse path { fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(217,8,23,.5)); stroke-dasharray: 260 1500; animation: pulseRun 4.2s linear infinite; }
@keyframes pulseRun { from { stroke-dashoffset: 260; } to { stroke-dashoffset: -1500; } }

.footer__cta {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin: 56px 0 54px; padding: 28px 32px; border-radius: 26px; color: #fff;
  background: linear-gradient(120deg, var(--red-bright), var(--red-dark) 60%, var(--wine)); box-shadow: 0 26px 50px -28px rgba(217,8,23,.7);
}
.footer__cta::before {
  content: ""; position: absolute; z-index: -1; right: -40px; top: -60px; width: 260px; height: 230px; clip-path: var(--hex);
  background: rgba(255,255,255,.1); animation: spinSlow 40s linear infinite;
}
.footer__kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.88); }
.footer__kicker svg { width: 15px; height: 15px; animation: beat 1.3s ease-in-out infinite; }
.footer__cta h3 { margin-top: 4px; font-size: clamp(20px, 2.4vw, 26px); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.footer__cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn--glass { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn--glass:hover { background: rgba(255,255,255,.24); transform: translateY(-2px); }

.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; }
.footer__logo { display: inline-flex; margin-bottom: 16px; }
.footer__logo img { height: 54px; width: auto; }
.footer p { font-size: 14px; max-width: 320px; }
.footer__status { display: inline-grid; grid-template-columns: auto auto; align-items: center; column-gap: 8px; margin-top: 18px; padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.footer__status i { width: 8px; height: 8px; border-radius: 50%; background: var(--gray); }
.footer__status b { font-size: 13px; color: var(--ink); }
.footer__status small { grid-column: 2; font-size: 12px; }
.footer__status.is-open i { background: #1fae5b; animation: live 1.6s infinite; }
.footer__status.is-open b { color: #1a8d4b; }
.footer__status.is-closed i { background: var(--red); }
.footer__status.is-closed b { color: var(--red); }
.footer h4 { margin-bottom: 16px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.footer__col a, .footer__col span { display: flex; align-items: flex-start; gap: 10px; width: fit-content; font-size: 14px; margin-bottom: 11px; transition: color .25s, transform .25s var(--ease); }
.footer__col > a:hover { color: var(--red); transform: translateX(4px); }
.footer__col:not(.footer__contact) > a { position: relative; }
.footer__col:not(.footer__contact) > a::before { content: ""; position: absolute; left: -12px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--red); opacity: 0; transform: scale(0); transition: opacity .25s, transform .25s; }
.footer__col:not(.footer__contact) > a:hover::before { opacity: 1; transform: none; }
.footer__contact svg { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--red); }
.footer__social { display: flex; gap: 8px; margin-top: 16px; }
.footer__social a { width: 38px; height: 38px; display: grid; place-items: center; margin: 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--red); box-shadow: var(--shadow-sm); transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.footer__social a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }
.footer__social svg { width: 16px; height: 16px; margin: 0; color: currentColor; }

.footer__trust { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.footer__seals { display: flex; align-items: center; gap: 8px; }
.footer__seals small { font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.footer__seals img { display: block; height: 48px; max-width: 220px; width: auto; object-fit: contain; }
.footer__norms { display: flex; gap: 6px; flex-wrap: wrap; }
.footer__norms li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--wine); background: var(--surface); border: 1px solid var(--blush); }
.footer__norms svg { width: 16px; height: 16px; color: var(--red); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 0 14px; font-size: 12px; }
.footer__up { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--red); }
.footer__up svg { width: 16px; height: 16px; transform: rotate(-90deg); transition: transform .3s var(--ease); }
.footer__up:hover svg { transform: rotate(-90deg) translateX(4px); }
/* Marca grande al pie, apenas insinuada */
.footer__word {
  position: relative; z-index: -1; margin-top: -6px; text-align: center; font-size: clamp(52px, 12.6vw, 200px); font-weight: 800; line-height: .78; letter-spacing: -.05em;
  white-space: nowrap; user-select: none; color: transparent;
  background: linear-gradient(180deg, rgba(217,8,23,.16), rgba(217,8,23,0) 80%); -webkit-background-clip: text; background-clip: text;
}

.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--red); color: #fff; clip-path: var(--hex-v);
  opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .4s, transform .4s var(--ease), background .3s;
}
.to-top svg { width: 20px; height: 20px; transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--red-dark); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
/* hover transforms must win over the reveal transition once visible */
.reveal.is-visible.service, .reveal.is-visible.policy, .reveal.is-visible.post, .reveal.is-visible.part,
.reveal.is-visible.social, .reveal.is-visible.ab-card { transition: opacity .8s var(--ease), transform .4s var(--ease), box-shadow .4s, border-color .4s, color .4s; transition-delay: 0s; }

/* =========================================================
   Páginas internas
   ========================================================= */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate; padding: 170px 0 90px; color: #fff;
  background: linear-gradient(120deg, var(--red-dark) 0%, var(--red) 55%, #e8394a 100%);
}
.page-hero .net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .9; }
.page-hero__hex { position: absolute; z-index: -1; fill: rgba(255,255,255,.07); animation: spinSlow 50s linear infinite; }
.page-hero__hex--1 { width: 420px; height: 420px; right: -90px; top: -60px; }
.page-hero__hex--2 { width: 200px; height: 200px; right: 22%; bottom: -100px; animation-direction: reverse; }
.page-hero__ecg { position: absolute; left: 0; right: 0; bottom: 30px; height: 50px; z-index: -1; opacity: .5; }
.page-hero__ecg path { fill: none; stroke: #fff; stroke-width: 1.5; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: drawFooter 6s linear infinite; }
.page-hero__inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 12px; max-width: 820px; }
.page-hero p { font-size: 17px; opacity: .92; max-width: 640px; }
.page-hero__badge { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.page-hero__badge svg { width: 34px; height: 34px; }
.page-hero__badge b { display: block; font-size: 22px; line-height: 1.1; }
.page-hero__badge small { opacity: .85; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; opacity: .9; flex-wrap: wrap; }
.crumbs a { font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.crumbs i { opacity: .6; font-style: normal; }
.page-body { padding: 56px 0 72px; background: var(--gray-bg); }
.page-body--white { background: var(--surface); }
.card { background: var(--surface); border-radius: 22px; border: 1px solid var(--line); padding: 36px; box-shadow: var(--shadow-sm); }
.card h2 { font-size: 24px; color: var(--ink); margin-bottom: 10px; }
.card h3 { font-size: 18px; color: var(--ink); margin: 22px 0 8px; }
.card p { color: var(--gray); }
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: start; }
.sticky { position: sticky; top: 110px; }
.two-col > *, .article-wrap > * { min-width: 0; }
.form { grid-template-columns: minmax(0, 1fr); }
.form__grid > *, .file { min-width: 0; }

/* Blog list */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.toolbar h2 { font-size: 26px; color: var(--ink); }
.search { position: relative; flex: 1; max-width: 420px; }
.search input { width: 100%; padding: 14px 18px 14px 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); font: inherit; font-size: 15px; outline: none; transition: border-color .3s, box-shadow .3s; }
.search input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(217,8,23,.1); }
.search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--red); }
.post p { color: var(--gray); font-size: 14px; margin: -6px 0 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; padding: 60px 0; color: var(--gray); }

/* Article */
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.article-cover { border-radius: 22px; overflow: hidden; margin-bottom: 34px; box-shadow: var(--shadow); background: var(--blush); }
.article-cover img { width: 100%; }
.article-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 14px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 16px; height: 16px; }
.prose { font-size: 16.5px; color: var(--text); line-height: 1.8; }
.prose > * + * { margin-top: 1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); line-height: 1.3; margin-top: 1.6em; }
.prose h2 { font-size: 26px; }
.prose h3 { font-size: 21px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 4px; }
.prose ul li { position: relative; padding-left: 26px; margin: 8px 0; list-style: none; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 12px; background: var(--red); clip-path: polygon(35% 0, 65% 0, 65% 35%, 100% 35%, 100% 65%, 65% 65%, 65% 100%, 35% 100%, 35% 65%, 0 65%, 0 35%, 35% 35%); }
.prose ol { padding-left: 22px; }
.prose ol li { margin: 8px 0; }
.prose blockquote { border-left: 4px solid var(--red); background: var(--blush-2); padding: 16px 20px; border-radius: 0 12px 12px 0; }
.side-card { padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.side-card + .side-card { margin-top: 20px; }
.side-card h4 { color: var(--ink); margin-bottom: 12px; }
.side-card--red { background: var(--red); color: #fff; border: 0; }
.side-card--red h4 { color: #fff; }
.side-card--red p { opacity: .9; font-size: 14px; margin-bottom: 16px; }
.share { display: flex; gap: 8px; }
.share a { width: 42px; height: 42px; display: grid; place-items: center; clip-path: var(--hex); background: var(--blush); color: var(--red); transition: background .3s, color .3s; }
.share a:hover { background: var(--red); color: #fff; }
.share svg { width: 18px; height: 18px; }
.related { margin-top: 80px; }
.related .blog { margin-top: 26px; }

/* Rendición de cuentas */
.ytabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 6px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line); width: fit-content; margin-bottom: 30px; }
.ytab { padding: 10px 20px; border-radius: 10px; font-weight: 600; color: var(--gray); transition: background .3s, color .3s; }
.ytab:hover { color: var(--red); }
.ytab.is-active { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.docs-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.docs-head h2 { font-size: 24px; color: var(--ink); }
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.doc {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  opacity: 0; transform: translateY(14px); animation: docIn .5s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
@keyframes docIn { to { opacity: 1; transform: none; } }
.doc:hover { border-color: var(--rose); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.doc__ic { position: relative; flex: none; width: 48px; height: 56px; display: grid; place-items: center; color: var(--red); background: var(--blush); border-radius: 10px; }
.doc__ic svg { width: 26px; height: 26px; }
.doc__ic em { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 9.5px; font-weight: 700; color: #fff; background: var(--red); padding: 1px 6px; border-radius: 4px; }
.doc__txt { flex: 1; min-width: 0; }
.doc__txt b { display: block; color: var(--ink); font-size: 15px; line-height: 1.35; }
.doc__txt small { color: var(--gray); font-size: 12.5px; }
.doc__dl { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); color: var(--red); transition: background .3s, color .3s, border-color .3s; }
.doc:hover .doc__dl { background: var(--red); color: #fff; border-color: var(--red); }
.doc__dl svg { width: 18px; height: 18px; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 40px; }
.legend div { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line); font-size: 13.5px; }
.legend b { color: var(--red); margin-right: 6px; }
/* Rendición de cuentas dinámica: búsqueda, carga y mensajes */
.legend[hidden], .docs-head[hidden] { display: none; }
.ytabs:empty { display: none; }
.docs-search { display: flex; align-items: center; gap: 8px; min-width: 240px; padding: 0 14px; height: 42px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--gray); transition: border-color .3s, box-shadow .3s; }
.docs-search:focus-within { border-color: var(--rose); box-shadow: var(--shadow-sm); }
.docs-search svg { width: 16px; height: 16px; flex: none; }
.docs-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 14px; }
.doc--skeleton { pointer-events: none; animation-delay: 0s; }
.doc--skeleton .doc__ic, .doc--skeleton i { background: linear-gradient(90deg, var(--blush-2) 0%, var(--blush) 50%, var(--blush-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.doc--skeleton i { display: block; height: 12px; border-radius: 6px; margin: 6px 0; }
.doc--skeleton i:first-child { width: 70%; height: 14px; } .doc--skeleton i:last-child { width: 45%; }
.docs-msg { grid-column: 1 / -1; padding: 40px 0; }
.docs-msg b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }
.docs-msg p { margin: 0 0 16px; }
@media (max-width: 640px) { .docs-search { min-width: 0; width: 100%; } }

/* Marco normativo */
/* Organigrama: raíz → procesos → ramas por nivel → normas */
:root { --lvl-obligatoria: var(--red); --lvl-condicional: #c27400; --lvl-referente: var(--gray); }
:root[data-theme="dark"] { --lvl-condicional: #f0a54a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lvl-condicional: #f0a54a; } }
.lv--obligatoria { --c: var(--lvl-obligatoria); }
.lv--condicional { --c: var(--lvl-condicional); }
.lv--referente { --c: var(--lvl-referente); }
.lv--referente .leaf__tipo { background: transparent !important; color: var(--gray); border: 1px dashed var(--gray); }
.org { --bus: 26px; position: relative; }
.org__hex { flex: none; width: 52px; height: 52px; display: grid; place-items: center; clip-path: var(--hex); background: var(--blush); color: var(--red); transition: background .35s, color .35s, transform .35s var(--ease); }
.org__hex svg { width: 24px; height: 24px; }
.org__hex--sm { width: 46px; height: 46px; background: var(--red); color: #fff; }
.org__hex--sm svg { width: 22px; height: 22px; }
.org__hex--root { width: 64px; height: 64px; background: linear-gradient(135deg, var(--red), var(--wine)); color: #fff; }
.org__hex--root svg { width: 30px; height: 30px; }

/* Nivel 0 */
.org__root {
  position: relative; display: flex; align-items: center; gap: 16px; width: fit-content; max-width: 100%; margin: 0 auto var(--bus);
  padding: 16px 26px 16px 18px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--red); box-shadow: var(--shadow-red);
}
.org__root small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gray); }
.org__root b { display: block; font-size: 22px; color: var(--ink); line-height: 1.2; }
.org__root em { font-style: normal; font-size: 13px; color: var(--wine); }
.org__root::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: var(--bus); background: var(--red); transform: translateX(-50%); }

/* Nivel 1 */
.org__row { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; padding-top: var(--bus); }
.org__row::before {
  content: ""; position: absolute; top: 0; height: 2px; background: var(--line-strong);
  left: calc((100% - 72px) / 14); right: calc((100% - 72px) / 14);
  transform-origin: center; transform: scaleX(0); transition: transform 1s var(--ease) .2s;
}
.org.is-visible .org__row::before { transform: scaleX(1); }
.org__node {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px 14px; text-align: center;
  border-radius: 18px; background: var(--surface); border: 1.5px solid var(--line); cursor: pointer; font: inherit;
  animation: orgIn .55s var(--ease) backwards; animation-delay: calc(.35s + var(--i) * 70ms);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease), opacity .3s;
}
@keyframes orgIn { from { opacity: 0; transform: translateY(14px); } }
.org__node::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: var(--bus); background: var(--line-strong); transform: translateX(-50%); transition: background .3s; }
.org__node b { font-size: 13.5px; line-height: 1.3; color: var(--ink); }
.org__meta { font-size: 12px; color: var(--gray); margin-top: auto; }
.org__meta em { font-style: normal; font-weight: 700; color: var(--red); font-size: 14px; }
.org__mix { display: flex; width: 100%; max-width: 110px; height: 5px; border-radius: 999px; overflow: hidden; background: var(--line); }
.org__mix i { display: block; height: 100%; }
.mix--obligatoria { background: var(--lvl-obligatoria); }
.mix--condicional { background: var(--lvl-condicional); }
.mix--referente { background: var(--lvl-referente); opacity: .5; }
.org__node:hover { border-color: var(--rose); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.org__node:hover .org__hex { transform: rotate(30deg); }
.org__node:focus-visible { outline: 3px solid rgba(217,8,23,.35); outline-offset: 2px; }
.org__node.is-active { border-color: var(--red); box-shadow: var(--shadow-red); }
.org__node.is-active::before { background: var(--red); }
.org__node.is-active .org__hex { background: var(--red); color: #fff; }
/* Conector animado del proceso activo al panel */
.org__node.is-active::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 30px; transform: translateX(-50%);
  background: linear-gradient(var(--red) 50%, transparent 50%) 0 0 / 2px 8px; animation: orgFlow .6s linear infinite;
}
@keyframes orgFlow { to { background-position: 0 8px; } }
.org__node.is-linked { border-color: var(--red); border-style: dashed; }
.org__node.is-linked .org__hex { background: var(--red); color: #fff; animation: orgPing 1.2s var(--ease) infinite; }
@keyframes orgPing { 50% { transform: scale(1.12); } }
.org__node.is-dim { opacity: .4; }

/* Nivel 2–3 */
.org__panel {
  position: relative; margin-top: 30px; padding: 26px; border-radius: 22px; background: var(--surface); border: 1.5px solid var(--red); box-shadow: var(--shadow);
  animation: orgIn .45s var(--ease);
}
.org__panel::before {
  content: ""; position: absolute; top: -9px; left: var(--x, 50%); width: 16px; height: 16px; background: var(--surface);
  border-left: 1.5px solid var(--red); border-top: 1.5px solid var(--red); transform: translateX(-50%) rotate(45deg); transition: left .45s var(--ease);
}
.org__panel-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px dashed var(--line); }
.org__panel-head small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gray); }
.org__panel-head h2 { font-size: 21px; color: var(--ink); line-height: 1.25; }
.org__panel-head { align-items: flex-start; }
.org__panel-title { flex: 1 1 260px; min-width: 0; }
.org__panel-title p { margin-top: 4px; font-size: 14px; color: var(--gray); max-width: 560px; }
.org__panel-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; margin-left: auto; }
.org__step { display: flex; gap: 6px; }
.org__step button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.org__step button:hover { border-color: var(--red); background: var(--red); color: #fff; }
.org__sum { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.org__sum span { font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--blush-2); }
.sum--obligatoria { color: var(--lvl-obligatoria); }
.sum--condicional { color: var(--lvl-condicional); }
.sum--referente { color: var(--gray); }
.org__branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 26px; align-items: start; }
.branch { --c: var(--lvl-obligatoria); }
.branch--condicional { --c: var(--lvl-condicional); }
.branch--referente { --c: var(--lvl-referente); }
.branch__head { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.branch__head i { width: 14px; height: 14px; clip-path: var(--hex); background: var(--c); }
.branch__head em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--c); padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; }
.branch__list { list-style: none; margin: 0 0 0 6px; padding: 8px 0 0 20px; border-left: 2px solid var(--c); }
.branch--referente .branch__list { border-left-style: dashed; }
.branch__list li { position: relative; padding: 5px 0; opacity: 0; transform: translateX(-8px); animation: leafIn .4s var(--ease) forwards; animation-delay: calc(min(var(--i), 10) * 45ms); }
.branch__list li::before { content: ""; position: absolute; left: -20px; top: 50%; width: 16px; height: 2px; background: var(--c); }
.branch__list li:last-child::after { content: ""; position: absolute; left: -22px; top: calc(50% + 1px); bottom: -2px; width: 3px; background: var(--surface); }
@keyframes leafIn { to { opacity: 1; transform: none; } }
.leaf {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; text-align: left; font: inherit; cursor: pointer;
  border-radius: 12px; border: 1px solid var(--line); background: var(--bg); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.leaf:hover, .leaf:focus-visible { border-color: var(--c); box-shadow: var(--shadow-sm); transform: translateX(4px); outline: none; }
.leaf__tipo { flex: none; min-width: 46px; padding: 5px 6px; border-radius: 8px; text-align: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--c); }
.branch--referente .leaf__tipo { background: transparent; color: var(--gray); border: 1px dashed var(--gray); }
.leaf__txt { flex: 1; min-width: 0; }
.leaf__txt b { display: block; font-size: 14px; color: var(--ink); }
.leaf__txt small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.35; color: var(--gray); }
.leaf__x { flex: none; font-size: 11.5px; font-weight: 700; color: var(--wine); padding: 2px 8px; border-radius: 999px; background: var(--blush); }
.leaf__txt mark, .norm-dlg mark { background: rgba(217,8,23,.14); color: inherit; border-radius: 3px; padding: 0 2px; }

/* Raíz con pulso */
.org__hex--root { position: relative; overflow: visible; }
.org__root .org__hex--root { animation: orgBeat 2.8s var(--ease) infinite; }
@keyframes orgBeat { 0%, 100% { transform: scale(1); } 10% { transform: scale(1.08); } 20% { transform: scale(1); } 30% { transform: scale(1.05); } 40% { transform: scale(1); } }

/* Filtros: nivel + sugerencias */
.org-filters { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin: -14px 0 34px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.seg__btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--gray); cursor: pointer; transition: background .25s, color .25s; }
.seg__btn i { width: 10px; height: 10px; clip-path: var(--hex); background: var(--line-strong); }
.seg__btn--obligatoria i { background: var(--red); }
.seg__btn--condicional i { background: #c27400; }
.seg__btn--referente i { background: var(--gray); }
.seg__btn em { font-style: normal; font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--blush); color: var(--wine); }
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-checked="true"] { background: var(--ink); color: var(--surface); }
.seg__btn[aria-checked="true"] em { background: rgba(255,255,255,.18); color: inherit; }
.org-suggest { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.org-suggest small { font-size: 12.5px; color: var(--gray); margin-right: 2px; }
.org-suggest button { font: inherit; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--line-strong); background: transparent; color: var(--text); cursor: pointer; transition: border-color .25s, color .25s, background .25s; }
.org-suggest button:hover { border-color: var(--red); color: var(--red); }
.org-suggest button.is-on { border-style: solid; border-color: var(--red); background: var(--red); color: #fff; }
.org__empty { padding: 50px 0 20px; }
.org__empty p { margin-bottom: 14px; }

/* Pasos de uso */
.org__steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--gray); }
.org__steps li { display: inline-flex; align-items: center; gap: 8px; }
.org__steps span { width: 22px; height: 22px; display: grid; place-items: center; clip-path: var(--hex); background: var(--blush); color: var(--red); font-size: 11px; font-weight: 700; }
.org__steps b { color: var(--wine); }

/* Mapa de procesos en la ficha */
.norm__map { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--blush-2); }
.norm__map small { font-size: 12px; font-weight: 600; color: var(--gray); }
.norm__map-row { display: flex; gap: 6px; flex-wrap: wrap; }
.norm__map-hex { width: 38px; height: 38px; display: grid; place-items: center; clip-path: var(--hex); border: 0; padding: 0; background: var(--line); color: var(--gray); opacity: .55; }
.norm__map-hex svg { width: 17px; height: 17px; }
.norm__map-hex.is-on { background: var(--rose); color: var(--wine); opacity: 1; }
.norm__map-hex.is-here { background: var(--red); color: #fff; }
button.norm__map-hex { cursor: pointer; transition: transform .25s var(--ease), background .25s; }
button.norm__map-hex:hover { transform: scale(1.12); background: var(--red); color: #fff; }

/* Navegación de la ficha */
.norm-dlg__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.norm-dlg__nav button { font: inherit; font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background .25s; }
.norm-dlg__nav button:hover { background: rgba(255,255,255,.25); }
.norm-dlg__nav span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.85); }

@media (max-width: 640px) {
  .org-filters { margin-top: -6px; }
  .seg { width: 100%; }
  .seg__btn { flex: 1 1 auto; justify-content: center; padding: 8px 10px; }
  .org__panel-side { align-items: flex-start; margin-left: 0; width: 100%; flex-direction: row; justify-content: space-between; }
  .org__sum { justify-content: flex-start; }
}

/* Ficha de detalle */
.norm-dlg { border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100% - 32px)); width: 100%; margin: auto; }
.norm-dlg::backdrop { background: rgba(16, 8, 10, .55); backdrop-filter: blur(4px); }
.norm-dlg__box { position: relative; }
.norm-dlg .norm { padding: 28px; box-shadow: var(--shadow); border-color: var(--red); }
.norm-dlg__close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.norm-dlg__close:hover { border-color: var(--red); color: var(--red); }
.norm-dlg .norm__head { padding-right: 44px; }

@media (max-width: 1100px) {
  .org__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .org__row::before, .org__node::before, .org__node.is-active::after { display: none; }
}
@media (max-width: 640px) {
  .org__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .org__root { padding: 14px 16px; gap: 12px; }
  .org__root b { font-size: 19px; }
  .org__hex--root { width: 52px; height: 52px; }
  .org__panel { padding: 20px 16px; }
  .org__sum { margin-left: 0; }
}

.norm {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  opacity: 0; transform: translateY(14px); animation: docIn .5s var(--ease) forwards; animation-delay: calc(min(var(--i), 8) * 50ms);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.norm:hover { border-color: var(--rose); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.norm__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.norm__tipo { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); padding: 4px 10px; border-radius: 999px; background: var(--blush); }
.norm__nivel { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid currentColor; }
.norm__nivel--obligatoria { color: var(--wine); }
.norm__nivel--condicional { color: #a15c00; }
.norm__nivel--referente { color: var(--gray); border-style: dashed; }
:root[data-theme="dark"] .norm__nivel--condicional { color: #f0a54a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .norm__nivel--condicional { color: #f0a54a; } }
.norm__cond { flex: none !important; font-size: 13px !important; padding: 8px 12px; border-radius: 10px; background: var(--blush-2); color: var(--text) !important; }
.norm__cond b { color: var(--ink); }
.norm__also { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.norm__also small { font-size: 12px; color: var(--gray); margin-right: 2px; }
.norm__also button { font: inherit; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--wine); cursor: pointer; transition: border-color .3s, color .3s; }
.norm__also button:hover { border-color: var(--red); color: var(--red); }
.norm__num { color: var(--ink); font-size: 17px; }
.norm__num small { color: var(--gray); font-weight: 500; font-size: 14px; }
.norm h3 { font-size: 15.5px; line-height: 1.4; color: var(--ink); }
.norm p { font-size: 14px; color: var(--gray); flex: 1; }
.norm__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.norm__foot small { font-size: 12.5px; color: var(--gray); }
.norm__foot a { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--red); }
.norm__foot a svg { width: 14px; height: 14px; }
.norm-note { margin-top: 48px; font-size: 13.5px; color: var(--gray); text-align: center; }
.norms__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--red); }
.norms__more svg { width: 16px; height: 16px; }
.footer__norms li.footer__norms-more a { color: var(--red); font-weight: 600; }

/* Listas con íconos (derechos, requisitos) */
.rd { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.rd__col { position: relative; padding: 40px 36px; border-radius: 24px; overflow: hidden; isolation: isolate; }
.rd__col--a { background: var(--red); color: #fff; }
.rd__col--b { background: var(--surface); border: 1px solid var(--line); }
.rd__col h2 { display: flex; align-items: center; gap: 14px; font-size: 26px; margin-bottom: 24px; }
.rd__col--b h2 { color: var(--ink); }
.rd__col h2 span { width: 54px; height: 54px; display: grid; place-items: center; clip-path: var(--hex); background: rgba(255,255,255,.18); }
.rd__col--b h2 span { background: var(--blush); color: var(--red); }
.rd__col h2 svg { width: 26px; height: 26px; }
.rd__hex { position: absolute; z-index: -1; width: 260px; height: 260px; right: -80px; bottom: -80px; fill: rgba(255,255,255,.08); animation: spinSlow 40s linear infinite; }
.rd__col--b .rd__hex { fill: var(--blush); }
.ticks li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.18); }
.rd__col--b .ticks li, .card .ticks li { border-top-color: var(--line); }
.ticks li:first-child { border-top: 0; }
.ticks i { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.18); font-style: normal; font-weight: 700; font-size: 13px; }
.rd__col--b .ticks i, .card .ticks i { background: var(--blush); color: var(--red); }

/* Formularios extendidos */
.field select {
  width: 100%; padding: 22px 40px 10px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--gray-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D90817' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat;
  font: inherit; font-size: 15px; color: var(--ink); outline: none; appearance: none; transition: border-color .3s, background-color .3s;
}
.field select:focus { border-color: var(--red); background-color: var(--surface); }
.field select + label { top: 6px; font-size: 11.5px; font-weight: 600; color: var(--red); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__grid .full { grid-column: 1 / -1; }
.form__section { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-top: 10px; display: flex; align-items: center; gap: 10px; }
.form__section::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.check { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line); cursor: pointer; font-size: 14px; transition: border-color .25s, background .25s; }
.check input { position: absolute; opacity: 0; }
.check span { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: background .25s, border-color .25s; }
.check span::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked + span { background: var(--red); border-color: var(--red); }
.check input:checked + span::after { opacity: 1; }
.check:has(input:checked) { border-color: var(--red); background: var(--blush-2); }
.check--plain { border: 0; padding: 4px 0; align-items: flex-start; font-size: 13.5px; color: var(--gray); }
.check--plain:has(input:checked) { background: none; }
.check--plain span { margin-top: 2px; }
.file { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px dashed var(--rose-2); border-radius: 12px; background: var(--blush-2); cursor: pointer; transition: background .25s, border-color .25s; }
.file:hover { background: var(--blush); border-color: var(--red); }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file__btn { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 600; font-size: 14px; }
.file__btn svg { width: 18px; height: 18px; }
.file__name { font-size: 13.5px; color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Empleo */
.job { position: relative; overflow: hidden; }
.job__tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #e8f7ee; color: #1a8d4b; font-size: 12.5px; font-weight: 600; }
.job__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1fae5b; animation: live 1.6s infinite; }
.job h2 { margin-top: 14px; }
.job__facts { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 6px; }
.job__facts span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 8px; background: var(--gray-bg); font-size: 13.5px; }
.job__facts svg { width: 16px; height: 16px; color: var(--red); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 0; counter-reset: s; }
.step { position: relative; padding: 24px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-size: 34px; font-weight: 800; color: var(--blush); line-height: 1; margin-bottom: 10px; }
.step b { display: block; color: var(--ink); margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--gray); }

/* Representantes / departamentos */
.reps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rep { position: relative; padding: 22px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.rep:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--rose); }
.rep__hex { width: 46px; height: 46px; display: grid; place-items: center; clip-path: var(--hex); background: var(--blush); color: var(--red); margin-bottom: 14px; transition: background .35s, color .35s; }
.rep:hover .rep__hex { background: var(--red); color: #fff; }
.rep__hex svg { width: 22px; height: 22px; }
.rep b { display: block; color: var(--ink); font-size: 17px; }
.rep small { color: var(--gray); font-size: 13.5px; }
.rep::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.rep:hover::after { transform: scaleX(1); }

/* Mapa de red (sedes) */
.netmap { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; border-radius: 28px; overflow: hidden; background-color: #111114;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 30px 30px; }
.netmap svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.netmap .lines path { fill: none; stroke: rgba(217,8,23,.6); stroke-width: .35; stroke-dasharray: 2 1.5; animation: dash 3s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -14; } }
.netmap__radar { position: absolute; left: var(--x); top: var(--y); width: 52%; opacity: .7; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(217,8,23,.35), transparent 25%); animation: spinSlow 5s linear infinite;
  mask-image: radial-gradient(circle, #000 60%, transparent 70%); -webkit-mask-image: radial-gradient(circle, #000 60%, transparent 70%); }
.node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); z-index: 2; }
.node i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(217,8,23,.25), 0 0 16px var(--red); }
.node i::after { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--red); animation: ping 2s infinite; animation-delay: var(--d, 0s); }
.node span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 11.5px; font-weight: 600; color: #fff; background: rgba(255,255,255,.08); padding: 3px 8px; border-radius: 6px; }
.node--hq i { width: 18px; height: 18px; background: #fff; box-shadow: 0 0 0 6px rgba(255,255,255,.2), 0 0 24px #fff; }
.node--hq span { background: var(--red); }
.node--left span { left: auto; right: 18px; }
.hq { display: grid; gap: 12px; }
.mapframe { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); margin-top: 30px; aspect-ratio: 16/7; background: var(--blush); }
.mapframe iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Línea #381 · Salud mental ---------- */
/* Sección clara con halos rojos y rosados; en tema oscuro pasa a vino profundo (tokens --m-*) */
.mind {
  --m-red: #e20613; --m-soft: #f06470; --m-rose: #f4babf; --m-ink: var(--ink); --m-dim: var(--gray); --m-fg: var(--ink);
  --m-bg: radial-gradient(120% 90% at 80% 10%, #fff 0%, #fff7f8 45%, var(--blush) 100%); --m-aurora: .2; --m-star: rgba(217,8,23,.45);
  --m-glass: rgba(255,255,255,.72); --m-line: rgba(217,8,23,.14); --m-track: rgba(217,8,23,.1); --m-key: rgba(217,8,23,.06); --m-key-strong: rgba(217,8,23,.08);
  --m-hud: rgba(255,255,255,.78); --m-hud-shadow: 0 24px 44px -24px rgba(143,29,44,.35);
  --m-orb: radial-gradient(circle at 35% 30%, #ff9aa3, #ef2533 45%, #a5050e 100%);
  position: relative; overflow: hidden; isolation: isolate; padding: 120px 0 70px; color: var(--m-ink);
  background: var(--m-bg);
}
.mind__aurora { position: absolute; inset: 0; z-index: -2; pointer-events: none; filter: blur(70px); }
.mind__aurora i { position: absolute; border-radius: 50%; opacity: var(--m-aurora); animation: aurora 18s ease-in-out infinite; }
.mind__aurora i:nth-child(1) { width: 560px; height: 560px; left: -160px; top: -140px; background: #d90817; }
.mind__aurora i:nth-child(2) { width: 460px; height: 460px; right: -100px; bottom: -160px; background: #8f1d2c; animation-delay: -6s; }
.mind__aurora i:nth-child(3) { width: 340px; height: 340px; left: 40%; top: 30%; background: #f4babf; opacity: calc(var(--m-aurora) * .8); animation-delay: -12s; }
@keyframes aurora { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(60px, 40px) scale(1.12); } 66% { transform: translate(-40px, 20px) scale(.92); } }
.mind__stars {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: radial-gradient(1.4px 1.4px at 12% 22%, var(--m-star), transparent), radial-gradient(1px 1px at 32% 78%, var(--m-star), transparent),
    radial-gradient(1.2px 1.2px at 58% 14%, var(--m-star), transparent), radial-gradient(1px 1px at 76% 62%, var(--m-star), transparent),
    radial-gradient(1.4px 1.4px at 88% 30%, var(--m-star), transparent), radial-gradient(1px 1px at 46% 46%, var(--m-star), transparent),
    radial-gradient(1px 1px at 6% 66%, var(--m-star), transparent), radial-gradient(1.2px 1.2px at 94% 86%, var(--m-star), transparent);
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { to { opacity: .2; } }
.mind__grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 40px; align-items: center; }
.mind__grid > * { min-width: 0; }

.mind__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--m-soft); background: rgba(255,179,186,.08); border: 1px solid rgba(255,179,186,.22);
}
.mind__eyebrow i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--m-soft); }
.mind__eyebrow i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--m-soft); animation: ping 1.8s infinite; }
.mind__title { margin: 20px 0 14px; font-size: clamp(38px, 5vw, 62px); line-height: 1.04; font-weight: 800; letter-spacing: -.035em; color: var(--m-fg); }
/* El número brilla con un degradado que fluye */
.mind__num {
  position: relative; display: inline-block; background: linear-gradient(90deg, var(--m-red), var(--m-soft), #ff2a3a, var(--m-red)); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: numFlow 6s linear infinite;
  filter: drop-shadow(0 0 22px rgba(255,77,90,.45));
}
@keyframes numFlow { to { background-position: 300% 0; } }
.mind__ask { min-height: 1.6em; font-size: clamp(17px, 1.7vw, 20px); font-weight: 600; color: var(--m-fg); }
.mind__ask span { display: inline-block; transition: opacity .45s, transform .45s var(--ease), filter .45s; }
.mind__ask span.is-out { opacity: 0; transform: translateY(10px); filter: blur(6px); }
.mind__lead { margin-top: 10px; max-width: 540px; color: var(--m-dim); font-size: 16px; }

.mind__perks { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.mind__perks li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  background: var(--m-glass); border: 1px solid var(--m-line); backdrop-filter: blur(8px);
}
.mind__perks svg { width: 16px; height: 16px; color: var(--m-soft); }

.mind__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mind__call {
  position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 10px 22px 10px 10px; border-radius: 999px; color: #fff;
  background: linear-gradient(110deg, #ff3b47, #d90817 55%, #8f1d2c); box-shadow: 0 18px 40px -14px rgba(217,8,23,.75), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.mind__call::before { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid rgba(255,77,90,.5); animation: callRing 2.2s ease-out infinite; }
@keyframes callRing { from { transform: scale(.94); opacity: 1; } to { transform: scale(1.18, 1.4); opacity: 0; } }
.mind__call:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -14px rgba(217,8,23,.9), inset 0 1px 0 rgba(255,255,255,.25); }
.mind__call-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #d90817; }
.mind__call-ic svg { width: 20px; height: 20px; animation: ringPhone 2.2s ease-in-out infinite; }
@keyframes ringPhone { 0%, 60%, 100% { transform: rotate(0); } 64%, 72%, 80% { transform: rotate(-14deg); } 68%, 76% { transform: rotate(14deg); } }
.mind__call small { display: block; font-size: 11.5px; font-weight: 600; opacity: .85; line-height: 1.1; }
.mind__call b { display: block; font-size: 24px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.mind__call .ic-arrow { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.mind__call:hover .ic-arrow { transform: translateX(4px); }

.mind__topics { margin-top: 34px; }
.mind__topics > p { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--m-dim); margin-bottom: 12px; }
.mind__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mind__chip {
  padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--m-dim);
  background: var(--m-glass); border: 1px solid var(--m-line); transition: color .3s, background .3s, border-color .3s, transform .3s var(--ease);
}
.mind__chip:hover { color: var(--m-fg); border-color: rgba(255,77,90,.6); transform: translateY(-2px); }
.mind__chip.is-on { color: var(--m-fg); background: rgba(255,77,90,.22); border-color: var(--m-red); box-shadow: 0 0 0 4px rgba(255,77,90,.12); }
.mind__msg {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 16px 18px; border-radius: 18px; max-width: 560px;
  background: linear-gradient(120deg, rgba(255,77,90,.14), rgba(255,179,186,.08)); border: 1px solid rgba(255,77,90,.25);
}
.mind__msg.is-swap { animation: msgIn .55s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.mind__msg-ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,179,186,.14); color: var(--m-soft); }
.mind__msg-ic svg { width: 20px; height: 20px; }
.mind__msg p { font-size: 14.5px; color: var(--m-dim); }
.mind__msg b { color: var(--m-fg); }

/* Visual: esfera neuronal, anillos y orbe de respiración */
.mind__visual { position: relative; width: 100%; max-width: 600px; aspect-ratio: 1; justify-self: center; display: grid; place-items: center; }
.mind__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Resplandor del holograma (mindhead.js) */
.mind__canvas { filter: drop-shadow(0 0 5px rgba(240,100,112,.35)) drop-shadow(0 0 18px rgba(240,100,112,.18)); }
:root[data-theme="dark"] .mind__canvas { filter: drop-shadow(0 0 6px rgba(255,110,125,.6)) drop-shadow(0 0 24px rgba(255,110,125,.3)); }
.mind__rings { position: absolute; inset: 10%; pointer-events: none; }
.mind__rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,77,90,.18); animation: spinSlow 30s linear infinite; }
.mind__rings i:nth-child(1) { border-style: dashed; border-color: rgba(255,179,186,.22); }
.mind__rings i:nth-child(2) { inset: 9%; animation-direction: reverse; animation-duration: 22s; border-top-color: rgba(255,77,90,.7); }
.mind__rings i:nth-child(3) { inset: -6%; border-color: var(--m-line); border-left-color: rgba(255,111,145,.5); animation-duration: 40s; }

.breath { --s: 1; --dur: 4s; position: relative; z-index: 2; width: 36%; aspect-ratio: 1; display: grid; place-items: center; }
.breath::before {
  content: ""; position: absolute; inset: 12%; border-radius: 50%;
  background: var(--m-orb);
  box-shadow: 0 0 60px rgba(255,77,90,.55), 0 0 120px rgba(255,179,186,.25); transform: scale(var(--s)); transition: transform var(--dur) cubic-bezier(.45,0,.55,1);
}
/* Respiración ambiental mientras no hay ejercicio activo */
.breath:not(.is-active)::before { animation: idleBreath 7s ease-in-out infinite; }
@keyframes idleBreath { 0%, 100% { transform: scale(.82); } 50% { transform: scale(1); } }
.breath__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.breath__ring circle { fill: none; stroke-width: 2.5; }
.breath__track { stroke: var(--m-track); }
.breath__prog { stroke: var(--m-soft); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px var(--m-soft)); }
.breath__core { position: relative; text-align: center; color: #fff; text-shadow: 0 2px 12px rgba(26,7,9,.6); }
.breath__core b { display: block; font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: -.01em; }
.breath__core small { display: block; max-width: 120px; margin-inline: auto; font-size: 11.5px; line-height: 1.3; color: rgba(255,255,255,.8); }

/* Portal circular: el cuerpo de puntos (visuals.js) se dibuja dentro del anillo */
.breath { width: 82%; }
.breath::before { content: none; }
.breath.is-active::before, .breath:not(.is-active)::before { transform: none; animation: none; }
/* Botón del ejercicio: píldora con icono reproducir/detener */
.breath__core {
  position: absolute; bottom: 2%; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 7px 20px 7px 7px;
  font: inherit; text-align: left; white-space: nowrap; cursor: pointer; border-radius: 999px; color: var(--m-fg); text-shadow: none;
  background: var(--m-hud); border: 1px solid var(--m-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--m-hud-shadow), 0 0 0 0 rgba(240,100,112,.35);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
  animation: breathInvite 3.6s ease-in-out infinite;
}
@keyframes breathInvite { 50% { box-shadow: var(--m-hud-shadow), 0 0 0 8px rgba(240,100,112,0); } }
.breath__core:hover { transform: translateY(-3px); border-color: rgba(240,100,112,.45); }
.breath__core:focus-visible { outline: 3px solid var(--m-soft); outline-offset: 3px; }
.breath__core.is-on { animation: none; }
.breath__ic {
  position: relative; flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: linear-gradient(135deg, #f06470, #d90817); box-shadow: 0 8px 18px -8px rgba(217,8,23,.7);
}
.breath__ic svg { position: absolute; width: 18px; height: 18px; fill: currentColor; transition: opacity .3s, transform .3s var(--ease); }
.breath__play { margin-left: 2px; }
.breath__stop, .breath__core.is-on .breath__play { opacity: 0; transform: scale(.6); }
.breath__core.is-on .breath__stop { opacity: 1; transform: none; }
.breath__txt { display: grid; line-height: 1.2; }
.breath__core b { font-size: clamp(15px, 1.5vw, 18px); font-weight: 800; }
.breath__core small { max-width: none; margin: 0; color: var(--m-dim); font-size: 11.5px; }

.mhud {
  position: absolute; z-index: 3; padding: 12px 14px; border-radius: 16px; font-size: 12px; color: var(--m-ink);
  background: var(--m-hud); border: 1px solid var(--m-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--m-hud-shadow), inset 0 1px 0 rgba(255,255,255,.06);
}
.mhud small { color: var(--m-dim); font-size: 11.5px; }
.mhud__head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.mhud__live { width: 8px; height: 8px; border-radius: 50%; background: var(--m-soft); box-shadow: 0 0 0 3px rgba(255,179,186,.25); }
@keyframes liveTeal { 70% { box-shadow: 0 0 0 8px rgba(255,179,186,0); } 100% { box-shadow: 0 0 0 0 rgba(255,179,186,0); } }
.mhud--voice { top: 4%; left: -2%; width: 190px; }
.wave { display: flex; align-items: center; gap: 3px; height: 34px; margin-bottom: 6px; }
/* Onda fija (sin animación): alturas variadas para que lea como señal de voz */
.wave i { flex: 1; height: 35%; border-radius: 3px; background: linear-gradient(var(--m-soft), var(--m-red)); }
.wave i:nth-child(3n) { height: 70%; } .wave i:nth-child(4n) { height: 90%; } .wave i:nth-child(5n) { height: 55%; } .wave i:nth-child(7n) { height: 100%; }
.mhud--dial { top: 8%; right: -2%; width: 150px; padding: 12px; animation-delay: -2s; }
.dial__screen { display: flex; align-items: center; justify-content: center; height: 30px; margin-bottom: 8px; border-radius: 10px; background: var(--m-key-strong); font-size: 18px; font-weight: 800; letter-spacing: .14em; color: var(--m-fg); }
.dial__caret { display: none; }
.dial__pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.dial__pad span { display: grid; place-items: center; height: 22px; border-radius: 7px; font-size: 11px; font-weight: 700; color: var(--m-dim); background: var(--m-key); transition: background .2s, color .2s, box-shadow .2s, transform .2s; }
.dial__pad span.is-hit { background: var(--m-red); color: #fff; box-shadow: 0 0 16px rgba(255,77,90,.8); transform: scale(.9); }
.mhud--calm { bottom: 12%; left: -3%; display: flex; align-items: center; gap: 10px; animation-delay: -3.5s; }
.mhud--calm b { display: block; font-size: 14px; }
.mhud__ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(135deg, var(--m-red), #8f1d2c); color: #fff; }
.mhud__ic svg { width: 18px; height: 18px; }
.mhud--mood { bottom: 6%; right: 0; width: 180px; animation-delay: -1s; }
.mood { position: relative; height: 8px; margin: 8px 0 4px; border-radius: 8px; background: var(--m-track); overflow: hidden; }
.mood i { position: absolute; inset: 0; width: 38%; border-radius: inherit; background: linear-gradient(90deg, #8f1d2c, var(--m-red), var(--m-soft)); transition: width 1.2s var(--ease); }
.mood__scale { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--m-dim); }

.mind__sos {
  display: flex; align-items: center; gap: 14px; margin-top: 50px; padding: 16px 22px; border-radius: 18px;
  background: rgba(255,111,145,.08); border: 1px solid rgba(255,111,145,.25); color: var(--m-dim); font-size: 14.5px;
}
.mind__sos svg { flex: none; width: 24px; height: 24px; color: var(--m-red); }
.mind__sos a { color: var(--m-fg); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) {
  .mind { padding: 100px 0 60px; }
  .mind__grid { grid-template-columns: 1fr; }
  .mind__visual { max-width: 520px; }
}
@media (max-width: 600px) {
  .mind__actions > * { width: 100%; justify-content: center; }
  .mind__call { justify-content: flex-start; }
  .mind__call .ic-arrow { margin-left: auto; }
  .breath { width: 82%; }
  .mhud--voice { width: 150px; top: 0; left: 0; }
  .mhud--dial { display: none; }
  .mhud--calm { display: none; }
  .mhud--mood { display: none; }
  .mind__sos { align-items: flex-start; }
}

/* ---------- Ajustes del tema oscuro ---------- */
/* El script del <head> siempre fija data-theme, así que basta con este selector */
:root[data-theme="dark"] .underline::after { background: rgba(240,48,61,.42); }
:root[data-theme="dark"] .hero__glow { background: radial-gradient(circle, rgba(217,8,23,.24), rgba(143,29,44,.12) 45%, transparent 70%); }
:root[data-theme="dark"] .hex-pattern { opacity: .06; }
:root[data-theme="dark"] .service:hover::before { background: rgba(240,48,61,.22); }
:root[data-theme="dark"] .ab-card:hover { box-shadow: 0 24px 50px -30px rgba(0,0,0,.8); border-color: rgba(240,48,61,.3); }
:root[data-theme="dark"] .hub { background-color: #0b0708; }
:root[data-theme="dark"] .jobs { border-color: var(--line); }
:root[data-theme="dark"] .jobs::before { background: radial-gradient(circle, rgba(240,48,61,.2), transparent 65%); }
:root[data-theme="dark"] .jobs__live { color: #5fe39a; }
:root[data-theme="dark"] .social { --tint: color-mix(in srgb, var(--brand) 14%, var(--surface)); }
:root[data-theme="dark"] .job__tag { background: rgba(31,174,91,.14); color: #5fe39a; }
:root[data-theme="dark"] .footer__status.is-open b { color: #5fe39a; }
:root[data-theme="dark"] .footer::before { opacity: .22; }
:root[data-theme="dark"] .footer__word { background-image: linear-gradient(180deg, rgba(240,48,61,.22), rgba(240,48,61,0) 80%); }
:root[data-theme="dark"] .mind {
  --m-red: #ff4d5a; --m-soft: #ffb3ba; --m-ink: #fff3f4; --m-dim: rgba(255,228,230,.7); --m-fg: #fff;
  --m-bg: radial-gradient(120% 90% at 80% 10%, #3d0b13 0%, #1a0709 55%, #0d0405 100%); --m-aurora: .5; --m-star: #fff;
  --m-glass: rgba(255,255,255,.05); --m-line: rgba(255,255,255,.1); --m-track: rgba(255,255,255,.1); --m-key: rgba(255,255,255,.05); --m-key-strong: rgba(0,0,0,.3);
  --m-hud: rgba(30,10,13,.62); --m-hud-shadow: 0 20px 40px -20px rgba(0,0,0,.7);
  --m-orb: radial-gradient(circle at 35% 30%, rgba(255,255,255,.5), rgba(255,77,90,.7) 40%, rgba(120,16,28,.85) 100%);
}
/* Logos oficiales con texto oscuro: sobre una placa clara para que se lean */
:root[data-theme="dark"] .hero__trust img, :root[data-theme="dark"] .footer__seals img { background: #fff; padding: 4px 8px; border-radius: 10px; box-sizing: content-box; }
:root[data-theme="dark"] .hero__trust img { filter: none; opacity: .9; }
:root[data-theme="dark"] .mapframe iframe { filter: invert(.9) hue-rotate(180deg) saturate(.85); }
/* Respaldo sin View Transitions: fundido de colores durante el cambio */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .45s, color .45s, border-color .45s, fill .45s !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .part-grid, .reps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  /* Menú móvil: panel a pantalla completa que se abre en círculo desde el botón */
  .nav__toggle { display: block; }
  .nav__actions { margin-left: auto; }
  .nav__links {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    padding: 104px max(24px, calc(50% - 280px)) 28px; background: var(--bg); overflow-y: auto; font-size: 20px; font-weight: 600; color: var(--ink);
    visibility: hidden; clip-path: circle(0 at calc(100% - 44px) 42px);
    transition: clip-path .6s var(--ease), visibility 0s .6s;
  }
  .nav.is-open .nav__links { visibility: visible; clip-path: circle(150% at calc(100% - 44px) 42px); transition: clip-path .7s var(--ease), visibility 0s; }
  .nav.is-open .nav__inner::before { box-shadow: none; border-color: transparent; }
  .nav__pill { display: none; }
  .nav__links > a, .nav__dropdown, .nav__extra { opacity: 0; transform: translateY(14px); transition: opacity .4s, transform .5s var(--ease); }
  .nav.is-open .nav__links > a, .nav.is-open .nav__dropdown, .nav.is-open .nav__extra { opacity: 1; transform: none; }
  .nav.is-open .nav__links > :nth-child(3) { transition-delay: .12s; }
  .nav.is-open .nav__links > :nth-child(4) { transition-delay: .16s; }
  .nav.is-open .nav__links > :nth-child(5) { transition-delay: .2s; }
  .nav.is-open .nav__links > :nth-child(6) { transition-delay: .24s; }
  .nav.is-open .nav__links > :nth-child(7) { transition-delay: .28s; }
  .nav.is-open .nav__links > :nth-child(8) { transition-delay: .34s; }
  .nav__links > a, .nav__drop-btn { width: 100%; height: auto; padding: 16px 2px; border-radius: 0; justify-content: space-between; font-weight: 600; border-bottom: 1px solid var(--line); }
  .nav__links > a.is-active::after, .nav__dropdown.is-current > .nav__drop-btn::after { display: none; }
  .chev { width: 20px; height: 20px; }
  .nav__drop-menu { position: static; width: auto; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 8px 0; }
  .nav__drop-menu::before { display: none; }
  .nav__dropdown.is-open .nav__drop-menu { display: grid; transform: none; }
  .nav__extra { display: grid; gap: 14px; margin-top: auto; padding-top: 32px; font-size: 14.5px; font-weight: 500; color: var(--gray); }
  .nav__extra > a:not(.btn), .nav__extra > span { display: flex; align-items: center; gap: 12px; }
  .nav__extra > a:not(.btn) svg, .nav__extra > span svg { width: 18px; height: 18px; color: var(--red); }
  .nav__extra .btn { margin-bottom: 6px; }
  .nav__social { display: flex; gap: 8px; margin-top: 4px; }
  .nav__social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--blush); color: var(--red); }
  .nav__social svg { width: 17px; height: 17px; }
  .menu-open, .menu-open body { overflow: hidden; }
  .hero__grid, .app__grid, .jobs, .two-col, .article-wrap { grid-template-columns: 1fr; }
  .holo { max-width: 520px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3)::before { display: none; }
  .services, .blog { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .ab-adn { grid-template-columns: 1fr; padding: 36px; }
  .ruta__cols { gap: 40px; }
  .social-hub { grid-template-columns: 1fr; }
  .socials, .social-hub:has(.ig[hidden]) .socials { grid-template-rows: none; grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .hub__hours { margin-top: 6px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .section { padding: 56px 0; }
  .sticky { position: static; }
  .docs, .rd { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav { top: 10px; padding: 0 10px; }
  .nav__inner, .nav.is-scrolled .nav__inner { height: 54px; padding: 0 8px 0 16px; }
  .nav__logo img, .nav.is-scrolled .nav__logo img { height: 34px; }
  .nav__cta { display: none; }
  .nav__links { padding-top: 92px; clip-path: circle(0 at calc(100% - 37px) 37px); }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 37px) 37px); }
  .hero { padding-top: 110px; }
  .hud { padding: 9px 11px; }
  .hud--risk { width: 170px; left: 0; top: 2%; }
  .hud--spo2 { right: 0; top: 4%; }
  .gauge { width: 44px; height: 44px; }
  .hud--ecg { width: 180px; left: 0; bottom: 2%; }
  .hud--bp { right: 0; bottom: 18%; }
  .holo__chip { display: none; }
  .stats__grid { grid-template-columns: 1fr; }
  .stat + .stat::before { left: 20%; right: 20%; top: 0; bottom: auto; width: auto; height: 1px; display: block !important; }
  .part-grid, .reps { grid-template-columns: 1fr; }
  .form { padding: 26px 22px; }
  .form__row, .form__grid { grid-template-columns: 1fr; }
  .jobs { padding: 28px 20px 40px; border-radius: 26px; gap: 30px; }
  .jobs__perks li { padding: 10px 14px; }
  .jobs__visual { min-height: 330px; }
  .jobs__visual::before { width: 280px; }
  .jobs__orb { width: 46px; height: 46px; }
  .jobs__you { right: 0; top: 40%; }
  .newsletter__inner { padding: 32px 24px; }
  .newsletter__form { max-width: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer__contact { grid-column: 1 / -1; }
  .footer__cta { padding: 22px 20px; }
  .footer__cta-actions, .footer__cta-actions .btn { width: 100%; }
  .ab { gap: 14px; }
  .ab-card, .ab-adn, .ab-ruta { padding: 24px; }
  .panal { --hw: 104px; --hh: 90px; }
  .panal li { font-size: 11px; padding: 0 6px; }
  .panal li svg { width: 20px; height: 20px; }
  .ruta__cols { grid-template-columns: 1fr; gap: 26px; }
  .ruta__col + .ruta__col::before { left: 0; right: 0; top: -13px; bottom: auto; width: auto; height: 1px; }
  .ruta__linea { gap: 10px; }
  .ruta__hito b { font-size: 16px; }
  .ab-pol__grid { grid-template-columns: 1fr; }
  .ab-pol__item, .ab-pol__item:first-child { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 6px; }
  .ab-pol__item:first-child { border-top: 0; }
  .ab-pol__item .ab-num, .ab-pol__item:last-child .ab-num { right: 0; }

  .ig { padding: 12px; border-radius: 20px; }
  .ig__grid { gap: 5px; }
  .ig__post { border-radius: 10px; }
  .ig__over { padding: 6px; }
  .ig__meta { font-size: 10.5px; gap: 6px; }
  .ig__meta time, .ig__over p, .ig__new { display: none; }
  .ig__more { padding: 0 12px; }
  .socials, .social-hub:has(.ig[hidden]) .socials { grid-template-columns: 1fr; gap: 10px; }
  .social { display: flex; align-items: center; }
  .social > div { flex: 1; }
  .social p { display: none; }
  .social__cta { padding: 7px 13px; border-radius: 999px; }
  .hub, .form--contact { padding: 24px 20px; }
  .app__visual { min-height: 480px; }
  .ring-pulse { width: 300px; height: 300px; }
  .page-hero { padding: 140px 0 70px; }
  .card { padding: 26px 22px; }
  .rd__col { padding: 32px 24px; }
  .mapframe { aspect-ratio: 4/3; }
}

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

/* =========================================================
   Marco normativo · página completa
   ========================================================= */
/* Portada con órbita de procesos */
.nh { padding-bottom: 56px; }
.nh__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.nh__stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.nh__stats div { min-width: 120px; padding: 14px 18px; border-radius: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); }
.nh__stats b { display: block; font-size: 36px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.nh__stats small { font-size: 13px; opacity: .88; }
.nh__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.nh__orbit { position: relative; width: min(100%, 440px); aspect-ratio: 1; justify-self: center; }
.nh__ring { position: absolute; inset: 0; animation: spinSlow 90s linear infinite; }
.nh__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.nh__lines circle { fill: none; stroke: rgba(255,255,255,.3); stroke-width: .3; stroke-dasharray: 1.2 1.6; }
.nh__lines line { stroke: rgba(255,255,255,.28); stroke-width: .3; transition: stroke .3s, stroke-width .3s; }
.nh__lines line.is-on { stroke: #fff; stroke-width: .7; }
.nh__sat { position: absolute; transform: translate(-50%, -50%); }
.nh__sat button {
  position: relative; width: 64px; height: 64px; display: grid; place-items: center; border: 0; padding: 0; cursor: pointer;
  clip-path: var(--hex); background: #fff; color: var(--red); animation: spinSlow 90s linear infinite reverse;
  transition: background .3s, color .3s, scale .3s var(--ease);
}
.nh__sat button svg { width: 26px; height: 26px; margin-bottom: 8px; }
.nh__sat button em { position: absolute; bottom: 9px; font-style: normal; font-size: 10px; font-weight: 800; line-height: 1; }
.nh__sat button:hover, .nh__sat button:focus-visible { background: #101010; color: #fff; scale: 1.15; outline: none; }
.nh__orbit:hover .nh__ring, .nh__orbit:hover .nh__sat button,
.nh__orbit:focus-within .nh__ring, .nh__orbit:focus-within .nh__sat button { animation-play-state: paused; }
.nh__core {
  position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  clip-path: var(--hex); background: linear-gradient(150deg, rgba(255,255,255,.28), rgba(255,255,255,.1)); backdrop-filter: blur(6px);
}
.nh__core span { width: 30px; height: 30px; animation: orgBeat 2.8s var(--ease) infinite; }
.nh__core span svg { width: 100%; height: 100%; }
.nh__core b { font-size: 34px; font-weight: 800; line-height: 1.05; }
.nh__core small { font-size: 12px; opacity: .85; }
.nh__orbit::before, .nh__orbit::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5); transform: translate(-50%, -50%); animation: nhPulse 3.2s var(--ease) infinite; pointer-events: none;
}
.nh__orbit::after { animation-delay: 1.6s; }
@keyframes nhPulse { from { opacity: .8; width: 34%; } to { opacity: 0; width: 70%; } }
.nh .nh__tip {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.25);
  opacity: .9; transition: background .3s, color .3s;
}
.nh .nh__tip.is-on { background: #fff; color: #b0060f; opacity: 1; }

/* Barra de búsqueda del organigrama */
.org-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.org-bar .search { flex: 1 1 300px; }
.org-bar + .org-suggest { margin-bottom: 36px; }

@media (max-width: 1024px) {
  .nh__grid { grid-template-columns: 1fr; }
  .nh__orbit { width: min(100%, 380px); margin-top: 10px; }
}
@media (max-width: 640px) {
  .nh__stats div { min-width: 0; flex: 1 1 90px; padding: 12px 14px; }
  .nh__stats b { font-size: 28px; }
  .nh__sat button { width: 50px; height: 50px; }
  .nh__sat button svg { width: 20px; height: 20px; margin-bottom: 6px; }
  .nh__sat button em { bottom: 7px; }
  .nh__core b { font-size: 26px; }
}

/* Marco normativo · acabado moderno */
.nx { position: relative; overflow: hidden; isolation: isolate; }
.nx::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1.3px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, #000 25%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 55% at 50% 35%, #000 25%, transparent 80%);
}
.nx::after {
  content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; top: -220px; right: -240px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,8,23,.09), transparent 70%); pointer-events: none;
}

/* Barra de comandos: búsqueda + nivel + sugerencias */
.cmd {
  max-width: 1000px; margin: 0 auto 44px; padding: 14px; border-radius: 22px;
  background: var(--glass-strong); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.cmd .org-bar { margin-bottom: 12px; }
.cmd .search input { background: var(--bg); }
.cmd .org-suggest { margin: 0; padding: 0 4px; }

/* Panel con acento superior */
.org__panel::after {
  content: ""; position: absolute; left: 26px; right: 26px; top: -1.5px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--red), #e8394a, var(--wine));
}
.org__root { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--red), #e8394a, var(--wine)) border-box; border-color: transparent; }

@media (max-width: 640px) {
  .cmd { padding: 12px; border-radius: 18px; margin-bottom: 32px; }
  .nx::after { width: 360px; height: 360px; right: -180px; }
}
