/* ═══════════════════════════════════════════════════════════
   EPA BIENESTAR IA — Sistema de diseño
   Equilibrio · Precisión · Armonía
   Editar acá cambia TODAS las páginas del sitio.
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════
   TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  --paper:      #F6F8FA;
  --surface:    #FFFFFF;
  --surface-2:  #EFF3F6;
  --ink:        #131820;
  --ink-2:      #414B57;
  --muted:      #6B7684;
  --line:       #DCE2E8;
  --line-soft:  #E9EDF1;

  --teal:       #0F5257;   /* institucional / Precisión */
  --teal-deep:  #0A3A3E;
  --amber:      #B8801A;   /* Equilibrio */
  --plum:       #8E3B63;   /* Armonía */
  --signal:     #D93A4C;   /* trazado cardiovascular, alertas */

  --trace-calm: #0F5257;
  --trace-vary: #D93A4C;

  --shadow-sm: 0 1px 2px rgba(19,24,32,.05);
  --shadow-md: 0 2px 14px rgba(19,24,32,.07);
  --shadow-lg: 0 18px 48px -18px rgba(19,24,32,.22);

  --f-display: "Archivo", system-ui, sans-serif;
  --f-body:    "Instrument Sans", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  --wrap: 1180px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
}

[data-theme="dark"] {
  --paper:      #0B0F14;
  --surface:    #141A21;
  --surface-2:  #1B222B;
  --ink:        #E7ECF1;
  --ink-2:      #B9C3CE;
  --muted:      #8794A2;
  --line:       #28313C;
  --line-soft:  #1F2831;

  --teal:       #3FA8A8;
  --teal-deep:  #6CC5C0;
  --amber:      #E5B04A;
  --plum:       #C56A98;
  --signal:     #FF5F70;

  --trace-calm: #3FA8A8;
  --trace-vary: #FF5F70;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 2px 14px rgba(0,0,0,.45);
  --shadow-lg: 0 18px 48px -18px rgba(0,0,0,.7);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
a { color: inherit; }

img { max-width: 100%; display: block; }

::selection { background: var(--teal); color: #fff; }

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

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal); color: #fff; padding: 12px 20px;
  font-family: var(--f-mono); font-size: 13px;
}
.skip:focus { left: 12px; top: 12px; }

/* ── Utility type ─────────────────────────────────────── */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: currentColor; flex: none; opacity: .55;
}

.lede { font-size: 1.14rem; color: var(--ink-2); max-width: 62ch; }
.mono { font-family: var(--f-mono); font-size: .84em; letter-spacing: -.01em; }

