/* World Advanced University — sistema visual del sitio público.
   Identidad: morado institucional + la paleta del logotipo (turquesa, coral, amarillo, azul) y el
   motivo de "mosaico" geométrico de la marca. Tono corporativo, sobrio; movimiento contenido. */

@font-face { font-family: 'Outfit'; src: url('../fonts/outfit-var-latin.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-var-latin.woff2') format('woff2'); font-weight: 400 800; font-style: normal; font-display: swap; }

:root {
  /* Marca */
  --primary: #422971;        /* morado institucional */
  --primary-2: #553982;      /* morado del logotipo */
  --dark: #1d1133;           /* fondo oscuro */
  --dark-2: #2a1a48;
  --accent: #fac51c;         /* amarillo del logotipo (botones sobre oscuro) */
  --teal: #00b6ad;
  --coral: #dc554f;
  --blue: #2969b0;
  --yellow: #fac51c;
  --teal-ink: #00756f;       /* variantes con contraste AA para texto */
  --coral-ink: #b8362f;
  /* Neutros */
  --ink: #17122b;
  --ink-2: #4a4560;
  --ink-3: #6b6680;
  --soft: #f6f4fa;
  --soft-2: #eeeaf6;
  --line: #e3dfec;
  --white: #fff;
  /* Tipografía y ritmo */
  --display: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --step: clamp(4rem, 8vw, 6.5rem);
  --radius: 14px;
  --radius-sm: 8px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 24px 48px -28px rgba(29, 17, 51, .45);
  --shadow-sm: 0 8px 24px -16px rgba(29, 17, 51, .35);
  --header-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: calc(var(--header-h) + 1rem); }
body { margin: 0; font-family: var(--text); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--white); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-underline-offset: .2em; }
p { margin: 0 0 1em; }
::selection { background: var(--accent); color: var(--dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 300; background: var(--accent); color: var(--dark); padding: .7rem 1rem; font-weight: 700; border-radius: var(--radius-sm); }
.skip:focus { top: 1rem; }
.hp { position: absolute; left: -9999px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 820px); }

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.1; margin: 0 0 .6em; text-wrap: balance; color: var(--dark); font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--display); font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; }
.eyebrow::before { content: ''; width: 26px; height: 10px; flex: none; background:
  linear-gradient(90deg, var(--teal) 0 5px, transparent 5px 7px, var(--coral) 7px 12px, transparent 12px 14px, var(--yellow) 14px 19px, transparent 19px 21px, var(--blue) 21px 26px); border-radius: 2px; }
