/* ==========================================================
   Chakralifecoach — hoja de estilos
   Paleta «Petróleo y lavanda» · Bricolage Grotesque + Figtree
   Arquetipo editorial: capítulos numerados, columna de lectura
   y notas al margen
   ========================================================== */

:root {
  --ed-papel: #F4F7F7;
  --ed-blanco: #FFFFFF;
  --ed-petro: #0F5560;
  --ed-petro-osc: #0A3D45;
  --ed-petro-suave: #E2EEEF;
  --ed-petro-2: #B9D5D8;
  --ed-lav: #C8C1F5;
  --ed-lav-suave: #EEEBFD;
  --ed-lav-osc: #4C3FA0;
  --ed-tinta: #152226;
  --ed-gris: #4B5B5F;
  --ed-linea: #D3DEDF;
  --ed-linea-2: #E5ECEC;
  --ed-error: #B3261E;
  --ed-error-suave: #FCEBEA;

  --ed-titulos: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --ed-texto: "Figtree", "Segoe UI", system-ui, sans-serif;

  --ed-max: 1180px;
  --ed-pad: 16px;
  --ed-r: 12px;
  --ed-r-s: 6px;
  --ed-sombra: 0 1px 2px rgba(10, 61, 69, .06), 0 20px 40px -24px rgba(10, 61, 69, .35);
  --ed-rayas: repeating-linear-gradient(-45deg, var(--ed-lav) 0 3px, var(--ed-lav-suave) 3px 7px);
}
@media (min-width: 600px) { :root { --ed-pad: 24px; } }
@media (min-width: 1024px) { :root { --ed-pad: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ed-papel); color: var(--ed-tinta); font: 400 1.0625rem/1.7 var(--ed-texto); font-variant-numeric: tabular-nums; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--ed-titulos); font-weight: 700; line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.6rem); letter-spacing: -0.04em; line-height: 1; }
h2 { font-size: clamp(1.7rem, 1.25rem + 1.8vw, 2.6rem); letter-spacing: -0.035em; }
h3 { font-size: 1.22rem; font-weight: 650; letter-spacing: -0.015em; }
p, ul, ol, dl, table, figure { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25em; }
li + li { margin-top: .35em; }
strong, b { font-weight: 650; }
a { color: var(--ed-petro); text-decoration-color: var(--ed-lav); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ed-petro-osc); text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--ed-lav-osc); outline-offset: 2px; border-radius: 3px; }
::selection { background: var(--ed-lav); color: var(--ed-tinta); }
sup { line-height: 0; font-size: .7em; }
code { font: 600 .9em/1.4 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--ed-lav-suave); color: var(--ed-lav-osc); padding: .1em .35em; border-radius: 4px; overflow-wrap: anywhere; }

/* Rejillas de una columna: nunca más anchas que la pantalla */
.ed-portada__grid, .ed-cap__grid, .ed-panel__grid, .ed-indice__fila, .ed-pasos, .ed-ejercicios, .ed-dos-listas, .ed-lecturas, .ed-faq,
.ed-pie__grid, .ed-desplegable__grid, .ed-contacto, .ed-form, .ed-form__par, .ed-tramite, .ed-legal-grid, .ed-flujo, .ed-dos, .ed-divers,
.ed-glosario, .ed-figura__duo { grid-template-columns: minmax(0, 1fr); }

.ed-saltar { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ed-tinta); color: #fff; padding: 10px 16px; border-radius: var(--ed-r-s); font-weight: 600; text-decoration: none; }
.ed-saltar:focus { top: 12px; color: #fff; }
.ed-caja { width: min(100% - 2 * var(--ed-pad), var(--ed-max)); margin-inline: auto; }
.ed-gris { color: var(--ed-gris); }
.ed-chico { font-size: .92rem; }
.ed-nw { white-space: nowrap; }
.ed-sobre { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 700 .78rem/1.2 var(--ed-texto); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-petro); }
.ed-sobre::after { content: ""; flex: 0 0 36px; height: 1px; background: currentColor; opacity: .5; }
.ed-bajada { font-size: clamp(1.08rem, 1rem + .35vw, 1.24rem); line-height: 1.6; color: var(--ed-gris); max-width: 60ch; }
.ed-resalto { background: linear-gradient(transparent 58%, var(--ed-lav) 58%); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ed-ej { font-size: .9rem; font-weight: 650; margin: 16px 0 8px; }
.ed-aviso { margin: 0; padding: 12px 14px; font-size: .85rem; line-height: 1.55; color: var(--ed-gris); background: var(--ed-blanco); border: 1px solid var(--ed-linea); border-left: 4px solid var(--ed-lav-osc); border-radius: var(--ed-r-s); }

/* ---------- Botones ---------- */
.ed-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: 8px; font: 650 1rem/1.2 var(--ed-texto); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.ed-btn:hover { text-decoration: none; }
.ed-btn--petro { background: var(--ed-petro); color: #fff; }
.ed-btn--petro:hover { background: var(--ed-petro-osc); color: #fff; }
.ed-btn--borde { background: transparent; color: var(--ed-petro); border-color: var(--ed-petro); }
.ed-btn--borde:hover { background: var(--ed-petro-suave); color: var(--ed-petro-osc); }
.ed-btn--lav { background: var(--ed-lav); color: var(--ed-tinta); }
.ed-btn--lav:hover { background: #B7AEF0; color: var(--ed-tinta); }
.ed-btn--claro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .75); }
.ed-btn--claro:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ed-btn--chico { min-height: 40px; padding: 7px 14px; font-size: .94rem; }
.ed-btn--ancho { width: 100%; }
.ed-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ed-ir { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; text-decoration: none; }
.ed-ir::after { content: "→"; transition: transform .2s ease; }
.ed-ir:hover { text-decoration: underline; text-decoration-color: var(--ed-lav); }
@media (prefers-reduced-motion: no-preference) { .ed-ir:hover::after { transform: translateX(3px); } }

/* ==========================================================
   Cabecera: pastilla flotante y menú desplegable
   ========================================================== */
.ed-cab { position: sticky; top: 0; z-index: 50; padding-top: 12px; pointer-events: none; }
.ed-pastilla {
  position: relative; pointer-events: auto; display: flex; align-items: center; gap: 8px;
  width: min(100% - 24px, 1120px); margin: 0 auto; min-height: 58px; padding: 7px 8px 7px 16px;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--ed-linea); border-radius: 999px;
  box-shadow: 0 6px 18px -12px rgba(10, 61, 69, .35); transition: box-shadow .25s ease;
}
@supports (backdrop-filter: blur(8px)) { .ed-pastilla { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.4) blur(12px); } }
.ed-cab[data-sombra] .ed-pastilla { box-shadow: 0 14px 34px -16px rgba(10, 61, 69, .55); }
.ed-logo { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; min-width: 0; color: var(--ed-tinta); text-decoration: none; }
.ed-logo:hover { color: var(--ed-tinta); }
.ed-logo svg { width: 32px; height: 32px; flex: none; }
.ed-logo__nombre { font: 700 1.08rem/1 var(--ed-titulos); letter-spacing: -0.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-nav { display: none; }
.ed-nav ul { list-style: none; display: flex; gap: 2px; padding: 0; margin: 0; }
.ed-nav li { margin: 0; }
.ed-nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ed-tinta); font-weight: 600; font-size: .96rem; text-decoration: none; }
.ed-nav a:hover { background: var(--ed-petro-suave); }
.ed-nav a[aria-current="page"] { background: var(--ed-lav-suave); color: var(--ed-lav-osc); }
.ed-cab .ed-cab__cta { display: none; border-radius: 999px; }
@media (min-width: 560px) { .ed-cab .ed-cab__cta { display: inline-flex; } }
.ed-menu {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px; border: 1.5px solid var(--ed-tinta); border-radius: 999px;
  background: transparent; color: var(--ed-tinta); font: 650 .95rem/1 var(--ed-texto); text-decoration: none; cursor: pointer;
}
.ed-menu:hover { background: var(--ed-petro-suave); color: var(--ed-tinta); text-decoration: none; }
.ed-menu__ico { position: relative; width: 16px; height: 10px; }
.ed-menu__ico::before, .ed-menu__ico::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, top .2s ease; }
.ed-menu__ico::before { top: 0; }
.ed-menu__ico::after { top: 8px; }
.ed-menu[aria-expanded="true"] .ed-menu__ico::before { top: 4px; transform: rotate(45deg); }
.ed-menu[aria-expanded="true"] .ed-menu__ico::after { top: 4px; transform: rotate(-45deg); }
@media (min-width: 1000px) {
  .ed-nav { display: block; }
  .ed-menu { display: none !important; }
}
.ed-desplegable {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: calc(100dvh - 100px); overflow: auto;
  padding: 22px; background: var(--ed-blanco); border: 1px solid var(--ed-linea); border-radius: 22px; box-shadow: var(--ed-sombra);
}
@media (prefers-reduced-motion: no-preference) { .ed-desplegable:not([hidden]) { animation: ed-cae .22s ease; } }
@keyframes ed-cae { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.ed-desplegable__grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .ed-desplegable__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ed-desplegable__t { margin: 0 0 8px; font: 700 .74rem/1.2 var(--ed-texto); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-gris); }
.ed-desplegable ul { list-style: none; padding: 0; margin: 0; }
.ed-desplegable li { margin: 0; }
.ed-desplegable__nav a { display: block; padding: 7px 0; border-bottom: 1px solid var(--ed-linea-2); color: var(--ed-tinta); font: 700 1.3rem/1.2 var(--ed-titulos); letter-spacing: -0.02em; text-decoration: none; }
.ed-desplegable__nav a:hover, .ed-desplegable__nav a[aria-current="page"] { color: var(--ed-lav-osc); }
.ed-desplegable__cursos a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--ed-linea-2); color: var(--ed-tinta); text-decoration: none; font-weight: 600; }
.ed-desplegable__cursos a span { font-size: .8rem; font-weight: 600; color: var(--ed-gris); }
.ed-desplegable__cursos a:hover { color: var(--ed-petro); }
.ed-desplegable dl { margin: 14px 0; font-size: .95rem; }
.ed-desplegable dt { color: var(--ed-gris); font-size: .85rem; }
.ed-desplegable dd { margin: 0 0 8px; }