/* ── Sections ─────────────────────────────────────────── */
.band { padding: 104px 0; border-top: 1px solid var(--line-soft); }
.band-alt { background: var(--surface); }
.band-ink { background: var(--teal-deep); color: #EAF3F2; border-top: none; }
[data-theme="dark"] .band-ink { background: #0A1418; }
.band-ink .eyebrow, .band-ink .lede { color: rgba(234,243,242,.72); }
.band-ink h2 { color: #fff; }

.head { max-width: 720px; margin-bottom: 56px; }
.head h2 { font-size: clamp(1.85rem, 3.6vw, 2.85rem); margin-bottom: 18px; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-body); font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: 999px;
  text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--teal); color: #fff; box-shadow: var(--shadow-md); }
.btn-solid:hover { box-shadow: var(--shadow-lg); }
[data-theme="dark"] .btn-solid { color: #06181A; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-signal { background: var(--signal); color: #fff; box-shadow: var(--shadow-md); }

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */
.hdr {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.hdr-in { display: flex; align-items: center; gap: 26px; height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand img { width: 32px; height: 32px; object-fit: contain; }
.brand-tx { display: flex; flex-direction: column; line-height: 1.05; }
.brand-tx b { font-family: var(--f-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.03em; }
.brand-tx span {
  font-family: var(--f-mono); font-size: 8.6px; letter-spacing: .17em;
  text-transform: uppercase; color: var(--muted); margin-top: 2px;
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: .905rem; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: var(--r-md); white-space: nowrap;
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: var(--teal); background: var(--surface-2); }

.hdr-act { display: flex; align-items: center; gap: 10px; flex: none; }

.tgl {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink-2);
  display: grid; place-items: center; cursor: pointer;
  transition: border-color .15s, color .15s, transform .3s;
}
.tgl:hover { border-color: var(--teal); color: var(--teal); }
.tgl svg { width: 17px; height: 17px; }
[data-theme="light"] .ico-sun { display: none; }
[data-theme="dark"]  .ico-moon { display: none; }

.burger { display: none; width: 40px; height: 38px; border: 1.5px solid var(--line);
  background: transparent; border-radius: var(--r-md); cursor: pointer; color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   HERO  — signature: two BP traces, same mean, different variance
   ═══════════════════════════════════════════════════════════ */
.hero { padding: 72px 0 78px; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 64px; align-items: center;
}

.hero h1 {
  font-size: clamp(2.9rem, 6.6vw, 4.5rem);
  font-weight: 800; letter-spacing: -.045em; line-height: .96;
  margin-bottom: 26px;
}
.hero h1 span { display: block; }
.hw-e { color: var(--amber); }
.hw-p { color: var(--teal); }
.hw-a { color: var(--plum); }

.hero-sub { font-size: 1.13rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 12px; }
.hero-sub strong { color: var(--ink); font-weight: 600; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.hero-meta {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted);
}

/* — Trace panel — */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden;
}
.panel-top {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft); background: var(--surface-2);
}
.panel-top .lbl {
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}
.panel-body { padding: 6px 10px 16px; }
.panel-foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line-soft); border-top: 1px solid var(--line-soft);
}
.pf-cell { background: var(--surface); padding: 15px 18px; }
.pf-cell .k {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 7px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.pf-cell .v {
  font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.03em;
  margin-top: 5px;
}
.pf-cell .n { font-size: .8rem; color: var(--muted); line-height: 1.35; }

.trace-note {
  margin: 14px 0 0; padding: 13px 16px; background: var(--surface-2);
  border-left: 3px solid var(--signal); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: .875rem; color: var(--ink-2);
}
.trace-note b { color: var(--ink); }

svg .grid-l { stroke: var(--line-soft); stroke-width: 1; }
svg .mean-l { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; opacity: .8; }
svg .ax-t { fill: var(--muted); font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .04em; }
.tr-path { fill: none; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.tr-calm { stroke: var(--trace-calm); }
.tr-vary { stroke: var(--trace-vary); }

/* ═══════════════════════════════════════════════════════════
   BRECHA
   ═══════════════════════════════════════════════════════════ */
.gap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.gap-cell { background: var(--surface); padding: 34px 28px; }
.gap-cell .num {
  font-family: var(--f-display); font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.4rem); letter-spacing: -.05em; line-height: 1;
  color: var(--signal); margin-bottom: 12px;
}
.gap-cell.is-teal .num { color: var(--teal); }
.gap-cell h3 { font-size: 1.02rem; margin-bottom: 8px; }
.gap-cell p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ═══════════════════════════════════════════════════════════
   ÍNDICE EPA
   ═══════════════════════════════════════════════════════════ */
.idx-bar { display: flex; height: 62px; border-radius: var(--r-md); overflow: hidden; margin-bottom: 6px; }
.idx-seg {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  color: #fff; font-family: var(--f-display); font-weight: 700; font-size: 1.02rem;
  letter-spacing: -.02em; transition: filter .18s;
}
.idx-seg:hover { filter: brightness(1.12); }
.idx-seg span { font-family: var(--f-mono); font-weight: 500; font-size: .78rem; opacity: .82; letter-spacing: .04em; }
.seg-e { background: var(--amber); flex: 38; }
.seg-p { background: var(--teal);  flex: 32; }
.seg-a { background: var(--plum);  flex: 30; }
[data-theme="dark"] .idx-seg { color: #0B0F14; }

.idx-src {
  font-family: var(--f-mono); font-size: 11px; color: var(--muted);
  letter-spacing: .04em; margin: 0 0 52px; padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dim {
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--dc); border-radius: var(--r-lg);
  padding: 30px 26px; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.dim:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dim-e { --dc: var(--amber); }
.dim-p { --dc: var(--teal); }
.dim-a { --dc: var(--plum); }

.dim-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.dim-ltr { font-family: var(--f-display); font-weight: 800; font-size: 2.3rem; letter-spacing: -.05em; color: var(--dc); line-height: 1; }
.dim-wt { font-family: var(--f-mono); font-size: .95rem; font-weight: 600; color: var(--dc); }
.dim h3 { font-size: 1.3rem; margin-bottom: 6px; }
.dim .q {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 16px;
}
.dim > p { font-size: .93rem; color: var(--ink-2); }

.dim ul { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line-soft); }
.dim li {
  padding: 9px 0; border-bottom: 1px solid var(--line-soft);
  font-size: .875rem; display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
}
.dim li:last-child { border-bottom: none; }
.dim li code {
  font-family: var(--f-mono); font-size: 10.5px; color: var(--muted);
  background: var(--surface-2); padding: 2px 6px; border-radius: 3px; white-space: nowrap;
}

.idx-note {
  margin-top: 30px; padding: 20px 24px; background: var(--surface-2);
  border-left: 3px solid var(--muted); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: .9rem; color: var(--ink-2);
}
.idx-note b { color: var(--ink); }
.idx-note p:last-child { margin-bottom: 0; }

/* ═══════════════════════════════════════════════════════════
   GRUPOS A–D
   ═══════════════════════════════════════════════════════════ */
.grp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grp-c {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 22px; position: relative; transition: border-color .2s, transform .2s;
}
.grp-c:hover { border-color: var(--teal); transform: translateY(-3px); }
.grp-c.is-focus { border-color: var(--plum); border-width: 1.5px; }
.grp-l {
  font-family: var(--f-display); font-weight: 800; font-size: 1.05rem;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2); margin-bottom: 16px;
}
.grp-c.is-focus .grp-l { background: var(--plum); color: #fff; }
.grp-c .age { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); }
.grp-c h3 { font-size: 1.05rem; margin: 5px 0 8px; }
.grp-c p { font-size: .88rem; color: var(--muted); margin: 0; }
.tag {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .11em; text-transform: uppercase;
  background: var(--plum); color: #fff; padding: 3px 8px; border-radius: 999px;
}

/* ═══════════════════════════════════════════════════════════
   DETERMINANTES
   ═══════════════════════════════════════════════════════════ */
.det-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.det-row { display: grid; grid-template-columns: 150px 1fr 48px; gap: 16px; align-items: center; margin-bottom: 15px; }
.det-row .nm { font-size: .93rem; font-weight: 500; }
.det-track { height: 9px; background: rgba(255,255,255,.13); border-radius: 999px; overflow: hidden; }
.det-fill { height: 100%; border-radius: 999px; width: 0; transition: width 1.1s cubic-bezier(.22,1,.36,1); }
.det-row .pc { font-family: var(--f-mono); font-size: .88rem; font-weight: 600; text-align: right; }

/* ═══════════════════════════════════════════════════════════
   ESTÁNDARES / SERVICIOS / ECOSISTEMA
   ═══════════════════════════════════════════════════════════ */
.std { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.std-c { background: var(--surface); padding: 28px 24px; }
.std-c .ic { color: var(--teal); margin-bottom: 14px; }
.std-c .ic svg { width: 22px; height: 22px; }
.std-c h3 { font-size: 1rem; margin-bottom: 6px; }
.std-c p { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em; color: var(--muted); margin: 0; }

.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc-c {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 24px; display: flex; flex-direction: column; gap: 6px;
  text-decoration: none; transition: border-color .18s, transform .18s, box-shadow .18s;
}
.svc-c:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.svc-c h3 { font-size: 1.05rem; }
.svc-c p { font-size: .88rem; color: var(--muted); margin: 0; flex: 1; }
.svc-go { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-top: 10px; }

.eco { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.eco-c { background: var(--surface); padding: 22px; }
.eco-c .n { font-family: var(--f-display); font-weight: 700; font-size: 1rem; margin-bottom: 3px; }
.eco-c .r { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════
   EQUIPO / NOVEDADES
   ═══════════════════════════════════════════════════════════ */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 20px; }
.team-c { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.team-c h3 { font-size: 1.18rem; margin-bottom: 4px; }
.team-c .role { font-family: var(--f-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--teal); margin-bottom: 16px; }
.team-c .mail { font-family: var(--f-mono); font-size: 12.5px; color: var(--muted); text-decoration: none; display: block; margin-bottom: 14px; }
.team-c .mail:hover { color: var(--teal); }
.li-btn {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none;
  background: #0A66C2; color: #fff !important; font-size: .82rem; font-weight: 600;
  padding: 7px 15px; border-radius: 999px;
}

.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-c { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.news-c .im { aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.news-c .im img { width: 100%; height: 100%; object-fit: cover; }
.news-c .tx { padding: 20px 22px; }
.news-c .dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.news-c h3 { font-size: 1.02rem; }

/* ═══════════════════════════════════════════════════════════
   CTA FINAL / FOOTER
   ═══════════════════════════════════════════════════════════ */
.cta-fin { text-align: center; }
.cta-fin h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 18px; }
.cta-fin .lede { margin: 0 auto 32px; }
.cta-fin .row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.ft { background: var(--surface); border-top: 1px solid var(--line); padding: 66px 0 30px; }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 42px; margin-bottom: 46px; }
.ft h4 { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.ft ul { list-style: none; padding: 0; margin: 0; }
.ft li { margin-bottom: 9px; }
.ft a { text-decoration: none; font-size: .9rem; color: var(--ink-2); transition: color .15s; }
.ft a:hover { color: var(--teal); }
.ft address { font-style: normal; font-size: .9rem; color: var(--ink-2); line-height: 1.75; }

.ft-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.ft-brand img { width: 34px; height: 34px; }
.ft-tag { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--teal); }

.status { display: inline-flex; align-items: center; gap: 9px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); margin-top: 18px; }
#status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9AA5B1; flex: none; }

.ft-bot { border-top: 1px solid var(--line-soft); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.ft-bot .cr { font-size: .82rem; color: var(--muted); }
.socials { display: flex; gap: 8px; }
.socials a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: all .15s; }
.socials a:hover { border-color: var(--teal); color: var(--teal); }
.socials svg { width: 16px; height: 16px; }
.legal { font-size: .76rem; color: var(--muted); margin-top: 20px; line-height: 1.7; }
.legal a { color: var(--muted); }

.wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; background: #25D366;
  display: grid; place-items: center; box-shadow: 0 6px 22px rgba(37,211,102,.42);
  transition: transform .18s;
}
.wa:hover { transform: scale(1.08); }
.wa svg { width: 28px; height: 28px; fill: #fff; }

/* ═══════════════════════════════════════════════════════════
   REVEAL
   ═══════════════════════════════════════════════════════════ */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .tr-path { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; animation: none !important; }
  .btn:hover, .dim:hover, .svc-c:hover, .grp-c:hover, .wa:hover { transform: none; }
  .det-fill { transition: none; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .dims, .svc, .news, .std { grid-template-columns: repeat(2, 1fr); }
  .grp { grid-template-columns: repeat(2, 1fr); }
  .det-grid { grid-template-columns: 1fr; gap: 40px; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 780px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 20px 20px; gap: 2px;
    box-shadow: var(--shadow-lg);
  }
  .nav.open a { padding: 12px 8px; border-bottom: 1px solid var(--line-soft); border-radius: 0; }
  .burger { display: grid; place-items: center; }
  .hdr-act .btn-solid { display: none; }
  .brand-tx span { font-size: 8px; letter-spacing: .13em; }
  .band { padding: 68px 0; }
  .head { margin-bottom: 38px; }
  .gap-grid, .dims, .svc, .news, .std, .grp, .team { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr; }
  .panel-foot { grid-template-columns: 1fr; }
  .det-row { grid-template-columns: 110px 1fr 44px; gap: 11px; }
  .ft-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 66px; }
  body { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════════
   PÁGINAS INTERNAS
   ═══════════════════════════════════════════════════════════ */
.phero { padding: 62px 0 50px; border-bottom: 1px solid var(--line-soft); }
.phero-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 56px; align-items: end; }
.crumb {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--teal); }
.crumb span { opacity: .45; margin: 0 7px; }
.phero h1 { font-size: clamp(2.2rem, 4.8vw, 3.4rem); font-weight: 800; letter-spacing: -.042em; margin-bottom: 20px; }
.phero .lede { font-size: 1.1rem; }

/* Ficha lateral tipo etiqueta de instrumento */
.card-fx { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.card-fx h4 {
  font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); padding: 13px 20px; margin: 0;
  background: var(--surface-2); border-bottom: 1px solid var(--line-soft);
}
.fx-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 20px; border-bottom: 1px solid var(--line-soft); font-size: .87rem; }
.fx-row:last-child { border-bottom: none; }
.fx-row .k { color: var(--muted); }
.fx-row .v { font-weight: 600; text-align: right; }

/* Prosa larga */
.prose { max-width: 74ch; }
.prose h3 { font-size: 1.32rem; margin: 44px 0 12px; }
.prose h4 { font-size: 1.02rem; margin: 30px 0 8px; }
.prose p { color: var(--ink-2); }
.prose ul, .prose ol { color: var(--ink-2); padding-left: 22px; margin: 0 0 1.1em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose code { font-family: var(--f-mono); font-size: .85em; background: var(--surface-2); padding: 2px 6px; border-radius: 3px; }
.prose a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Tabla comparativa */
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.tbl thead th {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line);
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .yes { color: var(--teal); font-weight: 600; }
.tbl .no  { color: var(--muted); }
.tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; }

/* Lista de pasos / timeline */
.tl { list-style: none; padding: 0; margin: 0; }
.tl li { display: grid; grid-template-columns: 118px 1fr; gap: 26px; padding: 24px 0; border-bottom: 1px solid var(--line-soft); }
.tl li:last-child { border-bottom: none; }
.tl .when { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--teal); padding-top: 3px; }
.tl h3 { font-size: 1.1rem; margin-bottom: 6px; }
.tl p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Bloques de aviso */
.callout { padding: 20px 24px; border-radius: 0 var(--r-md) var(--r-md) 0; border-left: 3px solid var(--muted); background: var(--surface-2); font-size: .92rem; color: var(--ink-2); }
.callout b { color: var(--ink); }
.callout p:last-child { margin-bottom: 0; }
.callout-warn { border-left-color: var(--signal); }
.callout-info { border-left-color: var(--teal); }

/* Grilla genérica de tarjetas */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; transition: border-color .18s, transform .18s, box-shadow .18s;
}
a.card { text-decoration: none; display: block; }
a.card:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card .kicker { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.card p { font-size: .9rem; color: var(--muted); margin: 0; }
.card p + p { margin-top: 8px; }

/* Índice lateral (páginas legales) */
.legal-grid { display: grid; grid-template-columns: 230px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc h4 { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.toc ol { list-style: none; counter-reset: t; padding: 0; margin: 0; }
.toc li { counter-increment: t; margin-bottom: 3px; }
.toc a { display: block; text-decoration: none; font-size: .86rem; color: var(--ink-2); padding: 6px 10px; border-radius: var(--r-sm); border-left: 2px solid var(--line-soft); }
.toc a::before { content: counter(t) ". "; font-family: var(--f-mono); font-size: .82em; color: var(--muted); }
.toc a:hover { color: var(--teal); border-left-color: var(--teal); background: var(--surface-2); }

@media (max-width: 1040px) {
  .phero-grid { grid-template-columns: 1fr; gap: 34px; align-items: start; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .legal-grid { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 780px) {
  .cards, .cards-2 { grid-template-columns: 1fr; }
  .tl li { grid-template-columns: 1fr; gap: 8px; }
  .phero { padding: 40px 0 34px; }
}

/* Cuando .prose comparte elemento con .wrap, el max-width de la medida
   no debe encoger ni centrar el contenedor: se aplica a los hijos, para
   que la prosa quede alineada al mismo borde izquierdo que el resto. */
.wrap.prose { max-width: none; width: min(100% - 40px, var(--wrap)); }
.wrap.prose > * { max-width: 74ch; }

/* ═══════════════════════════════════════════════════════════
   LANDING GRUPO C — registro de Armonía
   La página que le habla a la mujer usa ciruela como acento,
   porque es la dimensión que representa su propia voz.
   ═══════════════════════════════════════════════════════════ */
.pg-c { --teal: var(--plum); --teal-deep: #6E2C4C; }
[data-theme="dark"] .pg-c { --teal: var(--plum); --teal-deep: #4A1E33; }
.pg-c .band-ink { background: #6E2C4C; }
[data-theme="dark"] .pg-c .band-ink { background: #2A1220; }

/* Traducción: lo que sentís → lo que está pasando */
.tr2 { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.tr2-hd, .tr2-row { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; }
.tr2-hd {
  background: var(--surface-2); border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}
.tr2-hd > * { padding: 13px 20px; }
.tr2-row { border-bottom: 1px solid var(--line-soft); }
.tr2-row:last-child { border-bottom: none; }
.tr2-row > * { padding: 16px 20px; }
.tr2-felt { font-size: .96rem; font-weight: 500; }
.tr2-arrow { text-align: center; color: var(--muted); padding: 0 !important; }
.tr2-arrow svg { width: 17px; height: 17px; }
.tr2-real { font-size: .91rem; color: var(--ink-2); border-left: 1px solid var(--line-soft); }

/* Reconocimiento */
.recog { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.recog label {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 15px 17px; font-size: .93rem; transition: border-color .15s, background-color .15s;
}
.recog label:hover { border-color: var(--plum); }
.recog input { accent-color: var(--plum); width: 17px; height: 17px; margin: 2px 0 0; flex: none; cursor: pointer; }
.recog input:checked + span { color: var(--ink); font-weight: 500; }
.recog label:has(input:checked) { border-color: var(--plum); background: var(--surface-2); }
.recog span { color: var(--ink-2); }

.recog-out {
  margin-top: 22px; padding: 22px 26px; border-radius: var(--r-md);
  background: var(--surface-2); border-left: 3px solid var(--plum);
  font-size: .95rem; color: var(--ink-2);
}
.recog-out b { color: var(--ink); }
.recog-out p:last-child { margin-bottom: 0; }
.recog-out .n { font-family: var(--f-display); font-weight: 800; color: var(--plum); font-size: 1.05em; }

/* Preguntas frecuentes */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--f-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 12px; top: 27px;
  width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 31px; }
.faq summary:hover { color: var(--plum); }
.faq .ans { padding: 0 44px 22px 0; font-size: .95rem; color: var(--ink-2); }
.faq .ans p:last-child { margin-bottom: 0; }
.faq .ans a { color: var(--plum); }

@media (max-width: 780px) {
  .tr2-hd, .tr2-row { grid-template-columns: 1fr; }
  .tr2-arrow { display: none; }
  .tr2-row > * { padding: 12px 18px; }
  .tr2-real { border-left: none; border-top: 1px dashed var(--line); padding-top: 10px !important; }
  .tr2-row { padding: 6px 0; }
  .recog { grid-template-columns: 1fr; }
}