.on-dark .eyebrow, .eyebrow--light { color: var(--accent); }
.muted { color: var(--ink-3); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px;
  background: var(--primary); color: var(--white); font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .01em; text-decoration: none; border: 2px solid var(--primary); cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { background: var(--dark-2); border-color: var(--dark-2); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.btn--accent:hover { background: #ffd54a; border-color: #ffd54a; color: var(--dark); }
.btn--line { background: transparent; color: var(--primary); border-color: currentColor; }
.btn--line:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.on-dark .btn--line, .btn--line-light { color: var(--white); border-color: rgba(255, 255, 255, .55); background: transparent; }
.on-dark .btn--line:hover, .btn--line-light:hover { background: var(--white); color: var(--dark); border-color: var(--white); }
.btn--sm { min-height: 40px; padding: .5rem 1.05rem; font-size: .92rem; }
.link { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--display); font-weight: 600; color: var(--primary); text-decoration: none; }
.link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.link:hover { text-decoration: underline; }
.link:hover svg { transform: translateX(3px); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--dark); color: rgba(255, 255, 255, .82); font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.topbar__license { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__license svg { width: 15px; height: 15px; color: var(--accent); }
.topbar__links { display: flex; align-items: center; gap: 1.2rem; }
.topbar__links a { display: inline-flex; align-items: center; gap: .35rem; }
.topbar__links svg { width: 14px; height: 14px; }
.lang { display: inline-flex; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; overflow: hidden; }
.lang a { padding: .15rem .6rem; font-size: .76rem; font-weight: 700; text-decoration: none; letter-spacing: .04em; }
.lang a[aria-current="true"] { background: var(--accent); color: var(--dark); }
.mosaic-bar { height: 5px; background: linear-gradient(90deg, var(--primary-2) 0 20%, var(--teal) 20% 40%, var(--coral) 40% 60%, var(--yellow) 60% 80%, var(--blue) 80% 100%); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.header.is-stuck { box-shadow: 0 10px 30px -24px rgba(29, 17, 51, .6); }
.header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.brand { flex: none; }
.brand img { height: 68px; width: auto; }
.nav { display: flex; align-items: center; gap: .1rem; margin-left: auto; }
.nav__link { padding: .6rem .75rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1rem; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; border-radius: var(--radius-sm); }
.nav__link svg { width: 14px; height: 14px; transition: transform .3s; }
.nav__link:hover, .nav__link[aria-current="page"], .nav__item.is-current > .nav__link { color: var(--primary); }
.nav__item.is-current > .nav__link, .nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--yellow); border-radius: 0; }
.nav__item { position: relative; }
.nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.nav__menu { position: absolute; top: calc(100% + 10px); left: -.5rem; min-width: 280px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .6rem; display: none; }
.nav__menu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav__item.is-open .nav__menu { display: grid; }
@media (hover: hover) and (min-width: 1101px) { .nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { display: grid; } }
.nav__menu a { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; text-decoration: none; border-radius: var(--radius-sm); font-size: .95rem; color: var(--ink); }
.nav__menu a svg { width: 18px; height: 18px; color: var(--primary); flex: none; }
.nav__menu a:hover, .nav__menu a[aria-current="page"] { background: var(--soft); color: var(--primary); }
.nav__menu hr { border: 0; border-top: 1px solid var(--line); margin: .35rem .5rem; }
.nav__cta { margin-left: .8rem; }
.nav__mobile-extra { display: none; }
.burger { display: none; margin-left: auto; width: 48px; height: 48px; background: none; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; position: relative; z-index: 2; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); transition: transform .3s, opacity .2s; }
.burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 23px; } .burger span:nth-child(3) { top: 30px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mosaico de marca (decoración) ---------- */
.mosaic { position: absolute; display: grid; grid-template-columns: repeat(var(--cols, 4), var(--tile, 44px)); gap: var(--gap, 8px); pointer-events: none; }
.mosaic i { display: block; width: var(--tile, 44px); height: var(--tile, 44px); border-radius: 28%; background: var(--c, var(--teal)); }
.mosaic i.o { border-radius: 50%; }
.mosaic i.q { border-radius: 0 0 0 100%; }
.mosaic i.q2 { border-radius: 100% 0 0 0; }
.mosaic i.x { background: transparent; }
.c1 { --c: var(--primary-2); } .c2 { --c: var(--teal); } .c3 { --c: var(--coral); } .c4 { --c: var(--yellow); } .c5 { --c: var(--blue); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(3rem, 7vw, 5.5rem) clamp(4rem, 8vw, 6.5rem); background:
  radial-gradient(1200px 500px at 85% -10%, rgba(0, 182, 173, .10), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(66, 41, 113, .08), transparent 60%), var(--white); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); }