/* ==========================================================
   Portada y figura 1 (ejemplo interactivo)
   ========================================================== */
.ed-portada { padding: 40px 0 28px; }
@media (min-width: 900px) { .ed-portada { padding: 64px 0 36px; } }
.ed-portada__grid { display: grid; gap: 32px; align-items: end; }
@media (min-width: 1000px) { .ed-portada__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } }
.ed-portada h1 { margin-bottom: 24px; max-width: 16ch; }
.ed-portada .ed-bajada { margin-bottom: 26px; }
.ed-portada__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 26px 0 0; padding: 14px 0 0; border-top: 1px solid var(--ed-linea); font-size: .92rem; color: var(--ed-gris); list-style: none; padding-left: 0; }
.ed-portada__meta li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.ed-portada__meta li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ed-lav-osc); }
.ed-sumario { border-top: 3px solid var(--ed-tinta); padding-top: 12px; }
.ed-sumario__t { margin: 0 0 6px; font: 700 .78rem/1.2 var(--ed-texto); letter-spacing: .14em; text-transform: uppercase; }
.ed-sumario ol { list-style: none; padding: 0; margin: 0; counter-reset: ed-s; }
.ed-sumario li { margin: 0; counter-increment: ed-s; }
.ed-sumario a { display: grid; grid-template-columns: 30px 1fr; gap: 6px; padding: 7px 0; border-bottom: 1px solid var(--ed-linea); color: var(--ed-tinta); text-decoration: none; font-weight: 600; font-size: .96rem; }
.ed-sumario a::before { content: "0" counter(ed-s); font: 700 .86rem/1.6 var(--ed-titulos); color: var(--ed-lav-osc); }
.ed-sumario a:hover { color: var(--ed-petro); }

