/* ═══════════════════════════════════════════════════════════════
   EDITORIAL MPH+ — hub y artículos.
   Masthead oscuro (como el hero de MPH+) + lectura sobre papel claro.
   Se apoya en ../platform-home/home.css y ../mph-plus/member.css.
   Solo presentación: el contenido clínico de los artículos no cambia.
═══════════════════════════════════════════════════════════════ */

.ed :where(ol, ul) { list-style: none; margin: 0; padding: 0; }
.ed :where(a) { text-decoration: none; }

/* Puerta de acceso — versión estática (el script la muestra con display:flex) */
.mx-gate__card--static { display: block; }

/* Progreso de lectura (fijo bajo la barra del sitio) */
.ed-prog { position: fixed; left: 0; right: 0; top: var(--mx-nav); height: 3px; z-index: 150; pointer-events: none; }
.ed-prog i { display: block; height: 100%; background: var(--red); transform-origin: left; transform: scaleX(0); }

/* ── Masthead ────────────────────────────────────────────── */
.edm { position: relative; overflow: clip; isolation: isolate; background: var(--ink); color: #fff; border-bottom: 1px solid var(--mx-gold); }
.edm__glow { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(720px 380px at 92% -6%, rgba(204,41,54,.24), transparent 70%),
  radial-gradient(520px 320px at 0% 110%, rgba(232,150,12,.09), transparent 70%); }
.edm__num { position: absolute; right: clamp(8px, 3vw, 56px); top: clamp(16px, 3vw, 44px); z-index: -1; font-family: var(--font-display); font-weight: 800; font-size: clamp(160px, 24vw, 360px); line-height: .8; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1.5px rgba(240,242,244,.10); pointer-events: none; user-select: none; }
.edm__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(36px, 6vw, 96px); align-items: end; padding-top: clamp(48px, 6vw, 92px); padding-bottom: clamp(44px, 5vw, 76px); }
.edm__plate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: clamp(24px, 3vw, 38px); font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .15em; text-transform: uppercase; color: var(--mx-amber); }
.edm__plate .mx-seal { width: 22px; height: 22px; }
.edm__plate > span:not(.mx-seal) ~ span::before { content: '·'; margin-right: 12px; color: rgba(240,242,244,.4); }
.edm__plate .t2 { color: var(--mx-t2); }
.edm__t { font-weight: 800; line-height: .92; letter-spacing: .003em; font-size: clamp(40px, 5.2vw, 76px); color: #fff; text-wrap: balance; max-width: 17ch; }
.edm__t em { font-style: normal; color: #E03A48; }
.edm__lead { margin-top: clamp(24px, 2.8vw, 34px); font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: rgba(240,242,244,.9); max-width: 56ch; }
.edm__ficha { border-top: 2px solid var(--mx-amber); }
.edm__ficha dl { margin: 0; }
.edm__ficha div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 14px 0; border-bottom: 1px solid rgba(240,242,244,.14); }
.edm__ficha dt { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--mx-t3); }
.edm__ficha dd { margin: 0; font-size: 17px; font-weight: 500; text-align: right; color: #fff; }
.edm__ficha dd a { color: #fff; border-bottom: 1.5px solid var(--red); transition: color 180ms, border-color 180ms; }
.edm__ficha dd a:hover { color: var(--mx-amber); border-color: var(--mx-amber); }

/* ── Cuerpo del artículo ─────────────────────────────────── */
.edw { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 720px); gap: clamp(32px, 6vw, 96px); justify-content: center; padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(56px, 6vw, 96px); }
.edt { position: sticky; top: calc(var(--mx-nav) + 28px); align-self: start; font-size: 15px; }
.edt__h { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); padding-bottom: 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.edt ol { counter-reset: t; }
.edt a { position: relative; display: block; padding: 9px 0 9px 22px; line-height: 1.35; color: var(--text-2); counter-increment: t; transition: color 180ms; }
.edt a::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--steel); transition: color 180ms; }
.edt a:hover { color: var(--text); }
.edt a.is-on { color: var(--text); font-weight: 600; }
.edt a.is-on::before { color: var(--red); }
.edt-m { display: none; }