.hero h1 em { font-style: normal; color: var(--primary); background: linear-gradient(transparent 68%, rgba(250, 197, 28, .55) 68% 92%, transparent 92%); }
.hero .lede { margin-bottom: 0; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.hero__badges li { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.hero__badges svg { width: 15px; height: 15px; color: var(--teal-ink); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero__media { position: relative; }
.hero__photo { position: relative; z-index: 1; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 5 / 4.4; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.hero__media .mosaic--a { --tile: 38px; --gap: 8px; --cols: 3; top: -26px; right: -26px; z-index: 0; }
.hero__media .mosaic--b { --tile: 30px; --gap: 7px; --cols: 4; bottom: -24px; left: -30px; z-index: 2; }
.hero__card { text-decoration: none; color: inherit; position: absolute; z-index: 3; left: -2.2rem; bottom: 2.6rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem; display: flex; gap: .9rem; align-items: center; max-width: 290px; }
.hero__card img { width: 62px; height: auto; flex: none; }
.hero__card strong { display: block; font-family: var(--display); color: var(--dark); line-height: 1.2; }
.hero__card span { font-size: .82rem; color: var(--ink-3); line-height: 1.35; display: block; }

/* Cifras */
.stats { position: relative; z-index: 2; margin-top: calc(-1 * clamp(2.2rem, 4vw, 3rem)); }
.stats__grid { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--dark); color: var(--white); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.stat { padding: 1.5rem 1.4rem; border-right: 1px solid rgba(255, 255, 255, .1); position: relative; }
.stat:last-child { border-right: 0; }
.stat::before { content: ''; position: absolute; left: 1.4rem; top: 0; width: 28px; height: 4px; border-radius: 0 0 3px 3px; background: var(--c, var(--teal)); }
.stat b { display: block; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; font-weight: 700; }
.stat span { font-size: .9rem; color: rgba(255, 255, 255, .75); }

/* ---------- Secciones ---------- */
.section { padding-block: var(--step); position: relative; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--dark); color: rgba(255, 255, 255, .82); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark .lede { color: rgba(255, 255, 255, .78); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.section__head h2 { margin-bottom: .3em; }
.section__head .lede { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--top { align-items: start; }
.split--wide { grid-template-columns: 1.2fr .8fr; }
.rounded { border-radius: var(--radius); }
.media-frame { position: relative; }
.media-frame > img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); position: relative; z-index: 1; }
.media-frame .mosaic { --tile: 28px; --gap: 7px; --cols: 4; z-index: 0; top: -20px; left: -20px; }
.media-frame--right .mosaic { left: auto; right: -20px; top: auto; bottom: -20px; }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: transform .45s var(--ease), box-shadow .45s, border-color .3s; position: relative; }
a.card:hover, .card:has(a.card__link:hover) { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
a.card:hover .card__img img, .card:has(a.card__link:hover) .card__img img { transform: scale(1.05); }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { margin-bottom: .45rem; font-size: 1.22rem; }
.card__body p { color: var(--ink-2); margin: 0; font-size: .96rem; }
.card__foot { margin-top: auto; padding-top: 1.1rem; }
.card__link::after { content: ''; position: absolute; inset: 0; }
.card time { font-size: .82rem; color: var(--ink-3); }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .65rem; border-radius: 999px; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--soft-2); color: var(--primary); }
.badge--teal { background: #def6f4; color: var(--teal-ink); }
.badge--coral { background: #fbe7e6; color: var(--coral-ink); }
.card__img .badge { position: absolute; left: 1rem; top: 1rem; background: rgba(255, 255, 255, .95); }
.meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .9rem 0 0; padding: 0; list-style: none; font-size: .86rem; color: var(--ink-3); }
.meta li { display: inline-flex; align-items: center; gap: .35rem; }
.meta svg { width: 15px; height: 15px; color: var(--primary); }

/* Pestañas */
.tabs { display: inline-flex; gap: .3rem; padding: .3rem; border-radius: 999px; background: var(--soft-2); }
.tabs [role="tab"] { border: 0; background: none; padding: .55rem 1.2rem; border-radius: 999px; font: 600 .95rem var(--display); color: var(--ink-2); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--white); color: var(--primary); box-shadow: var(--shadow-sm); }

/* Rasgos (iconos) */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; }
.feature { padding: 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.section--dark .feature { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.feature__icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--c, var(--teal)); color: var(--white); margin-bottom: 1rem; }
.feature__icon svg { width: 24px; height: 24px; }
.feature__icon.c4 { color: var(--dark); }
.feature h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.feature p { font-size: .93rem; color: var(--ink-2); margin: 0; }
.section--dark .feature p { color: rgba(255, 255, 255, .72); }

/* Pasos */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2rem; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 1.6rem 1.4rem 1.4rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 700 2rem/1 var(--display); color: var(--c, var(--primary)); margin-bottom: .8rem; }
.steps h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.steps p { margin: 0; font-size: .93rem; color: var(--ink-2); }