.ed-fig { background: var(--ed-blanco); border: 1px solid var(--ed-linea); border-radius: 18px; box-shadow: var(--ed-sombra); overflow: hidden; }
.ed-fig__cab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 18px 20px 0; }
@media (min-width: 760px) { .ed-fig__cab { padding: 24px 28px 0; } }
.ed-fig__num { font: 700 .78rem/1.2 var(--ed-texto); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-lav-osc); }
.ed-fig__cab h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); margin: 0; }
.ed-pestanas { display: flex; gap: 4px; margin: 16px 20px 0; border-bottom: 1px solid var(--ed-linea); overflow-x: auto; scrollbar-width: none; }
.ed-pestanas::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .ed-pestanas { margin: 18px 28px 0; gap: 18px; } }
.ed-pestana {
  flex: 1 1 0; min-width: 0; display: flex; align-items: baseline; gap: 6px; min-height: 46px; padding: 10px 4px 10px; border: 0; border-bottom: 3px solid transparent;
  margin-bottom: -1px; background: none; color: var(--ed-gris); font: 650 .96rem/1.2 var(--ed-texto); text-align: left; cursor: pointer;
}
@media (min-width: 760px) { .ed-pestana { flex: 0 0 auto; font-size: 1.02rem; } }
.ed-pestana b { font: 700 .82rem/1 var(--ed-titulos); color: var(--ed-lav-osc); }
.ed-pestana:hover { color: var(--ed-tinta); }
.ed-pestana[aria-selected="true"] { color: var(--ed-tinta); border-bottom-color: var(--ed-petro); }
html:not(.js) .ed-pestanas { display: none; }
.ed-panel { padding: 18px 20px 22px; }
@media (min-width: 760px) { .ed-panel { padding: 22px 28px 28px; } }
html:not(.js) .ed-panel + .ed-panel { border-top: 1px solid var(--ed-linea); }
.ed-panel__titulo { font-size: 1.15rem; margin: 0 0 6px; }
html.js .ed-panel__titulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ed-panel__intro { margin: 0 0 18px; color: var(--ed-gris); max-width: 70ch; }
.ed-panel__grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 880px) { .ed-panel__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 36px; } }
.ed-campos { display: grid; gap: 14px; }
.ed-campo { display: grid; gap: 6px; }
.ed-campo label { font-weight: 650; font-size: .95rem; }
.ed-campo__marco { display: flex; align-items: center; min-height: 48px; border: 1.5px solid #A9BABD; border-radius: 8px; background: var(--ed-blanco); transition: border-color .15s ease, box-shadow .15s ease; }
.ed-campo__marco:focus-within { border-color: var(--ed-petro); box-shadow: 0 0 0 3px rgba(15, 85, 96, .2); }
.ed-campo__u { padding: 0 4px 0 13px; color: var(--ed-gris); font-weight: 600; }
.ed-campo__u:last-child { padding: 0 13px 0 4px; }
.ed-campo input { flex: 1; min-width: 0; width: 100%; height: 44px; padding: 0 12px; border: 0; background: transparent; color: var(--ed-tinta); font: 650 1.05rem/1 var(--ed-texto); font-variant-numeric: tabular-nums; }
.ed-campo input:focus { outline: none; }
.ed-campo[data-error] .ed-campo__marco { border-color: var(--ed-error); background: var(--ed-error-suave); }
.ed-campo__error { margin: 0; font-size: .88rem; font-weight: 650; color: var(--ed-error); }
.ed-campo__error::before { content: "⚠ "; }
.ed-panel__msg { margin: 12px 0 0; font-size: .92rem; font-weight: 650; color: var(--ed-error); }
.ed-panel__msg:empty { display: none; }
.ed-res { border-top: 3px solid var(--ed-tinta); padding-top: 12px; }
.ed-res__kicker { margin: 0; font: 700 .78rem/1.2 var(--ed-texto); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-gris); }
.ed-res__grande { display: block; margin: 4px 0 14px; font: 750 clamp(2.1rem, 1.6rem + 2.2vw, 3.2rem)/1 var(--ed-titulos); letter-spacing: -0.035em; color: var(--ed-petro); font-variant-numeric: tabular-nums; }
.ed-res dl { margin: 14px 0 0; }
.ed-res dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ed-linea-2); }
.ed-res dt { color: var(--ed-gris); font-size: .96rem; }
.ed-res dd { margin: 0; font-weight: 700; font-size: 1.08rem; white-space: nowrap; }
.ed-barra { display: flex; height: 22px; border-radius: 4px; overflow: hidden; background: var(--ed-linea-2); }
.ed-barra + .ed-barra { margin-top: 6px; }
.ed-barra__seg { display: block; height: 100%; background: var(--ed-petro); transition: width .4s ease; }
.ed-barra__seg--rayas { background: var(--ed-rayas); }
.ed-barra__seg--suave { background: var(--ed-petro-2); }
@media (prefers-reduced-motion: reduce) { .ed-barra__seg { transition: none; } }
.ed-barras-et { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; }
.ed-barras-et + .ed-barras-et { margin-top: 6px; }
.ed-barras-et .ed-barra + .ed-barra { margin-top: 0; }
.ed-leyenda { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 10px 0 0; font-size: .86rem; color: var(--ed-gris); }
.ed-leyenda li { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.ed-leyenda i { width: 16px; height: 11px; border-radius: 2px; background: var(--ed-petro); }
.ed-leyenda i.ed-i-rayas { background: var(--ed-rayas); border: 1px solid #A79DEA; }
.ed-leyenda i.ed-i-suave { background: var(--ed-petro-2); }
.ed-leyenda i.ed-i-linea { height: 0; border-top: 3px dashed var(--ed-lav-osc); background: none; border-radius: 0; }
.ed-nota-pie { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--ed-linea); font-size: .9rem; color: var(--ed-gris); }
.ed-nota-pie strong { color: var(--ed-tinta); }
.ed-panel__pie { margin-top: 14px; }

/* ==========================================================
   Capítulos: número, columna de lectura y notas al margen
   ========================================================== */
.ed-cap { padding: 56px 0; border-top: 1px solid var(--ed-linea); }
@media (min-width: 900px) { .ed-cap { padding: 84px 0; } }
.ed-cap--blanco { background: var(--ed-blanco); }
.ed-cap__grid { display: grid; }
.ed-cap__num { margin-bottom: 14px; }
.ed-cap__numero { display: flex; align-items: baseline; gap: 12px; }
.ed-cap__numero b { font: 800 3rem/0.9 var(--ed-titulos); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--ed-petro); }
.ed-cap__numero span { font: 700 .74rem/1.2 var(--ed-texto); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-gris); }
.ed-cap__main { min-width: 0; }
.ed-cap__main > :last-child { margin-bottom: 0; }
.ed-cap__notas { min-width: 0; margin-top: 26px; display: grid; gap: 12px; align-content: start; }
.ed-cap__ancho, .ed-cap__fin { min-width: 0; margin-top: 34px; }
@media (min-width: 760px) {
  .ed-cap__grid { grid-template-columns: 96px minmax(0, 1fr); column-gap: 32px; }
  .ed-cap__num { grid-column: 1; grid-row: 1 / span 4; margin: 0; }
  .ed-cap__numero { position: sticky; top: 100px; flex-direction: column; align-items: flex-start; gap: 6px; }
  .ed-cap__numero b { font-size: 4.2rem; }
  .ed-cap__main, .ed-cap__notas, .ed-cap__ancho, .ed-cap__fin { grid-column: 2; }
}
@media (min-width: 1120px) {
  .ed-cap__grid { grid-template-columns: 120px minmax(0, 1fr) 270px; column-gap: 48px; }
  .ed-cap__num { grid-row: 1 / span 3; }
  .ed-cap__numero b { font-size: 5.2rem; }
  .ed-cap__main { grid-column: 2; grid-row: 1; }
  .ed-cap__notas { grid-column: 3; grid-row: 1; margin-top: 6px; }
  .ed-cap__ancho { grid-column: 2 / 4; grid-row: 2; }
  .ed-cap__fin { grid-column: 2 / 4; grid-row: 3; }
}
.ed-cap__main h2 { max-width: 20ch; }
.ed-cap__main > .ed-bajada { max-width: 62ch; }
.ed-nota { padding: 14px 16px; border-left: 3px solid var(--ed-lav); background: var(--ed-lav-suave); border-radius: 0 var(--ed-r-s) var(--ed-r-s) 0; font-size: .93rem; line-height: 1.55; }
.ed-cap--blanco .ed-nota { background: var(--ed-lav-suave); }
.ed-nota__t { display: block; margin-bottom: 4px; font: 700 .72rem/1.3 var(--ed-texto); letter-spacing: .12em; text-transform: uppercase; color: var(--ed-lav-osc); }
.ed-nota p, .ed-nota ul, .ed-nota dl { margin: 0; }
.ed-nota p + p { margin-top: 6px; }
.ed-nota ul { padding-left: 1.1em; }
.ed-nota dl dt { font-weight: 700; margin-top: 8px; }
.ed-nota dl dt:first-child { margin-top: 0; }
.ed-nota dl dd { margin: 0; }
.ed-nota--petro { border-left-color: var(--ed-petro); background: var(--ed-petro-suave); }
.ed-cap--blanco .ed-nota--petro { background: var(--ed-petro-suave); }
.ed-nota--petro .ed-nota__t { color: var(--ed-petro); }

/* Aparición escalonada */
.js .ed-aparece { opacity: 0; transform: translateY(16px); }
.js .ed-aparece[data-visto] { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--ed-i, 0) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  .js .ed-aparece { opacity: 1; transform: none; }
  .ed-btn, .ed-pastilla, .ed-menu__ico::before, .ed-menu__ico::after { transition: none; }
}

/* ==========================================================
   Índice de cursos
   ========================================================== */