.edb { font-size: 18.5px; line-height: 1.78; color: #1A2B3C; counter-reset: sec; }
.edb :where(p) { margin: 0 0 1.25em; color: inherit; font-size: inherit; line-height: inherit; }
.edb :where(strong) { color: var(--text); font-weight: 600; }
.edb :where(em) { color: inherit; }
.edb h2 { counter-increment: sec; position: relative; margin: 2.3em 0 .7em; padding-top: 22px; border-top: 1px solid var(--line-2); font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(32px, 3.4vw, 44px); line-height: .98; color: var(--text); scroll-margin-top: calc(var(--mx-nav) + 24px); text-wrap: balance; }
.edb h2:first-child { margin-top: 0; }
.edb h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 12px; font-size: 16px; font-weight: 700; letter-spacing: .14em; color: var(--red); }
.edb h3 { margin: 1.9em 0 .55em; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 24px; line-height: 1.05; color: var(--text); }
.edb a { color: var(--red-d); text-decoration: underline; text-underline-offset: 3px; }
.edb ul.bl { margin: 0 0 1.3em; padding-left: 1.2em; list-style: disc; }
.edb ul.bl li { margin-bottom: .45em; padding-left: .2em; }
.edb ul.bl li::marker { color: var(--red); }

/* Notas destacadas */
.edb .callout { margin: 1.9em 0; padding: 22px 26px 20px; background: var(--mist); border-left: 4px solid var(--amber); border-radius: 0 8px 8px 0; }
.edb .callout.green { border-left-color: #3A7D44; }
.edb .callout.red { border-left-color: var(--red); }
.edb .callout-label { margin-bottom: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink); }
.edb .callout.green .callout-label { color: #2E6637; }
.edb .callout.red .callout-label { color: var(--red-d); }
.edb .callout p { margin: 0; font-size: 17.5px; line-height: 1.66; }
.edb .callout p + p { margin-top: .8em; }
.edb .callout p strong { color: var(--text); }

/* Tablas */
.edb .table-wrap { margin: 1.9em 0; overflow-x: auto; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); -webkit-overflow-scrolling: touch; }
.edb table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.edb th { text-align: left; padding: 13px 16px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.edb td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.edb tbody tr:nth-child(even) td { background: var(--mist); }
.edb td strong { color: var(--text); }
.edb td:first-child { color: var(--text); }

/* LEMON */
.edb .lemon-grid { margin: 1.9em 0; display: grid; grid-template-columns: 64px 1fr; border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; background: var(--paper); }
.edb .lemon-letter { display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 38px; border-top: 1px solid rgba(240,242,244,.14); }
.edb .lemon-letter:first-child { border-top: 0; }
.edb .lemon-content { padding: 16px 22px; border-top: 1px solid var(--line); }
.edb .lemon-content:nth-child(2) { border-top: 0; }
.edb .lemon-term { font-weight: 700; font-size: 17px; color: var(--text); margin-bottom: 4px; }
.edb .lemon-desc { font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* Planes A/B/C */
.edb .plan-cards { margin: 1.9em 0; display: grid; gap: 10px; }
.edb .plan-card { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: start; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px; }
.edb .plan-label { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: .04em; text-transform: uppercase; color: var(--red); line-height: 1.1; }
.edb .plan-text { font-size: 16.5px; line-height: 1.6; color: var(--text-2); }
.edb .plan-text strong { color: var(--text); }

/* Cifras */
.edb .stat-row { margin: 1.9em 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-2); }
.edb .stat-card { padding: 22px 22px 22px 0; }
.edb .stat-card + .stat-card { padding-left: 22px; border-left: 1px solid var(--line-2); }
.edb .stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 4.4vw, 56px); line-height: .95; color: var(--text); font-variant-numeric: tabular-nums; }
.edb .stat-num + .stat-num { font-size: 1rem !important; font-weight: 600; color: var(--text-3) !important; margin-top: 6px; }
.edb .stat-label { margin-top: 10px; font-size: 15.5px; line-height: 1.45; color: var(--text-2); }