/* Fechas destacadas */
.next-term { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center; background: var(--white); border-radius: 20px; padding: 1.4rem 1.6rem; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-top: 2rem; }
.next-term__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--primary); color: var(--accent); display: grid; place-items: center; }
.next-term__icon svg { width: 26px; height: 26px; }
.next-term dl { display: flex; flex-wrap: wrap; gap: .4rem 2rem; margin: 0; }
.next-term dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 600; }
.next-term dd { margin: 0; font-family: var(--display); font-weight: 600; color: var(--dark); }
.next-term h3 { margin: 0 0 .3rem; font-size: 1.1rem; }

/* Precio */
.price-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.price { padding: 1.8rem; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); }
.price b { display: block; font: 700 clamp(2.4rem, 4vw, 3.2rem)/1 var(--display); color: var(--white); margin: .5rem 0 .3rem; }
.price b small { font-size: 1rem; font-weight: 500; color: rgba(255, 255, 255, .7); }
.price p { margin: 0; font-size: .92rem; }

/* Cita */
.quote { margin: 0; position: relative; padding: clamp(2rem, 4vw, 3rem); border-radius: 24px; background: var(--soft); }
.quote blockquote { margin: 0; font: 500 clamp(1.25rem, 2.2vw, 1.6rem)/1.45 var(--display); color: var(--dark); }
.quote blockquote::before { content: '“'; display: block; font: 700 5rem/0.6 var(--display); color: var(--coral); margin-bottom: .6rem; }
.quote figcaption { margin-top: 1.4rem; display: flex; align-items: center; gap: .9rem; }
.quote figcaption strong { display: block; font-family: var(--display); color: var(--dark); }
.quote figcaption div span { font-size: .9rem; color: var(--ink-3); }