.ed-indice { border-top: 3px solid var(--ed-tinta); }
.ed-indice__nivel { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; padding: 14px 0 6px; font: 700 .76rem/1.3 var(--ed-texto); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-gris); }
.ed-indice__nivel + .ed-indice__lista { border-top: 1px solid var(--ed-linea); }
.ed-indice__lista { list-style: none; padding: 0; margin: 0 0 8px; }
.ed-indice__lista > li { margin: 0; }
.ed-indice__fila { display: grid; gap: 10px 22px; padding: 20px 0; border-bottom: 1px solid var(--ed-linea); }
@media (min-width: 760px) { .ed-indice__fila { grid-template-columns: 64px minmax(0, 1fr) auto; align-items: start; } }
.ed-indice__n { font: 800 2.2rem/1 var(--ed-titulos); letter-spacing: -0.05em; color: var(--ed-lav-osc); }
.ed-indice__fila h3 { font-size: clamp(1.3rem, 1.15rem + .6vw, 1.65rem); margin: 0 0 6px; }
.ed-indice__fila h3 a { color: var(--ed-tinta); text-decoration: none; }
.ed-indice__fila h3 a:hover { color: var(--ed-petro); text-decoration: underline; text-decoration-color: var(--ed-lav); }
.ed-indice__fila p { margin: 0 0 8px; color: var(--ed-gris); max-width: 62ch; }
.ed-indice__temas { margin: 0; font-size: .9rem; color: var(--ed-gris); }
.ed-indice__temas b { color: var(--ed-tinta); font-weight: 650; }
.ed-indice__acciones { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
@media (min-width: 760px) { .ed-indice__acciones { flex-direction: column; align-items: flex-end; padding-top: 4px; } }

/* ==========================================================
   «¿Por dónde empiezo?» en forma de frase
   ========================================================== */
.ed-frase { background: var(--ed-blanco); border: 1px solid var(--ed-linea); border-radius: 18px; padding: 22px; box-shadow: var(--ed-sombra); }
@media (min-width: 760px) { .ed-frase { padding: 32px 36px; } }
.ed-frase__texto { margin: 0; font: 600 clamp(1.18rem, 1.05rem + .6vw, 1.5rem)/2.1 var(--ed-titulos); letter-spacing: -0.015em; }
.ed-frase__texto label { font-weight: 600; }
.ed-frase__parte { display: inline; }
.ed-sel {
  appearance: none; -webkit-appearance: none; max-width: 100%; margin: 0 2px; padding: 0 30px 2px 10px; min-height: 44px; vertical-align: baseline;
  border: 0; border-bottom: 3px solid var(--ed-lav-osc); border-radius: 6px 6px 0 0; background-color: var(--ed-lav-suave); color: var(--ed-lav-osc);
  font: 700 1em/1.3 var(--ed-titulos); cursor: pointer; text-overflow: ellipsis; white-space: nowrap;
  background-image: linear-gradient(45deg, transparent 50%, var(--ed-lav-osc) 50%), linear-gradient(135deg, var(--ed-lav-osc) 50%, transparent 50%);
  background-position: calc(100% - 16px) 55%, calc(100% - 10px) 55%; background-size: 6px 6px; background-repeat: no-repeat;
}
.ed-sel:focus-visible { outline: 3px solid var(--ed-petro); outline-offset: 2px; }
.ed-sel[aria-invalid="true"] { border-bottom-color: var(--ed-error); background-color: var(--ed-error-suave); color: var(--ed-error); }
@media (max-width: 599px) {
  .ed-frase__texto { line-height: 1.4; }
  .ed-frase__parte { display: block; margin-bottom: 14px; }
  .ed-frase__punto { display: none; }
  .ed-sel { display: block; width: 100%; margin: 6px 0 0; font-size: .9em; white-space: normal; }
}
.ed-frase__error { margin: 18px 0 0; padding: 10px 12px; border-radius: var(--ed-r-s); background: var(--ed-error-suave); color: var(--ed-error); font-weight: 650; }
.ed-frase__nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ed-linea); }
.ed-frase__res { margin-top: 22px; padding: 20px; border-radius: var(--ed-r); background: var(--ed-petro-suave); border: 1px solid var(--ed-petro-2); }
.ed-frase__res h3 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); margin: 4px 0 8px; }
.ed-frase__res h3:focus { outline: none; }
.ed-frase__res .ed-acciones { margin: 14px 0 10px; }
.ed-frase__sinjs { margin: 0; padding: 14px; border-radius: var(--ed-r-s); background: var(--ed-lav-suave); }
.js .ed-sinjs { display: none !important; }
html:not(.js) .ed-solo-js { display: none !important; }

/* ==========================================================
   Método, práctica, para quién
   ========================================================== */