/* Cadena de supervivencia */
.edb .chain-list { margin: 1.9em 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.edb .chain-item { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-2); }
.edb .chain-num { font-family: var(--font-display); font-weight: 800; font-size: 40px; line-height: 1; color: var(--red); }
.edb .chain-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1.05; letter-spacing: .02em; color: var(--text); margin-bottom: 8px; }
.edb .chain-desc { font-size: 17px; line-height: 1.62; color: var(--text-2); }

/* Referencias */
.edb .refs { margin: 3.2em 0 0; padding-top: 26px; border-top: 2px solid var(--ink); }
.edb .refs-title { font-family: var(--font-display); font-weight: 800; font-size: 28px; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.edb .refs ol { list-style: decimal; padding-left: 1.5em; }
.edb .refs li { font-size: 15.5px; line-height: 1.55; color: var(--text-2); margin-bottom: 9px; padding-left: .3em; }
.edb .refs li::marker { font-family: var(--font-display); font-weight: 700; color: var(--red); }
.edb .refs-note { margin-top: 18px; font-size: 15px; line-height: 1.55; color: var(--text-3); }

/* Fin de artículo: anterior / siguiente */
.edn { margin-top: 3.4em; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.edn a { display: grid; gap: 8px; padding: 20px 22px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper); color: var(--text); text-decoration: none; transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), border-color 200ms; }
.edn a:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: rgba(13,27,42,.3); }
.edn a:last-child { text-align: right; }
.edn__k { font-family: var(--font-display); font-weight: 700; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.edn__t { font-family: var(--font-display); font-weight: 800; font-size: 25px; line-height: 1; text-transform: uppercase; }
.edn--solo { grid-template-columns: 1fr; }

/* Aviso al pie */
.edb .edisc { margin-top: 2.4em; padding: 18px 22px; border: 1px solid var(--line-2); border-left: 4px solid var(--amber); border-radius: 6px; font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.edb .edisc strong { color: var(--text); }

/* ═══ HUB ═══════════════════════════════════════════════════ */
.edh__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(36px, 6vw, 96px); align-items: end; padding-top: clamp(52px, 6.4vw, 96px); padding-bottom: clamp(52px, 6vw, 84px); }
.edh__t { font-weight: 800; line-height: .88; font-size: clamp(60px, 9vw, 132px); color: #fff; }
.edh__t .hl { color: #E03A48; position: relative; display: inline-block; }
.edh__t .hl::after { content: ''; position: absolute; left: 0; right: 4%; bottom: .03em; height: .06em; background: currentColor; transform-origin: left; transform: scaleX(0); transition: transform 900ms var(--ease-out) 700ms; }
.is-ready .edh__t .hl::after { transform: scaleX(1); }
.edh__aside { border-top: 2px solid var(--mx-amber); padding-top: 18px; }
.edh__aside p { font-size: 18px; line-height: 1.6; color: rgba(240,242,244,.9); }
.edh__aside ul { margin-top: 18px; display: grid; gap: 10px; }
.edh__aside li { display: flex; gap: 10px; align-items: center; font-size: 16.5px; color: var(--on-ink-2); }
.edh__aside li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--mx-amber); flex: none; }

.edl { border-top: 2px solid var(--ink); }
.edl a { position: relative; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px clamp(20px, 3vw, 44px); align-items: start; padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line-2); color: var(--text); transition: padding-left 320ms var(--ease-out), background-color 240ms; }
.edl a::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); transform: scaleY(0); transition: transform 320ms var(--ease-out); }
.edl a:hover { padding-left: 22px; background: var(--mist); }
.edl a:hover::before { transform: scaleY(1); }
.edl__n { font-family: var(--font-display); font-weight: 800; font-size: clamp(56px, 6vw, 84px); line-height: .85; color: transparent; -webkit-text-stroke: 1.5px var(--text); font-variant-numeric: tabular-nums; transition: color 300ms; }
.edl a:hover .edl__n { color: var(--red); -webkit-text-stroke-color: var(--red); }
.edl__k { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--red-d); }
.edl__new { padding: 3px 10px; border-radius: 3px; background: var(--ink); color: #fff; font-size: 13px; letter-spacing: .12em; }
.edl__t { margin-top: 10px; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(30px, 3.6vw, 50px); line-height: .96; max-width: 20ch; text-wrap: balance; }
.edl__d { margin-top: 14px; font-size: 17.5px; line-height: 1.6; color: var(--text-2); max-width: 62ch; }
.edl__m { margin-top: 14px; font-size: 15px; color: var(--text-3); }
.edl__go { align-self: center; width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background-color 220ms, border-color 220ms, color 220ms; }
.edl__go svg { width: 21px; height: 21px; transition: transform 260ms var(--ease-out); }
.edl a:hover .edl__go { background: var(--red); border-color: var(--red); color: #fff; }
.edl a:hover .edl__go svg { transform: translateX(4px); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1020px) {
  .edm__grid, .edh__grid { grid-template-columns: 1fr; }
  .edw { grid-template-columns: minmax(0, 720px); }
  .edt { display: none; }
  .edt-m { display: block; margin-bottom: 28px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--mist); }
  .edt-m summary { cursor: pointer; padding: 14px 18px; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; list-style: none; display: flex; justify-content: space-between; align-items: center; }
  .edt-m summary::-webkit-details-marker { display: none; }
  .edt-m summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--red); }
  .edt-m[open] summary::after { content: '–'; }
  .edt-m ol { padding: 0 18px 12px; counter-reset: t; }
  .edt-m a { display: block; padding: 9px 0 9px 28px; position: relative; color: var(--text-2); counter-increment: t; font-size: 16px; line-height: 1.35; }
  .edt-m a::before { content: counter(t, decimal-leading-zero); position: absolute; left: 0; top: 10px; font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--red); }
}
@media (max-width: 640px) {
  .edb { font-size: 17.5px; }
  .edb .stat-row { grid-template-columns: 1fr; }
  .edb .stat-card, .edb .stat-card + .stat-card { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line-2); }
  .edb .stat-card:first-child { border-top: 0; }
  .edb .plan-card { grid-template-columns: 1fr; gap: 6px; }
  .edb .chain-item { grid-template-columns: 44px 1fr; gap: 12px; }
  .edb .chain-num { font-size: 32px; }
  .edn { grid-template-columns: 1fr; }
  .edn a:last-child { text-align: left; }
  .edl a { grid-template-columns: 1fr auto; }
  .edl__n { grid-column: 1 / -1; font-size: 52px; }
  .edl__go { display: none; }
  .edm__ficha div { flex-direction: column; align-items: flex-start; gap: 4px; }
  .edm__ficha dd { text-align: left; }
}
/* (bloque reduced-motion retirado) */

/* Movimiento: el sitio ya no se apaga con el ajuste «reducir movimiento» del teléfono (muchos Android lo activan con el ahorro de batería y dejaba todo estático). Las animaciones son suaves (fundidos y desplazamientos cortos). */

/* ── Consola: rejilla técnica + pulso vivo en la cabecera ───── */
.tbh::before, .edh::before, .edm::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 60% 20%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 80% 90% at 60% 20%, #000 15%, transparent 75%);
}
.tbh::after, .edh::after, .edm::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 48px; z-index: -1; pointer-events: none; opacity: .55;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='48' viewBox='0 0 240 48'%3E%3Cpath d='M0 26h70l6-3 6 3h22l5 6 8-26 8 34 6-14h26l8-5 9 5h60' fill='none' stroke='%23E8960C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") repeat-x 0 50% / 240px 48px; animation: mx-ecg-scroll 6s linear infinite;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent);
  filter: drop-shadow(0 0 5px rgba(232,150,12,.6));
}
@keyframes mx-ecg-scroll { from { background-position-x: 0; } to { background-position-x: -240px; } }