/* Logos (licencia, plataformas) */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.logo-tile { margin: 0; display: grid; grid-template-rows: 110px auto; place-items: center; gap: .8rem; padding: 1.4rem 1.2rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.logo-tile img { width: 100%; max-width: 190px; height: 100%; max-height: 62px; object-fit: contain; }
.logo-tile--seal img { max-height: 110px; }
.logo-tile figcaption { font-size: .8rem; color: var(--ink-3); text-align: center; line-height: 1.3; }
.logo-box { height: 90px; display: flex; align-items: center; margin-bottom: 1.2rem; }
.logo-box img { max-width: min(100%, 210px); max-height: 60px; width: auto; height: auto; }

/* Avatares */
.avatar { width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; font: 700 1.1rem var(--display); color: var(--white); background: var(--c, var(--primary)); }
.avatar.c4 { color: var(--dark); }
.avatar.c2 { background: var(--teal-ink); } .avatar.c3 { background: var(--coral-ink); }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.person { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.person h3 { font-size: 1.02rem; margin: .1rem 0 .2rem; }
.person p { margin: 0; font-size: .88rem; color: var(--ink-3); }
.person details { margin-top: .5rem; font-size: .86rem; }
.person summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.person ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }
.person li { margin-bottom: .3rem; }
.filter { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1.4rem; }
.filter input { flex: 1; min-width: 220px; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 999px; font: inherit; }

/* CTA */
.cta { position: relative; background: var(--primary); color: rgba(255, 255, 255, .85); overflow: hidden; }
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta__inner p { margin: 0; max-width: 56ch; }
.cta .mosaic { --tile: 46px; --gap: 10px; --cols: 6; right: -30px; top: 50%; transform: translateY(-50%); opacity: .22; }

/* ---------- Encabezado interior ---------- */
.page-hero { position: relative; background: var(--dark); color: var(--white); padding-block: clamp(3rem, 6vw, 4.6rem) clamp(3rem, 6vw, 4.4rem); overflow: hidden; isolation: isolate; }
.page-hero h1 { color: var(--white); max-width: 24ch; margin-bottom: .35em; }
.page-hero .lede { color: rgba(255, 255, 255, .82); margin: 0; }
.page-hero__img { position: absolute; inset: 0; z-index: -2; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(29, 17, 51, .96) 0%, rgba(29, 17, 51, .82) 55%, rgba(66, 41, 113, .55) 100%); }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--primary-2) 0 20%, var(--teal) 20% 40%, var(--coral) 40% 60%, var(--yellow) 60% 80%, var(--blue) 80% 100%); }
.page-hero .mosaic { --tile: 34px; --gap: 8px; --cols: 5; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); top: 50%; transform: translateY(-50%); opacity: .9; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: rgba(255, 255, 255, .75); margin-bottom: 1rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Programa ---------- */
.program-hero__meta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.program-hero__meta li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .9rem; }
.program-hero__meta svg { width: 16px; height: 16px; color: var(--accent); }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--white); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-sm); }
.aside-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.aside-card__body { padding: 1.4rem; }
.aside-card dl { display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; margin: 0 0 1.2rem; font-size: .93rem; }
.aside-card dt { color: var(--ink-3); }
.aside-card dd { margin: 0; font-weight: 600; text-align: right; color: var(--dark); }
.aside-card .btn { width: 100%; margin-top: .5rem; }
.program-body h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: .7rem; color: var(--ink-2); }
.checklist li::before { content: ''; width: 26px; height: 26px; border-radius: 8px; background: #def6f4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300756f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat; margin-top: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 0; list-style: none; }
.chips li { padding: .55rem 1rem; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); font-weight: 600; font-family: var(--display); color: var(--primary); }
.curriculum { display: grid; gap: .8rem; }
.curriculum details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.curriculum summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem 1.3rem; font-family: var(--display); font-weight: 600; color: var(--dark); }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary span { font-family: var(--text); font-size: .85rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; display: inline-flex; align-items: center; gap: .6rem; }
.curriculum summary svg { flex: none; width: 16px; height: 16px; transition: transform .3s; color: var(--primary); }
.curriculum details[open] summary { background: var(--soft); }
.curriculum details[open] summary svg { transform: rotate(180deg); }
.course-list { list-style: none; margin: 0; padding: .4rem 1.3rem 1rem; }
.course-list li { display: grid; grid-template-columns: 84px 1fr auto; gap: .8rem; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.course-list li:last-child { border-bottom: 0; }
.course-list code { white-space: nowrap; font: 600 .82rem var(--text); color: var(--primary); background: var(--soft-2); padding: .15rem .45rem; border-radius: 6px; align-self: start; text-align: center; }
.course-list small { color: var(--ink-3); white-space: nowrap; }
.note { padding: 1rem 1.2rem; border-left: 4px solid var(--coral); background: #fdf3f2; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-2); font-size: .93rem; }
.note--info { border-left-color: var(--blue); background: #eef4fb; }

/* Tablas */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: .85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { background: var(--soft); font-family: var(--display); font-weight: 600; color: var(--dark); font-size: .9rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tr.is-current td { background: #fffbea; }

/* Calendario */
.terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; }
.term { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--white); }
.term__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; background: var(--soft); border-bottom: 1px solid var(--line); }
.term__head h2 { font-size: 1.35rem; margin: 0; }
.term.is-current { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.term.is-current .term__head { background: var(--primary); }
.term.is-current .term__head h2 { color: var(--white); }
.term.is-past { opacity: .7; }
.term__body { padding: 1.2rem 1.4rem 1.4rem; }
.term dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 0; font-size: .94rem; }
.term dt { color: var(--ink-2); }
.term dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.term h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 1.3rem 0 .6rem; }

/* Acordeón (FAQ / políticas) */
.accordion { display: grid; gap: .7rem; }
.accordion details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.accordion summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--dark); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--soft-2); color: var(--primary); font-size: 1.2rem; transition: transform .3s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 1.3rem 1.2rem; color: var(--ink-2); }
.accordion .acc-body p:last-child, .accordion .acc-body ul:last-child { margin-bottom: 0; }

/* Índice lateral */
.toc { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: .2rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: .92rem; }
.toc strong { font-family: var(--display); color: var(--dark); padding: .3rem .6rem .5rem; }
.toc a { padding: .45rem .6rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-2); }
.toc a:hover { background: var(--soft); color: var(--primary); }