.ed-pasos { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; counter-reset: ed-p; border-top: 3px solid var(--ed-tinta); }
@media (min-width: 700px) { .ed-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.ed-pasos li { align-content: start; margin: 0; counter-increment: ed-p; padding: 18px 0 20px; border-bottom: 1px solid var(--ed-linea); display: grid; grid-template-columns: 58px 1fr; gap: 0 12px; }
.ed-pasos li::before { content: counter(ed-p); grid-row: span 2; font: 800 2.6rem/1 var(--ed-titulos); letter-spacing: -0.05em; color: var(--ed-lav-osc); }
.ed-pasos li:last-child::before { color: var(--ed-petro); }
.ed-pasos h3 { margin: 4px 0 6px; }
.ed-pasos p { margin: 0; color: var(--ed-gris); }

.ed-ejercicios { display: grid; gap: 16px; }
@media (min-width: 900px) { .ed-ejercicios { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ed-ejercicio-c { display: flex; flex-direction: column; padding: 22px; background: var(--ed-blanco); border: 1px solid var(--ed-linea); border-radius: var(--ed-r); }
.ed-cap--blanco .ed-ejercicio-c { background: var(--ed-papel); }
.ed-ejercicio-c__tag { margin: 0 0 10px; font: 700 .74rem/1.3 var(--ed-texto); letter-spacing: .12em; text-transform: uppercase; color: var(--ed-lav-osc); }
.ed-ejercicio-c h3 { margin-bottom: 8px; }
.ed-ejercicio-c p { color: var(--ed-gris); }
.ed-etiquetas { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: auto 0 0; }
.ed-etiquetas li { margin: 0; padding: 3px 10px; border: 1px solid var(--ed-linea); border-radius: 999px; font-size: .84rem; background: var(--ed-blanco); }

.ed-dos-listas { display: grid; gap: 28px; }
@media (min-width: 760px) { .ed-dos-listas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; } }
.ed-dos-listas h3 { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin: 0; border-bottom: 3px solid var(--ed-tinta); }
.ed-dos-listas h3 span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 800 1.1rem/1 var(--ed-titulos); }
.ed-si h3 span { background: var(--ed-petro); color: #fff; }
.ed-no h3 span { background: var(--ed-lav); color: var(--ed-tinta); }
.ed-dos-listas ul { list-style: none; padding: 0; margin: 0; }
.ed-dos-listas li { margin: 0; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--ed-linea); position: relative; }
.ed-dos-listas li::before { position: absolute; left: 4px; top: 11px; font: 800 1.1rem/1.4 var(--ed-titulos); }
.ed-si li::before { content: "+"; color: var(--ed-petro); }
.ed-no li::before { content: "−"; color: var(--ed-lav-osc); }

/* ==========================================================
   Planes en tabla comparativa
   ========================================================== */
.ed-planes { border-top: 3px solid var(--ed-tinta); }
.ed-tabla-planes { width: 100%; border-collapse: collapse; margin: 0; font-size: .95rem; }
.ed-tabla-planes caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ed-tabla-planes th, .ed-tabla-planes td { padding: 11px 8px; border-bottom: 1px solid var(--ed-linea); text-align: center; vertical-align: middle; }
.ed-tabla-planes th:first-child, .ed-tabla-planes td:first-child { text-align: left; padding-left: 0; }
.ed-tabla-planes thead th { vertical-align: bottom; padding-top: 16px; }
.ed-tabla-planes thead th span { display: block; font: 750 clamp(1.05rem, .9rem + .7vw, 1.5rem)/1.1 var(--ed-titulos); letter-spacing: -0.02em; color: var(--ed-tinta); }
.ed-tabla-planes thead th small { display: block; margin-top: 4px; font-size: .78rem; font-weight: 600; color: var(--ed-gris); }
.ed-tabla-planes tbody th { font-weight: 600; }
.ed-tabla-planes .ed-dest { background: var(--ed-lav-suave); }
.ed-tabla-planes thead .ed-dest { border-top: 4px solid var(--ed-lav-osc); border-radius: 8px 8px 0 0; }
.ed-tabla-planes thead .ed-dest small { color: var(--ed-lav-osc); }
.ed-tabla-planes tfoot td, .ed-tabla-planes tfoot th { font-weight: 650; border-bottom: 0; }
.ed-si-tilde { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ed-petro); color: #fff; font: 800 .9rem/1 var(--ed-titulos); }
.ed-no-tilde { color: var(--ed-gris); }
.ed-elige { display: inline-block; font-size: .82rem; font-weight: 650; color: var(--ed-lav-osc); line-height: 1.25; }
@media (max-width: 479px) { .ed-tabla-planes { font-size: .86rem; } .ed-tabla-planes th, .ed-tabla-planes td { padding: 10px 4px; } }
.ed-planes__botones { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 760px) { .ed-planes__botones { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ed-cobro { margin: 18px 0 0; padding: 12px 0 0; border-top: 1px solid var(--ed-linea); font-weight: 600; }

/* ==========================================================
   Lecturas, preguntas, cierre
   ========================================================== */
.ed-lecturas { list-style: none; padding: 0; margin: 0; display: grid; border-top: 3px solid var(--ed-tinta); counter-reset: ed-l; }
@media (min-width: 900px) { .ed-lecturas { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; } }
.ed-lecturas li { margin: 0; counter-increment: ed-l; border-bottom: 1px solid var(--ed-linea); }
.ed-lecturas a { display: flex; flex-direction: column; height: 100%; padding: 18px 0 20px; color: var(--ed-tinta); text-decoration: none; }
.ed-lecturas a::before { content: "Guía " counter(ed-l); font: 700 .74rem/1.3 var(--ed-texto); letter-spacing: .12em; text-transform: uppercase; color: var(--ed-lav-osc); margin-bottom: 8px; }
.ed-lecturas h3 { font-size: 1.3rem; margin-bottom: 8px; }
.ed-lecturas p { color: var(--ed-gris); }
.ed-lecturas .ed-ir { margin-top: auto; color: var(--ed-petro); }
.ed-lecturas a:hover h3 { text-decoration: underline; text-decoration-color: var(--ed-lav); text-decoration-thickness: 2px; }

.ed-faq { border-top: 3px solid var(--ed-tinta); }
.ed-faq__item { border-bottom: 1px solid var(--ed-linea); }
.ed-faq__item h3 { margin: 0; font-size: 1.1rem; }
.ed-faq__btn { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; padding: 18px 0; border: 0; background: none; color: var(--ed-tinta); font: 650 1.12rem/1.35 var(--ed-titulos); letter-spacing: -0.01em; text-align: left; cursor: pointer; }
.ed-faq__btn:hover { color: var(--ed-petro); }
.ed-faq__icono { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ed-lav-suave); }
.ed-faq__icono::before, .ed-faq__icono::after { content: ""; position: absolute; left: 8px; right: 8px; top: 13px; height: 2px; background: var(--ed-lav-osc); border-radius: 2px; transition: transform .2s ease; }
.ed-faq__icono::after { transform: rotate(90deg); }
.ed-faq__btn[aria-expanded="true"] .ed-faq__icono { background: var(--ed-lav); }
.ed-faq__btn[aria-expanded="true"] .ed-faq__icono::after { transform: rotate(0); }
.ed-faq__panel { padding: 0 44px 18px 0; color: var(--ed-gris); }
.ed-faq__panel p:last-child { margin-bottom: 0; }

.ed-cierre { position: relative; overflow: hidden; padding: 40px 24px; border-radius: 22px; background: var(--ed-petro-osc); color: #fff; }
@media (min-width: 760px) { .ed-cierre { padding: 64px 56px; } }
.ed-cierre::before { content: "¶"; position: absolute; right: 24px; top: -30px; font: 800 13rem/1 var(--ed-titulos); color: var(--ed-lav); opacity: .18; pointer-events: none; }
.ed-cierre h2 { color: #fff; max-width: 18ch; position: relative; }
.ed-cierre p { color: #D4E4E6; max-width: 56ch; position: relative; }
.ed-cierre .ed-acciones { position: relative; margin-top: 24px; }
.ed-cierre :focus-visible { outline-color: var(--ed-lav); }

/* ==========================================================
   Pie de página
   ========================================================== */
.ed-pie { margin-top: 0; background: var(--ed-petro-osc); color: #CFE0E2; padding: 56px 0 26px; font-size: .97rem; }
.ed-pie a { color: #fff; }
.ed-pie a:hover { color: var(--ed-lav); }
.ed-pie :focus-visible { outline-color: var(--ed-lav); }
.ed-pie__marca { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.ed-pie__nombre { margin: 0; font: 800 clamp(2rem, 1rem + 5.5vw, 5.4rem)/0.95 var(--ed-titulos); letter-spacing: -0.05em; color: #fff; overflow-wrap: anywhere; }
.ed-pie__desc { max-width: 62ch; margin: 18px 0 0; }
.ed-pie__grid { display: grid; gap: 28px; padding: 30px 0; }
@media (min-width: 640px) { .ed-pie__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ed-pie__grid { grid-template-columns: 1fr 1fr 1.3fr; } }
.ed-pie h2 { margin: 0 0 12px; font: 700 .76rem/1.2 var(--ed-texto); letter-spacing: .14em; text-transform: uppercase; color: var(--ed-lav); }
.ed-pie__links { list-style: none; padding: 0; margin: 0; }
.ed-pie__links li { margin: 0 0 8px; }
.ed-pie__links a { text-decoration: none; }
.ed-pie__links a:hover { text-decoration: underline; }
.ed-pie dl { margin: 0 0 16px; }
.ed-pie dt { font-size: .85rem; color: #A8C4C8; }
.ed-pie dd { margin: 0 0 10px; color: #fff; }
.ed-pie__botones { display: flex; flex-wrap: wrap; gap: 10px; }
.ed-pie__boton { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1.5px solid #fff; border-radius: 8px; color: #fff; font-weight: 650; text-decoration: none; }
.ed-pie__boton:hover { background: #fff; color: var(--ed-petro-osc); }
.ed-pie__legal { padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--ed-r); font-size: .88rem; line-height: 1.6; }
.ed-pie__legal p:last-child { margin: 0; }
.ed-pie__legal a { color: var(--ed-lav); }
.ed-pie .ed-btn--lav, .ed-pie .ed-btn--lav:hover { color: var(--ed-tinta); }
.ed-pie__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; font-size: .88rem; }
.ed-pie__base p { margin: 0; }
.ed-pie__base ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0; }
.ed-pie__base li { margin: 0; }

.ed-subir { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--ed-petro); color: #fff; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(10, 61, 69, .8); }
.ed-subir:hover { background: var(--ed-petro-osc); }
.ed-subir svg { width: 20px; height: 20px; }

/* ==========================================================
   Páginas internas
   ========================================================== */
.ed-pagcab { padding: 36px 0 44px; }
@media (min-width: 900px) { .ed-pagcab { padding: 56px 0 64px; } }
.ed-pagcab h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 4rem); max-width: 18ch; margin-bottom: 20px; }
.ed-pagcab .ed-bajada { margin: 0; }
.ed-migas { margin-bottom: 22px; font-size: .9rem; color: var(--ed-gris); }
.ed-migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.ed-migas li { margin: 0; }
.ed-migas li + li::before { content: "›"; margin-right: 6px; color: var(--ed-lav-osc); }
.ed-saltos { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 14px 0 0; margin: 26px 0 0; border-top: 1px solid var(--ed-linea); }
.ed-saltos li { margin: 0; }
.ed-saltos a { display: inline-flex; align-items: baseline; gap: 8px; padding: 4px 0; color: var(--ed-tinta); font-weight: 600; text-decoration: none; }
.ed-saltos a b { font: 800 .9rem/1 var(--ed-titulos); color: var(--ed-lav-osc); }
.ed-saltos a:hover { color: var(--ed-petro); text-decoration: underline; text-decoration-color: var(--ed-lav); }

/* Cursos */
.ed-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.ed-chips li { margin: 0; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--ed-petro-suave); color: var(--ed-petro); }
.ed-chips li.ed-chip--lav { background: var(--ed-lav); color: var(--ed-tinta); }
.ed-cap__main h3.ed-sub { font-size: 1.3rem; margin: 30px 0 12px; }
.ed-modulos { list-style: none; padding: 0; margin: 0; counter-reset: ed-m; border-top: 1px solid var(--ed-linea); }
.ed-modulos li { margin: 0; counter-increment: ed-m; display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--ed-linea); }
.ed-modulos li::before { content: counter(ed-m, decimal-leading-zero); font: 800 1.15rem/1.45 var(--ed-titulos); color: var(--ed-lav-osc); }
.ed-modulos strong { display: block; font-family: var(--ed-titulos); font-size: 1.06rem; }

.ed-figura { margin: 0; background: var(--ed-blanco); border: 1px solid var(--ed-linea); border-radius: 18px; box-shadow: var(--ed-sombra); overflow: hidden; }
.ed-cap--blanco .ed-figura { background: var(--ed-blanco); }
.ed-figura__cab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--ed-linea); }
.ed-figura__cab h3 { margin: 0; font-size: 1.25rem; }
.ed-figura__cuerpo { padding: 20px; }
@media (min-width: 760px) { .ed-figura__cab { padding: 20px 28px 16px; } .ed-figura__cuerpo { padding: 24px 28px 26px; } }
.ed-figura__duo { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .ed-figura__duo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } }
.ed-cuenta { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; background: var(--ed-papel); border: 1px dashed #A9BABD; }
.ed-cuenta__t { margin: 0 0 6px; font-weight: 700; color: var(--ed-petro); }
.ed-cuenta ul { list-style: none; padding: 0; margin: 0; }
.ed-cuenta li { margin: 0; padding: 5px 0; }
.ed-cuenta li + li { border-top: 1px solid var(--ed-linea-2); }
.ed-cuenta strong { font-weight: 750; }
.ed-cierre-caso { margin: 18px 0 0; }

.ed-tabla-caja { overflow-x: auto; margin: 0 0 18px; }
.ed-tabla { width: 100%; border-collapse: collapse; margin: 0; font-size: .95rem; }
.ed-tabla caption { text-align: left; padding: 0 0 8px; font: 700 .76rem/1.3 var(--ed-texto); letter-spacing: .12em; text-transform: uppercase; color: var(--ed-gris); }
.ed-tabla th, .ed-tabla td { padding: 9px 10px; border-bottom: 1px solid var(--ed-linea); text-align: left; vertical-align: top; }
.ed-tabla thead th { border-bottom: 2px solid var(--ed-tinta); font-size: .86rem; font-weight: 700; white-space: nowrap; }
.ed-tabla th:first-child, .ed-tabla td:first-child { padding-left: 0; }
.ed-tabla .ed-d { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ed-tabla tr[data-marca] > * { background: var(--ed-lav-suave); }
.ed-tabla tr[data-marca] > :first-child { padding-left: 8px; }
.ed-tabla tfoot th, .ed-tabla tfoot td { border-top: 2px solid var(--ed-tinta); border-bottom: 0; font-weight: 700; }

.ed-grafico { margin: 0 0 18px; }
.ed-grafico__marco { overflow-x: auto; }
.ed-grafico svg { width: 100%; min-width: 520px; max-width: 760px; height: auto; font-family: var(--ed-texto); }
.ed-grafico figcaption { margin-top: 8px; font-size: .88rem; color: var(--ed-gris); }
.ed-grafico__pista { display: none; margin: 0 0 6px; font-size: .82rem; color: var(--ed-gris); }
@media (max-width: 599px) { .ed-grafico__pista { display: block; } }
.ed-svg-guia { stroke: var(--ed-linea-2); stroke-width: 1; }
.ed-svg-eje { stroke: #9FB2B5; stroke-width: 1; }
.ed-svg-txt { fill: var(--ed-gris); font-size: 12px; }
.ed-svg-num { fill: var(--ed-tinta); font-size: 12.5px; font-weight: 700; }

/* Pictograma de cuotapartes */
.ed-picto { margin: 0 0 18px; }
.ed-picto__grilla { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; max-width: 460px; }
.ed-picto__grilla i { aspect-ratio: 1; border-radius: 4px; background: var(--ed-petro); }
.ed-picto__grilla i.ed-i-rayas { background: var(--ed-rayas); border: 1px solid #A79DEA; }
.ed-picto figcaption { margin-top: 8px; font-size: .88rem; color: var(--ed-gris); }

/* Línea de tiempo del fideicomiso */
.ed-tiempo { margin: 0 0 18px; }
.ed-tiempo__fila { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-bottom: 14px; }
@media (min-width: 600px) { .ed-tiempo__fila { grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 14px; } }
.ed-tiempo__fila > b { font-size: .92rem; }
.ed-tiempo__barra { display: flex; height: 34px; border-radius: 6px; overflow: hidden; border: 1px solid var(--ed-linea); }
.ed-tiempo__barra span { display: flex; align-items: center; padding: 0 8px; font-size: .78rem; font-weight: 700; white-space: nowrap; overflow: hidden; }
.ed-tiempo__obra { background: var(--ed-rayas); color: var(--ed-tinta); }
.ed-tiempo__obra em { font-style: normal; background: rgba(255, 255, 255, .9); padding: 0 5px; border-radius: 3px; }
.ed-tiempo__renta { background: var(--ed-petro); color: #fff; }
.ed-tiempo__escala { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ed-gris); }
@media (min-width: 600px) { .ed-tiempo__escala { margin-left: 164px; } }

/* Calendario de la ON */
.ed-cal { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ed-tinta); }
@media (min-width: 600px) { .ed-cal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ed-cal { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ed-cal li { margin: 0; padding: 10px 10px 12px 0; border-bottom: 1px solid var(--ed-linea); }
.ed-cal small { display: block; font-size: .78rem; font-weight: 600; color: var(--ed-gris); }
.ed-cal strong { display: block; font: 750 1.15rem/1.3 var(--ed-titulos); }
.ed-cal em { display: block; font-style: normal; font-size: .8rem; color: var(--ed-gris); }
.ed-cal li:last-child strong { color: var(--ed-lav-osc); }

/* Diversificación */
.ed-divers { display: grid; gap: 16px; margin: 0 0 14px; }
@media (min-width: 760px) { .ed-divers { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.ed-divers h4 { margin: 0 0 8px; font-size: 1.02rem; }
.ed-divers__caja { display: grid; gap: 6px; min-height: 180px; }
.ed-divers__caja--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ed-divers__pieza { display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; border-radius: 8px; background: var(--ed-petro-suave); border: 1px solid var(--ed-petro-2); font-size: .84rem; }
.ed-divers__pieza b { font: 750 1.05rem/1.2 var(--ed-titulos); }
.ed-divers__pieza--cae { background: var(--ed-rayas); border-color: #A79DEA; }
.ed-divers__pieza--cae b, .ed-divers__pieza--cae span { width: fit-content; padding: 1px 6px; border-radius: 4px; background: rgba(255, 255, 255, .92); }
.ed-divers__pieza--cae span { margin-top: 3px; }
.ed-divers__total { margin: 8px 0 0; font-weight: 700; }

.ed-cierre-curso { display: grid; gap: 16px; }
@media (min-width: 860px) { .ed-cierre-curso { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; } }
.ed-ejercicio { padding: 18px 20px; border-top: 3px solid var(--ed-petro); background: var(--ed-petro-suave); border-radius: 0 0 var(--ed-r) var(--ed-r); }
.ed-riesgos { padding: 18px 20px; border-top: 3px solid var(--ed-lav-osc); background: var(--ed-lav-suave); border-radius: 0 0 var(--ed-r) var(--ed-r); }
.ed-ejercicio h3, .ed-riesgos h3 { font-size: 1.08rem; margin-bottom: 8px; }
.ed-ejercicio p, .ed-riesgos ul { margin: 0; }
.ed-cierre-curso + .ed-acciones { margin-top: 22px; }

/* Cómo se aprende */
.ed-recuadro { padding: 18px 20px; border: 1px solid var(--ed-linea); border-radius: var(--ed-r); background: var(--ed-blanco); }
.ed-cap--blanco .ed-recuadro { background: var(--ed-papel); }
.ed-recuadro h3 { font-size: 1.08rem; margin-bottom: 10px; }
.ed-recuadro > :last-child { margin-bottom: 0; }
.ed-flujo { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 0; counter-reset: ed-f; border-top: 3px solid var(--ed-tinta); }
@media (min-width: 860px) { .ed-flujo { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; } }
.ed-flujo li { margin: 0; counter-increment: ed-f; padding: 16px 0; border-bottom: 1px solid var(--ed-linea); }
.ed-flujo li::before { content: "Paso " counter(ed-f); display: block; margin-bottom: 6px; font: 700 .74rem/1.3 var(--ed-texto); letter-spacing: .12em; text-transform: uppercase; color: var(--ed-lav-osc); }
.ed-flujo h3 { font-size: 1.15rem; margin-bottom: 6px; }
.ed-flujo p { margin: 0; color: var(--ed-gris); }
.ed-dos { display: grid; gap: 16px; }
@media (min-width: 760px) { .ed-dos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ed-nohacemos { padding: 30px 24px; border-radius: 22px; background: var(--ed-tinta); color: #fff; }
@media (min-width: 760px) { .ed-nohacemos { padding: 44px 48px; } }
.ed-nohacemos h2 { color: #fff; }
.ed-nohacemos ul { list-style: none; padding: 0; margin: 0 0 24px; }
.ed-nohacemos li { margin: 0; padding: 11px 0 11px 30px; border-bottom: 1px solid rgba(255, 255, 255, .16); position: relative; }
.ed-nohacemos li::before { content: "−"; position: absolute; left: 4px; top: 9px; font: 800 1.15rem/1.4 var(--ed-titulos); color: var(--ed-lav); }
.ed-nohacemos :focus-visible { outline-color: var(--ed-lav); }

/* Guías */
.ed-fecha { display: inline-block; margin: 0 0 18px; padding: 3px 10px; border-radius: 999px; background: var(--ed-petro-suave); color: var(--ed-petro); font-size: .84rem; font-weight: 700; }
.ed-cap__main h3 { margin-top: 1.6em; }
.ed-cap__main h3:first-child, .ed-cap__main .ed-figura h3, .ed-cap__main .ed-resuelto h3 { margin-top: 0; }
.ed-resuelto { margin: 0 0 20px; padding: 18px 20px; border-radius: var(--ed-r); background: var(--ed-blanco); border: 1px solid var(--ed-linea); border-top: 3px solid var(--ed-petro); }
.ed-cap--blanco .ed-resuelto { background: var(--ed-papel); }
.ed-resuelto__t { margin: 0 0 8px; font: 700 .74rem/1.3 var(--ed-texto); letter-spacing: .12em; text-transform: uppercase; color: var(--ed-petro); }
.ed-resuelto > :last-child { margin-bottom: 0; }
.ed-doc { max-width: 520px; margin: 0 0 20px; background: var(--ed-blanco); border: 1px solid var(--ed-tinta); border-radius: 4px; box-shadow: 6px 6px 0 var(--ed-lav); }
.ed-doc__cab { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 2px solid var(--ed-tinta); }
.ed-doc__cab strong { font-family: var(--ed-titulos); font-size: 1.08rem; }
.ed-doc__cab span { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ed-lav-osc); }
.ed-doc dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; padding: 4px 16px 8px; }
.ed-doc dt, .ed-doc dd { padding: 8px 0; border-bottom: 1px dotted #A9BABD; font-size: .93rem; }
.ed-doc dt { color: var(--ed-gris); }
.ed-doc dd { margin: 0; text-align: right; font-weight: 700; }
.ed-doc__pie { margin: 0; padding: 8px 16px 12px; font-size: .8rem; color: var(--ed-gris); }
.ed-control { margin: 0 0 20px; padding: 18px 20px; border: 1px solid var(--ed-linea); border-radius: var(--ed-r); background: var(--ed-blanco); }
.ed-cap--blanco .ed-control { background: var(--ed-papel); }
.ed-control h3 { margin: 0 0 8px !important; font-size: 1.1rem; }
.ed-control ul { list-style: none; padding: 0; margin: 0; }
.ed-control li { margin: 0; padding: 9px 0 9px 32px; border-top: 1px solid var(--ed-linea-2); position: relative; }
.ed-control li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 18px; height: 18px; border: 2px solid var(--ed-petro); border-radius: 4px; }
.ed-glosario { display: grid; margin: 0; border-top: 3px solid var(--ed-tinta); }
@media (min-width: 860px) { .ed-glosario { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; } }
.ed-glosario div { padding: 14px 0; border-bottom: 1px solid var(--ed-linea); }
.ed-glosario dt { font: 700 1.1rem/1.3 var(--ed-titulos); margin-bottom: 3px; }
.ed-glosario dd { margin: 0; color: var(--ed-gris); }

/* ==========================================================
   Contacto, formularios y ventana de consulta
   ========================================================== */
.ed-contacto { display: grid; gap: 22px; align-items: start; }
@media (min-width: 960px) { .ed-contacto { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 36px; } }
.ed-contacto__lado { display: grid; gap: 12px; }
.ed-tarjeta { padding: 22px; background: var(--ed-blanco); border: 1px solid var(--ed-linea); border-radius: 18px; box-shadow: var(--ed-sombra); }
@media (min-width: 600px) { .ed-tarjeta { padding: 32px; } }
.ed-tarjeta > h2 { font-size: 1.6rem; }
.ed-datos dt { font-size: .86rem; color: var(--ed-gris); }
.ed-datos dd { margin: 0 0 12px; font-weight: 650; }

.ed-form { display: grid; gap: 16px; }
.ed-form__par { display: grid; gap: 16px; }
@media (min-width: 640px) { .ed-form__par { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ed-ctl { display: grid; gap: 6px; align-content: start; }
.ed-ctl__label { font-weight: 650; font-size: .96rem; }
.ed-ctl__opc { font-weight: 400; color: var(--ed-gris); }
.ed-ctl input:not([type="checkbox"]), .ed-ctl select, .ed-ctl textarea, .ed-revision__texto {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1.5px solid #A9BABD; border-radius: 8px; background-color: var(--ed-blanco); color: var(--ed-tinta); font: 400 1rem/1.4 var(--ed-texto);
}
.ed-ctl select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ed-tinta) 50%), linear-gradient(135deg, var(--ed-tinta) 50%, transparent 50%); background-position: calc(100% - 21px) 52%, calc(100% - 15px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.ed-ctl textarea { min-height: 120px; resize: vertical; }
.ed-ctl input:focus, .ed-ctl select:focus, .ed-ctl textarea:focus, .ed-revision__texto:focus { outline: none; border-color: var(--ed-petro); box-shadow: 0 0 0 3px rgba(15, 85, 96, .22); }
.ed-ctl[data-error] input, .ed-ctl[data-error] select, .ed-ctl[data-error] textarea { border-color: var(--ed-error); background-color: var(--ed-error-suave); }
.ed-ctl__ayuda { margin: 0; font-size: .86rem; color: var(--ed-gris); }
.ed-ctl__error { margin: 0; font-size: .88rem; font-weight: 650; color: var(--ed-error); }
.ed-ctl__error::before { content: "⚠ "; }
.ed-ctl--check { grid-template-columns: 24px 1fr; gap: 4px 10px; align-items: start; }
.ed-ctl--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--ed-petro); }
.ed-ctl--check .ed-ctl__error { grid-column: 2; }
.ed-panal { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ed-form__nota { margin: 0; font-size: .86rem; color: var(--ed-gris); }
.ed-revision { display: grid; gap: 12px; }
.ed-revision h3 { margin: 0 !important; font-size: 1.3rem; }
.ed-revision h3:focus { outline: none; }
.ed-revision ol, .ed-revision p { margin: 0; }
.ed-revision__texto { min-height: 220px; font: 400 .9rem/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background-color: var(--ed-papel); }
.ed-revision__estado { font-weight: 650; color: var(--ed-petro); }
.ed-revision__estado:empty { display: none; }

.ed-ventana { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 18px; background: var(--ed-blanco); color: var(--ed-tinta); box-shadow: 0 40px 80px -30px rgba(10, 61, 69, .6); overflow: auto; }
.ed-ventana::backdrop { background: rgba(10, 30, 34, .6); }
@media (prefers-reduced-motion: no-preference) {
  .ed-ventana[open] { animation: ed-asoma .26s ease; }
  .ed-ventana[open]::backdrop { animation: ed-velo .26s ease; }
}
@keyframes ed-asoma { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ed-velo { from { opacity: 0; } to { opacity: 1; } }
.ed-ventana__cab { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 22px; background: var(--ed-blanco); border-bottom: 1px solid var(--ed-linea); }
.ed-ventana__cab h2 { margin: 0; font-size: 1.35rem; }
.ed-ventana__cuerpo { padding: 20px 22px 24px; }
.ed-ventana__cuerpo > p { color: var(--ed-gris); font-size: .94rem; }
.ed-x { display: grid; place-items: center; width: 42px; height: 42px; margin-left: auto; border: 1.5px solid var(--ed-linea); border-radius: 50%; background: var(--ed-blanco); color: var(--ed-tinta); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.ed-x:hover { border-color: var(--ed-tinta); }

/* Arrepentimiento y baja */
.ed-tramite { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .ed-tramite { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.ed-tramite-sec { padding: 56px 0; border-top: 1px solid var(--ed-linea); }
.ed-tramite-sec--blanco { background: var(--ed-blanco); }
.ed-pasitos { list-style: none; padding: 0; margin: 0 0 18px; counter-reset: ed-ps; }
.ed-pasitos li { counter-increment: ed-ps; display: grid; grid-template-columns: 34px 1fr; gap: 10px; margin: 0; padding: 10px 0; border-top: 1px solid var(--ed-linea-2); }
.ed-pasitos li::before { content: counter(ed-ps); font: 800 1.3rem/1.3 var(--ed-titulos); color: var(--ed-lav-osc); }

/* Legales */
.ed-legal-sec { padding: 48px 0 72px; border-top: 1px solid var(--ed-linea); }
.ed-legal-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .ed-legal-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; } .ed-indice-legal { position: sticky; top: 100px; } }
.ed-indice-legal { border-top: 3px solid var(--ed-tinta); padding-top: 10px; }
.ed-indice-legal h2 { margin: 0 0 6px; font: 700 .76rem/1.2 var(--ed-texto); letter-spacing: .14em; text-transform: uppercase; }
.ed-indice-legal ol { list-style: none; padding: 0; margin: 0; }
.ed-indice-legal li { margin: 0; }
.ed-indice-legal a { display: block; padding: 6px 0; border-bottom: 1px solid var(--ed-linea); color: var(--ed-tinta); font-size: .93rem; text-decoration: none; }
.ed-indice-legal a:hover { color: var(--ed-petro); }
.ed-legal { max-width: 740px; }
.ed-legal h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.ed-legal h2:first-child { margin-top: 0; }
.ed-cita { padding: 14px 18px; border-left: 4px solid var(--ed-lav-osc); background: var(--ed-lav-suave); border-radius: 0 var(--ed-r-s) var(--ed-r-s) 0; font-size: .95rem; }
.ed-legal__fecha { margin-top: 2em; font-size: .9rem; font-weight: 600; color: var(--ed-gris); }

@media print {
  .ed-cab, .ed-subir, .ed-pestanas { display: none !important; }
  body { background: #fff; }
  .ed-pie { background: #fff; color: #000; }
  .ed-pie a, .ed-pie__nombre { color: #000; }
}

/* Complementos */
.ed-oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ed-recuadro--lav { background: var(--ed-lav-suave) !important; border-color: var(--ed-lav); }
.ed-figsec { padding: 8px 0 0; }
.ed-figsec + .ed-cap { margin-top: 56px; }
.ed-portada h1 { max-width: 19ch; font-size: clamp(2.2rem, 1.2rem + 3.7vw, 4.2rem); }
.ed-pagcab .ed-saltos + * { margin-top: 0; }
@media (max-width: 479px) {
  .ed-tabla { font-size: .88rem; }
  .ed-tabla thead th, .ed-tabla thead th.ed-d { white-space: normal; }
  .ed-tabla th, .ed-tabla td { padding: 8px 6px; }
}
@media (max-width: 400px) { .ed-tabla { font-size: .8rem; } }