/* Texto largo */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose img { border-radius: var(--radius); margin: 1.4rem 0; }
.prose blockquote { margin: 1.4rem 0; padding-left: 1.2rem; border-left: 3px solid var(--accent); }
.prose a { color: var(--primary); }

/* Formularios */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.3rem; }
.field { display: grid; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--dark); }
.field label .req { color: var(--coral-ink); }
.field input, .field textarea, .field select { width: 100%; padding: .8rem .95rem; border: 1px solid #cfc9dc; border-radius: 10px; font: inherit; background: var(--white); color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(66, 41, 113, .15); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; font-size: .9rem; color: var(--ink-2); align-items: start; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); }
.alert { padding: .95rem 1.15rem; border-radius: 12px; margin-bottom: 1.4rem; font-weight: 600; }
.alert--ok { background: #e7f6ef; color: #17663b; }
.alert--error { background: #fdeceb; color: #9c241d; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: 46px 1fr; gap: .9rem; align-items: center; }
.contact-list .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--soft-2); color: var(--primary); }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--ink-3); font-size: .8rem; }
.contact-list a, .contact-list span { color: var(--dark); font-weight: 600; text-decoration: none; }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); filter: saturate(.85); }

/* Blog */
.post-cover { width: 100%; border-radius: var(--radius); margin-bottom: 2rem; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--soft); border-radius: var(--radius); padding: 1.3rem; margin-top: 2.5rem; }
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 3rem; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.pagination .is-current { background: var(--primary); color: var(--white); border-color: var(--primary); }
.empty { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: 20px; color: var(--ink-3); }
.error-page { text-align: center; }
.error-page__code { display: block; font: 700 clamp(6rem, 18vw, 10rem)/1 var(--display); color: var(--primary); }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255, 255, 255, .75); font-size: .93rem; position: relative; }
.footer h2 { color: var(--white); margin: 0 0 1rem; font-size: 1rem; letter-spacing: .02em; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.4fr; gap: 2.2rem; padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer__logo { width: 210px; margin-bottom: 1.3rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer__contact li { display: grid; grid-template-columns: 18px 1fr; gap: .6rem; }
.footer__contact svg { width: 16px; height: 16px; color: var(--accent); margin-top: 4px; }
.social { display: flex; gap: .5rem; margin-top: 1.3rem; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; transition: background .25s, border-color .25s; }
.social a:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.social svg { width: 17px; height: 17px; }
.newsletter form { display: flex; gap: .5rem; margin-top: .9rem; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; padding: .3rem; }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; padding: .55rem .9rem; color: var(--white); font: inherit; }
.newsletter input::placeholder { color: rgba(255, 255, 255, .6); }
.newsletter input:focus { outline: 0; }
.newsletter form:focus-within { border-color: var(--accent); }
.newsletter button { background: var(--accent); border: 0; color: var(--dark); font: 600 .9rem var(--display); cursor: pointer; padding: .55rem 1rem; border-radius: 999px; }
.newsletter__msg { min-height: 1.3em; font-size: .85rem; margin-top: .5rem; }
.footer__license { display: flex; gap: 1rem; align-items: center; padding: 1.3rem 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .88rem; }
.footer__license p { margin: 0; }
.footer__license img { width: 64px; height: 64px; flex: none; }
.footer__base { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.whatsapp { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 80; width: 56px; height: 56px; display: grid; place-items: center; background: #1fa855; color: #fff; border-radius: 50%; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.whatsapp:hover { transform: scale(1.06); }
.whatsapp svg { width: 28px; height: 28px; }

/* Movimiento */
.js .reveal:not(.is-in) { opacity: 0; transform: translateY(22px); }
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal:not(.is-in) { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .footer__top > :first-child { grid-column: 1 / -1; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  :root { --header-h: 76px; }
  .brand img { height: 54px; }
  .burger { display: block; }
  .brand { position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1; background: var(--white); flex-direction: column; align-items: stretch; gap: 0;
    padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s; margin: 0;
  }
  .header.nav-open { position: fixed; top: 0; left: 0; right: 0; }
  .header.nav-open .nav { transform: none; visibility: visible; }
  .nav__link { width: 100%; padding: 1rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); justify-content: space-between; border-radius: 0; }
  .nav__item.is-current > .nav__link, .nav__link[aria-current="page"] { box-shadow: none; }
  .nav__menu { position: static; box-shadow: none; border: 0; padding: .3rem 0 .8rem; min-width: 0; }
  .nav__menu::before { display: none; }
  .nav__cta { margin: 1.4rem 0 0; }
  .nav__mobile-extra { display: grid; gap: .3rem; margin-top: 1.4rem; font-size: .95rem; }
  .nav__mobile-extra a { display: flex; align-items: center; gap: .6rem; padding: .45rem 0; text-decoration: none; color: var(--ink-2); }
  .nav__mobile-extra svg { width: 18px; height: 18px; color: var(--primary); }
  .topbar__links .hide-md { display: none; }
}
@media (max-width: 960px) {
  .hero__grid, .split, .split--wide, .layout-aside { grid-template-columns: minmax(0, 1fr); }
  .hero__media { max-width: 560px; margin-inline: auto; width: 100%; }
  .hero__card { left: 1rem; }
  .stats__grid { grid-template-columns: repeat(3, 1fr); }
  .stat { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .cards--3, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .terms { grid-template-columns: minmax(0, 1fr); }
  .aside-card { position: static; max-width: 480px; }
  .aside-card img { aspect-ratio: 16 / 10; object-position: top; }
  .toc { position: static; }
  .page-hero .mosaic { display: none; }
  .next-term { grid-template-columns: auto 1fr; }
  .next-term > .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 700px) {
  .topbar__license span.long { display: none; }
  .topbar__links { gap: .8rem; }
  .topbar__links .hide-sm { display: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:last-child { grid-column: 1 / -1; }
  .cards--3, .steps, .features, .price-cards, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-tile:first-child { grid-column: 1 / -1; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > :last-child { grid-column: 1 / -1; }
  .course-list li { grid-template-columns: 74px 1fr; }
  .course-list small { display: none; }
  .hero__media .mosaic--a { right: -10px; } .hero__media .mosaic--b { left: -10px; }
  .hero__card { position: relative; left: auto; bottom: auto; margin: -2rem auto 0; max-width: 92%; }
  .stats { margin-top: 1.6rem; }
  .cta .mosaic { display: none; }
}


/* Verificador de credenciales (widget externo) */
.verify-card { min-height: 280px; padding: clamp(1.4rem, 4vw, 2.6rem) 1rem; background: var(--soft); border: 1px solid var(--line); border-radius: 22px; }
/* el pie del widget trae un gris fijo (#9ca3af) sin contraste AA */
.verify-card .iv-foot { color: #6b6680; }
.features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .features--3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Organigrama ---------- */
.org { --org-line: #cfc7de; --org-gap: 28px; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { display: flex; justify-content: center; padding-top: var(--org-gap); position: relative; }
.tree li { position: relative; display: flex; flex-direction: column; align-items: center; padding: var(--org-gap) .5rem 0; flex: 1 1 0; min-width: 0; }
.tree > li { padding-top: 0; }
/* conectores: cada hijo dibuja media barra horizontal + su línea vertical */
.tree ul > li::before, .tree ul > li::after { content: ''; position: absolute; top: 0; width: 50%; height: var(--org-gap); border-top: 2px solid var(--org-line); }
.tree ul > li::before { right: 50%; }
.tree ul > li::after { left: 50%; border-left: 2px solid var(--org-line); }
.tree ul > li:first-child::before, .tree ul > li:last-child::after { border-top: 0; }
.tree ul > li:last-child::before { border-right: 2px solid var(--org-line); border-radius: 0 10px 0 0; }
.tree ul > li:first-child::after { border-radius: 10px 0 0 0; }
.tree ul > li:only-child::after { border-radius: 0; }
.tree ul > li:only-child::before { display: none; }
.tree ul > li:last-child:not(:only-child)::after { border: 0; }
.tree li > ul::before { content: ''; position: absolute; top: 0; left: 50%; height: var(--org-gap); border-left: 2px solid var(--org-line); }
.tree ul > li:only-child { padding-top: 0; }
.tree li > ul:has(> li:only-child) { padding-top: var(--org-gap); }
.org-node { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--c, var(--primary)); border-radius: 16px; padding: 1.3rem 1.1rem 1.2rem; box-shadow: var(--shadow-sm); width: 100%; max-width: 250px; height: 100%; transition: transform .35s var(--ease), box-shadow .35s; }
.org-node:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.org-node .avatar { width: 52px; height: 52px; border-radius: 16px; font-size: 1.05rem; }
.org-node__text strong { display: block; font-family: var(--display); color: var(--dark); line-height: 1.2; font-size: 1.02rem; }
.org-node__text span { display: block; font-size: .84rem; color: var(--ink-3); line-height: 1.35; margin-top: .3rem; }
.org-node--l1 { --c: var(--primary); max-width: 280px; } .org-node--l2 { --c: var(--blue); max-width: 280px; }
.org-node--l3 { --c: var(--teal); } .org-node--l4 { --c: var(--coral); }
.org-node--l1 .avatar, .org-node--l2 .avatar { width: 64px; height: 64px; font-size: 1.2rem; border-radius: 20px; }
.org-node--l1 strong, .org-node--l2 strong { font-size: 1.15rem; }
.org-node--l1 .org-node__text span, .org-node--l2 .org-node__text span { font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }
.tree__directors > li { align-items: stretch; }
.tree__directors > li > .org-node { margin-inline: auto; }
.org-group { position: relative; margin: var(--org-gap) auto 0; max-width: 980px; padding: 2.4rem 1.6rem 1.6rem; border: 2px dashed var(--org-line); border-radius: 22px; background: var(--soft); }
.org-group::before { content: ''; position: absolute; left: 50%; top: calc(-1 * var(--org-gap) - 2px); height: var(--org-gap); border-left: 2px solid var(--org-line); }
.org-group__title { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); margin: 0; padding: .3rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font: 600 .78rem var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--coral-ink); white-space: nowrap; }
.org-group__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; justify-items: center; }
.org-group__list > li { display: flex; width: 100%; justify-content: center; }
@media (max-width: 960px) {
  /* Móvil/tableta: árbol vertical con riel a la izquierda */
  .tree ul { display: grid; gap: .8rem; justify-content: stretch; padding: .8rem 0 0 1.4rem; margin-left: 1.4rem; border-left: 2px solid var(--org-line); }
  .tree li { padding: 0; align-items: stretch; }
  .tree ul > li::before, .tree ul > li::after, .tree li > ul::before { display: none; }
  .tree ul > li > .org-node::before { content: ''; position: absolute; left: calc(-1.4rem - 1px); top: 50%; width: 1.4rem; border-top: 2px solid var(--org-line); }
  .tree li > ul:has(> li:only-child) { padding-top: .8rem; }
  .org-node, .org-node--l1, .org-node--l2 { max-width: none; flex-direction: row; text-align: left; padding: .9rem 1rem; gap: .85rem; }
  .org-node .avatar, .org-node--l1 .avatar, .org-node--l2 .avatar { width: 48px; height: 48px; font-size: 1rem; border-radius: 14px; flex: none; }
  .org-group { max-width: none; }
  .org-group { margin: 1.4rem 0 0 2.8rem; }
  .org-group::before { left: calc(-1.4rem - 2px); top: -1.4rem; height: calc(50% + 1.4rem); border-left: 2px solid var(--org-line); border-bottom: 2px solid var(--org-line); width: 1.4rem; }
  .org-group__title { left: .8rem; right: .8rem; transform: translateY(-50%); white-space: normal; text-align: center; font-size: .72rem; }
  .org-group { padding-top: 2.6rem; }
  .org-group__list { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
}

/* ---------- Protección de contenido (body.protect) ---------- */
.protect { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.protect input, .protect textarea, .protect select, .protect [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
.protect img, .protect svg { -webkit-user-drag: none; user-drag: none; }
@media print {
  .protect > * { display: none !important; }
  .protect::after { content: attr(data-print-msg); display: block; padding: 3rem; font: 600 1.2rem/1.5 system-ui, sans-serif; text-align: center; }
}
