/* Nexus V5 · logo oficial + paleta más clara */
:root {
  --md-primary-fg-color: #dff3f7;
  --md-accent-fg-color: #7d55e7;
  --nx-bg: #f4fbff;
  --nx-surface: #ffffff;
  --nx-surface-soft: #eef8fb;
  --nx-ink: #183250;
  --nx-muted: #617b97;
  --nx-border: #d7e8f2;
  --nx-cyan: #25b9d0;
  --nx-purple: #845be8;
}
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #10264a;
  --md-accent-fg-color: #80ddeb;
  --nx-bg: #0d1320;
  --nx-surface: #121b2d;
  --nx-surface-soft: #172337;
  --nx-ink: #ebf4ff;
  --nx-muted: #b8c7da;
  --nx-border: #243449;
  --nx-cyan: #53d5e6;
  --nx-purple: #9f81f2;
}
body{background:var(--nx-bg);} 
.md-header{background:linear-gradient(90deg,#e9f8fb 0%,#f4f8ff 44%,#efeafd 100%); box-shadow:0 8px 24px rgba(22,58,89,.08);} 
[data-md-color-scheme="slate"] .md-header{background:linear-gradient(90deg,#10264a 0%,#17345d 60%,#2a2254 100%);} 
.md-tabs{background:rgba(255,255,255,.65); border-top:1px solid rgba(29,83,125,.08);} 
[data-md-color-scheme="slate"] .md-tabs{background:rgba(0,0,0,.08); border-top-color:rgba(255,255,255,.05);} 
.md-header__topic:first-child,.md-tabs__link,.md-search__form .md-search__input{color:#173250;} 
[data-md-color-scheme="slate"] .md-header__topic:first-child,[data-md-color-scheme="slate"] .md-tabs__link,[data-md-color-scheme="slate"] .md-search__form .md-search__input{color:#eff6ff;} 
.md-tabs__link--active,.md-tabs__link:hover{opacity:1;color:#163250;} 
[data-md-color-scheme="slate"] .md-tabs__link--active,[data-md-color-scheme="slate"] .md-tabs__link:hover{color:#fff;} 
.md-header__button.md-logo img,.md-nav__button.md-logo img{height:2rem;width:auto;object-fit:contain;border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.08);} 
.md-search__form{background:rgba(255,255,255,.88);} 
[data-md-color-scheme="slate"] .md-search__form{background:rgba(255,255,255,.08);} 
.md-content__inner:has(.nx-home){padding-top:.8rem;} 
.md-typeset .nx-home .nx-hero{background:linear-gradient(135deg,#f7fdff 0%,#eef7ff 52%,#f6f0ff 100%); color:var(--nx-ink); box-shadow:0 22px 55px rgba(36,92,122,.10); border:1px solid #dcecf5;} 
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-hero{background:linear-gradient(135deg,#101a2f 0%,#162449 52%,#241847 100%); box-shadow:0 22px 55px rgba(0,0,0,.2); border-color:#22324b;} 
.md-typeset .nx-home .nx-hero h1{background:linear-gradient(90deg,#1785cf 0%,#4a66e6 45%,#9a4fe4 100%); -webkit-background-clip:text; background-clip:text; color:transparent;} 
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-hero h1{background:linear-gradient(90deg,#5ac2ff 0%,#86b2ff 45%,#ce89ff 100%); -webkit-background-clip:text; background-clip:text;} 
.md-typeset .nx-home .nx-hero__headline{color:#23415f;} 
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-hero__headline{color:#f4f7ff;} 
.md-typeset .nx-home .nx-hero__headline span{color:#7a5ae7;} 
.md-typeset .nx-home .nx-hero__summary{color:#4f6984;} 
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-hero__summary{color:#d6dff0;} 
.nx-hero__visual{background:linear-gradient(180deg,rgba(255,255,255,.85),rgba(245,250,255,.92)); border:1px solid #dbe9f1;} 
[data-md-color-scheme="slate"] .nx-hero__visual{background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.08)); border-color:#243449;} 
.nx-hero__visual img{max-width:100%; border-radius:16px;}
.md-typeset .nx-btn--bright{background:linear-gradient(90deg,#22bbd3,#7a5ce8); color:white;}
.md-typeset .nx-btn--bright:hover{filter:brightness(1.05); color:white;}
.md-typeset .nx-btn--ghost{border-color:#cadce9;color:#23415f;background:rgba(255,255,255,.68);} 
[data-md-color-scheme="slate"] .md-typeset .nx-btn--ghost{border-color:#40526f;color:#eef4ff;background:rgba(255,255,255,.04);} 
.md-typeset .nx-home .nx-bottom{background:linear-gradient(130deg,#edf9fc,#eef5ff 60%,#f6efff); color:var(--nx-ink); border:1px solid var(--nx-border); box-shadow:0 18px 40px rgba(31,83,121,.08);} 
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-bottom{background:linear-gradient(120deg,#0c1731,#1c1642); color:#fff; border-color:#243449;} 
.md-typeset .nx-bottom h2{color:var(--nx-ink);} 
[data-md-color-scheme="slate"] .md-typeset .nx-bottom h2{color:#fff;} 
.md-typeset .nx-bottom p{color:#536d88;} 
[data-md-color-scheme="slate"] .md-typeset .nx-bottom p{color:#d0d9ec;} 
.nx-bottom__rings{display:none;} 
.md-typeset .nx-linktree-home{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(220px,280px);gap:1.6rem;align-items:center;margin:1.6rem 0 0;padding:1.4rem;border-radius:20px;background:rgba(255,255,255,.76);border:1px solid var(--nx-border);} 
[data-md-color-scheme="slate"] .md-typeset .nx-linktree-home{background:rgba(255,255,255,.03);} 
.nx-linktree-home__qr{background:#fff;padding:.85rem;border-radius:18px;display:grid;place-items:center;border:1px solid var(--nx-border);box-shadow:0 8px 22px rgba(15,47,87,.08);} 
.nx-linktree-home__qr img{display:block;width:100%;max-width:240px;height:auto;border-radius:12px;} 
.md-typeset .nx-linktree-home h3{margin:.15rem 0 .55rem;color:var(--nx-ink);} 
.md-typeset .nx-linktree-home p{margin:.35rem 0;color:var(--nx-muted);} 
.md-typeset .nx-linktree-home .nx-overline{margin-bottom:.4rem;} 
@media(max-width:800px){.md-typeset .nx-linktree-home{grid-template-columns:1fr;}}

/* NEXUS · Diseño v3. Portada enteramente HTML, sin Markdown anidado. */
:root {
  --md-primary-fg-color: #101f40;
  --md-accent-fg-color: #6a3ae0;
  --nx-ink: #13233f;
  --nx-muted: #50617b;
  --nx-white: #fff;
  --nx-surface: #fff;
  --nx-border: #dae5f0;
  --nx-background: #f5f8fd;
}
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #101f40;
  --md-accent-fg-color: #9c7aff;
  --nx-ink: #edf3ff;
  --nx-muted: #aebed4;
  --nx-surface: #162036;
  --nx-border: #2c3850;
  --nx-background: #101727;
}
body { background: var(--nx-background); }
.md-header { background: #09152c; box-shadow: 0 4px 18px rgba(0,0,0,.16); }
.md-tabs { background: #101f40; }
.md-tabs__link--active { color: white; }
.md-header__inner { min-height: 3.1rem; }
.md-header__button.md-logo img { height: 2.45rem; width: auto; max-width: 6.5rem; object-fit: contain; border-radius: 4px; }
.md-content__inner { padding-bottom: 2.6rem; }
.md-typeset h1, .md-typeset h2, .md-typeset h3 { font-weight: 780; letter-spacing: -.025em; }
.md-typeset a { text-underline-offset: .16em; }

/* Expand just the homepage, keep reading pages readable. */
.md-main__inner:has(.nx-home) { max-width: 88rem; }
.md-content:has(.nx-home) { min-width: 0; }
.md-content__inner:has(.nx-home) { max-width: none; margin: 0; padding: .7rem .7rem 3rem; }
.md-typeset .nx-home { width: 100%; max-width: 100%; min-width: 0; }
.md-typeset .nx-home *, .md-typeset .nx-event-directory * { box-sizing: border-box; }
.md-typeset .nx-home h1, .md-typeset .nx-home h2, .md-typeset .nx-home h3 { margin: 0; padding: 0; border: 0; }
.md-typeset .nx-home p { margin: 0; }

.md-typeset .nx-home .nx-hero {
  display: grid !important;
  grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr) !important;
  gap: clamp(1rem,3vw,3rem);
  align-items: center;
  min-height: 520px;
  padding: clamp(1.5rem,4vw,4.4rem);
  overflow: hidden;
  border-radius: 26px;
  background: radial-gradient(ellipse at 79% 37%,#271a58 0%,transparent 36%),radial-gradient(circle at 75% 70%,rgba(0,181,225,.11),transparent 30%),linear-gradient(133deg,#070e22 0%,#0d1735 57%,#080f24 100%);
  color:#fff;
  box-shadow: 0 22px 58px rgba(7,13,36,.19);
}
.nx-hero__main, .nx-hero__visual { min-width:0; }
.nx-hero__eyebrow { display:inline-flex; align-items:center; gap:.55rem; font-size:.68rem; font-weight:800; letter-spacing:.12em; color:#96ecf8; line-height:1.6; }
.nx-status-dot { width:7px; height:7px; flex:none; display:inline-block; border-radius:50%; background:#50e3df; box-shadow:0 0 0 4px rgba(80,227,223,.12); }
.md-typeset .nx-home .nx-hero h1 { color:#fff; font-size:clamp(4.1rem,8.6vw,8.4rem); font-weight:900; line-height:.99; letter-spacing:-.085em; margin:.45rem 0 .6rem; }
.nx-hero__dot { color:#8f5aff; }
.md-typeset .nx-home .nx-hero__headline { color:#fff; font-size:clamp(1.45rem,2.45vw,2.7rem); font-weight:800; line-height:1.16; letter-spacing:-.048em; }
.md-typeset .nx-home .nx-hero__headline span { background:linear-gradient(90deg,#72e6f6,#bd90ff); background-clip:text; -webkit-background-clip:text; color:transparent; }
.md-typeset .nx-home .nx-hero__summary { margin-top:1.2rem; max-width:57ch; color:#c5d3e9; font-size:.9rem; line-height:1.8; }
.md-typeset .nx-home .nx-hero__summary strong { color:#fff; }
.nx-hero__buttons { display:flex; flex-wrap:wrap; align-items:center; gap:.7rem; margin:1.65rem 0 1.65rem; }
.md-typeset .nx-btn { display:inline-flex; gap:.9rem; justify-content:center; align-items:center; padding:.77rem 1.02rem; border-radius:10px; text-decoration:none; font-weight:800; font-size:.77rem; transition:transform .2s,background-color .2s,border-color .2s; }
.md-typeset .nx-btn:hover { transform:translateY(-2px); text-decoration:none; }
.md-typeset .nx-btn--bright { background:#70e6f2; color:#071d2c; }
.md-typeset .nx-btn--bright:hover { color:#071d2c; background:#affaff; }
.md-typeset .nx-btn--ghost { color:#eef7ff; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.23); }
.md-typeset .nx-btn--ghost:hover { color:#fff; border-color:#fff; }
.nx-hero__facts { display:flex; flex-wrap:wrap; gap:1.5rem; border-top:1px solid rgba(238,249,255,.16); padding-top:1.25rem; }
.nx-hero__facts > div { display:flex; flex-direction:column; gap:.05rem; }
.nx-hero__facts strong { font-size:1rem; color:#fff; line-height:1.4; }
.nx-hero__facts span { font-size:.67rem; color:#a6bed6; }
.nx-hero__visual { position:relative; isolation:isolate; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.nx-hero__visual img { position:relative; z-index:1; width:100%; max-width:530px; height:auto; display:block; object-fit:contain; border-radius:8px; mask-image:radial-gradient(ellipse at center,black 49%,transparent 79%); -webkit-mask-image:radial-gradient(ellipse at center,black 49%,transparent 79%); filter:drop-shadow(0 12px 26px rgba(101,50,230,.22)); }
.nx-glow { position:absolute; z-index:0; width:55%; aspect-ratio:1; filter:blur(70px); border-radius:50%; opacity:.25; }
.nx-glow--cyan { background:#14c6de; left:-1%; bottom:13%; }
.nx-glow--violet { background:#8848ff; right:-8%; top:9%; }
.nx-hero__visual-label { display:flex; align-items:center; gap:.6rem; margin-top:.2rem; font-size:.65rem; font-weight:800; letter-spacing:.2em; color:#c2d8f5; text-transform:uppercase; }

/* Section elements */
.md-typeset .nx-home .nx-section { margin-top:clamp(3rem,5vw,5rem); }
.nx-section__heading { min-width:0; }
.nx-overline { color:#277bb5; font-size:.69rem; font-weight:900; letter-spacing:.15em; text-transform:uppercase; }
[data-md-color-scheme="slate"] .nx-overline { color:#79cfe8; }
.md-typeset .nx-home h2 { color:var(--nx-ink); font-size:clamp(1.9rem,3.4vw,3.25rem); line-height:1.14; letter-spacing:-.05em; margin-top:.6rem; }
.md-typeset .nx-home h2 em { font-style:normal; color:#7945e2; }
.nx-purple { color:#9865f2; }
.md-typeset .nx-intro { display:grid !important; grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important; gap:clamp(1.4rem,4vw,4rem); align-items:start; }
.md-typeset .nx-intro__text p { color:var(--nx-muted); line-height:1.85; margin-bottom:1rem; }
.md-typeset .nx-intro__text strong { color:var(--nx-ink); }
.md-typeset .nx-text-link { color:#147cb0; text-decoration:none; font-weight:800; font-size:.81rem; display:inline-flex; align-items:center; gap:.6rem; }
[data-md-color-scheme="slate"] .md-typeset .nx-text-link { color:#78d7ef; }
.md-typeset .nx-text-link:hover { text-decoration:underline; }
.md-typeset .nx-section__topline { display:flex; justify-content:space-between; align-items:end; gap:2.3rem; margin-bottom:1.5rem; }
.md-typeset .nx-section__topline > * { min-width:0; }
.md-typeset .nx-section__topline > p, .md-typeset .nx-events__intro { max-width:32ch; color:var(--nx-muted); line-height:1.75; font-size:.87rem; }
.md-typeset .nx-events__intro p { color:var(--nx-muted); margin-bottom:.8rem; }

/* Four divisions */
.md-typeset .nx-areas { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; gap:1rem; }
.md-typeset .nx-area { display:flex; flex-direction:column; min-width:0; min-height:275px; padding:1.35rem 1.25rem; border:1px solid var(--nx-border); border-radius:18px; background:var(--nx-surface); color:var(--nx-ink); text-decoration:none; box-shadow:0 7px 20px rgba(10,34,70,.045); transition:transform .2s,box-shadow .2s,border-color .2s; }
.md-typeset .nx-area:hover { transform:translateY(-5px); color:var(--nx-ink); border-color:#60bfdd; box-shadow:0 16px 30px rgba(12,30,70,.12); }
.md-typeset .nx-area__num { font-size:.58rem; color:#7a53de; font-weight:900; letter-spacing:.11em; line-height:1.5; }
.md-typeset .nx-area__icon { font-size:2rem; line-height:1.6; color:#2254a5; margin:.7rem 0 .75rem; }
.md-typeset .nx-area h3 { color:var(--nx-ink); font-size:1.06rem; line-height:1.24; margin:.15rem 0 .65rem; letter-spacing:-.03em; }
.md-typeset .nx-area p { font-size:.75rem; line-height:1.7; color:var(--nx-muted); }
.md-typeset .nx-area__more { margin-top:auto; padding-top:1.4rem; font-size:.69rem; color:#2079a9; font-weight:800; display:flex; justify-content:space-between; gap:.5rem; }
.md-typeset .nx-area__more b { font-size:.85rem; }
.nx-area--one { border-top:4px solid #3288e2 !important; }
.nx-area--two { border-top:4px solid #21b8ca !important; }
.nx-area--three { border-top:4px solid #7b64ed !important; }
.nx-area--four { border-top:4px solid #c056be !important; }

/* Events */
.md-typeset .nx-events__grid { display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:1.1rem; }
.md-typeset .nx-event { display:grid !important; grid-template-columns:minmax(0,.85fr) minmax(0,1fr) !important; gap:0; background:var(--nx-surface); border:1px solid var(--nx-border); border-radius:20px; overflow:hidden; color:var(--nx-ink); text-decoration:none; min-width:0; box-shadow:0 12px 28px rgba(10,31,70,.065); transition:transform .2s,box-shadow .2s; }
.md-typeset .nx-event:hover { transform:translateY(-4px); color:var(--nx-ink); box-shadow:0 20px 36px rgba(10,31,70,.12); }
.nx-event__image { min-width:0; position:relative; display:flex; justify-content:center; align-items:center; background:#060816; overflow:hidden; }
.nx-event__image img { display:block; width:100%; height:100%; max-height:285px; min-height:240px; object-fit:contain; }
.nx-event__image-tag { position:absolute; bottom:.75rem; left:.7rem; padding:.35rem .65rem; font-weight:900; font-size:.58rem; letter-spacing:.07em; border-radius:6px; color:white; background:rgba(18,25,55,.9); }
.nx-event__details { display:flex; flex-direction:column; justify-content:center; padding:1.15rem; min-width:0; }
.nx-event__details > span:first-child { font-size:.57rem; letter-spacing:.12em; color:#8459d6; font-weight:900; line-height:1.5; }
.md-typeset .nx-event h3 { font-size:1.08rem; color:var(--nx-ink); line-height:1.3; margin:.55rem 0; }
.md-typeset .nx-event p { font-size:.7rem; line-height:1.65; color:var(--nx-muted); }
.nx-event__go { color:#2179aa; font-size:.68rem; font-weight:800; margin-top:1.25rem; }
.md-typeset .nx-events__note { color:var(--nx-muted); font-size:.7rem; margin-top:.7rem; }

/* Bottom CTA */
.md-typeset .nx-home .nx-bottom { position:relative; overflow:hidden; margin:4.5rem 0 0; display:flex; align-items:center; justify-content:space-between; gap:1rem; min-height:275px; padding:clamp(1.6rem,4vw,3rem); border-radius:23px; background:linear-gradient(120deg,#0c1731,#1c1642); color:#fff; }
.md-typeset .nx-bottom .nx-overline { color:#86dfee; }
.md-typeset .nx-bottom h2 { color:#fff; max-width:14ch; font-size:clamp(2.1rem,3.3vw,3.3rem); }
.md-typeset .nx-bottom h2 em { color:#9e7cf8; }
.md-typeset .nx-bottom p { color:#d0d9ec; max-width:62ch; margin:1rem 0; font-size:.83rem; line-height:1.75; }
.nx-bottom__rings { width:210px;height:210px;flex:none;display:grid;place-items:center;border-radius:50%;border:1px solid rgba(115,217,244,.23);color:rgba(157,231,247,.2);font-weight:900;font-size:4.1rem;transform:rotate(-18deg);position:relative; }
.nx-bottom__rings::before,.nx-bottom__rings::after { content:"";position:absolute;inset:40px -12px;border:1px solid rgba(157,125,255,.32);border-radius:50%;transform:rotate(62deg); }
.nx-bottom__rings::after { transform:rotate(115deg); }

/* Event detail page: no Markdown inside HTML */
.md-typeset .nx-event-directory { display:grid;gap:2rem;margin:2rem 0; }
.md-typeset .nx-event-detail { display:grid !important; grid-template-columns:minmax(0,310px) minmax(0,1fr) !important; gap:1.5rem; min-width:0; align-items:start; border:1px solid var(--nx-border); background:var(--nx-surface); border-radius:18px; padding:1.2rem; scroll-margin-top:6rem; }
.nx-event-detail__art { min-width:0; }
.nx-event-detail__art img { display:block; max-width:100%; height:auto; border-radius:12px; }
.md-typeset .nx-event-detail h2 { color:var(--nx-ink); font-size:1.6rem; margin:.7rem 0; }
.md-typeset .nx-event-detail p { color:var(--nx-muted); }
.nx-event-detail dl { margin:1rem 0 0; }
.nx-event-detail dl div { padding:.55rem 0; border-bottom:1px solid var(--nx-border); }
.nx-event-detail dt { font-size:.67rem; color:var(--nx-muted); font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.nx-event-detail dd { margin:0; color:var(--nx-ink); font-size:.85rem; }

@media (max-width: 1100px) {
  .md-typeset .nx-areas { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
  .md-typeset .nx-events__grid { grid-template-columns:1fr !important; }
  .nx-event__image img { max-height:330px; }
}
@media (max-width: 850px) {
  .md-typeset .nx-home .nx-hero { grid-template-columns:1fr !important; }
  .nx-hero__visual { max-width:470px; margin:0 auto; }
  .md-typeset .nx-intro { grid-template-columns:1fr !important; }
  .md-typeset .nx-section__topline { flex-direction:column; align-items:start; gap:.7rem; }
  .md-typeset .nx-event-detail { grid-template-columns:1fr !important; }
  .nx-event-detail__art { max-width:330px; }
}
@media (max-width: 600px) {
  .md-content__inner:has(.nx-home) { padding:.35rem .3rem 2rem; }
  .md-typeset .nx-home .nx-hero { padding:1.5rem; min-height:0; border-radius:18px; }
  .md-typeset .nx-home .nx-hero h1 { font-size:clamp(3.8rem,18vw,6rem); }
  .md-typeset .nx-home .nx-hero__headline { font-size:1.65rem; }
  .nx-hero__facts { gap:1.2rem; }
  .md-typeset .nx-areas { grid-template-columns:1fr !important; }
  .md-typeset .nx-event { grid-template-columns:1fr !important; }
  .nx-event__image img { max-height:400px; }
  .nx-bottom__rings { display:none; }
  .nx-hero__buttons { align-items:stretch; flex-direction:column; }
  .md-typeset .nx-btn { width:100%; }
}
@media (prefers-reduced-motion: reduce) { .md-typeset .nx-area,.md-typeset .nx-event,.md-typeset .nx-btn { transition:none; } }

/* Nexus V4 · community / YouTube / join additions */
.md-typeset .nx-community__grid {
  display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:1rem; margin-top:1.5rem;
}
.md-typeset .nx-community__card {
  min-width:0; display:flex;flex-direction:column; gap:.6rem;
  background:var(--nx-surface); border:1px solid var(--nx-border);
  border-radius:18px; padding:1.45rem;
  box-shadow:0 10px 24px rgba(11,28,58,.05);
}
.nx-community__icon {display:grid;place-items:center;width:3rem;height:3rem; border-radius:12px;
  background:#e7e7ff; color:#533bd2; font-size:1.4rem; font-weight:900; }
.md-typeset .nx-community__card h3 {font-size:1.08rem;color:var(--nx-ink);margin:.4rem 0 0;}
.md-typeset .nx-community__card p {font-size:.78rem;line-height:1.7;color:var(--nx-muted);margin:0 0 .6rem;}
.md-typeset .nx-community__card a {margin-top:auto;}
.nx-community__card--video {border-top:4px solid #ee3f69 !important;}
.nx-community__card--join {border-top:4px solid #51d9e2 !important;}
.nx-community__card--links {border-top:4px solid #9161ed !important;}
.md-typeset .nx-event-detail .nx-text-link {margin-top:1rem;display:inline-flex;}
.md-typeset .nx-video-hero, .md-typeset .nx-join-panel {
  display:grid !important;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr) !important;
  gap:2rem;align-items:center; margin:1.5rem 0 2.4rem; border-radius:24px;
  padding:clamp(1.5rem,4vw,2.8rem);
  background:linear-gradient(130deg,#0b1734,#172650 70%,#251245); color:#fff;
}
.md-typeset .nx-video-hero h2,.md-typeset .nx-join-panel h2 {color:#fff;font-size:clamp(1.4rem,2.5vw,2.2rem);line-height:1.15;margin:.7rem 0;}
.md-typeset .nx-video-hero p,.md-typeset .nx-join-panel p {color:#d3def4;line-height:1.75;}
.nx-video-hero__mark {width:min(100%,200px);aspect-ratio:1;border-radius:50%;
  display:grid;place-items:center;font-size:3.8rem; color:#fff;
  background:radial-gradient(circle at 30% 28%,#9f69f4,#352b82 64%,#171f58);
  box-shadow:0 18px 55px rgba(100,61,209,.32); justify-self:center;}
.nx-join-panel__qr {background:#fff;border-radius:18px;padding:1rem;max-width:240px;justify-self:center;text-align:center;}
.nx-join-panel__qr img {display:block;width:100%;height:auto;}
.md-typeset .nx-join-panel__qr p {color:#263b55;font-size:.7rem;margin:.5rem 0 0;}
.md-typeset .nx-links-panel {display:grid !important;grid-template-columns:minmax(0,1fr) minmax(160px,250px) !important;
  gap:1.4rem;align-items:center;margin:1.1rem 0 2rem;border-radius:18px;
  background:var(--nx-surface); border:1px solid var(--nx-border);padding:1.4rem;}
.nx-links-panel img {max-width:100%;height:auto;justify-self:center;border:1px solid var(--nx-border);border-radius:14px;}
.md-typeset .nx-links-panel h3 {color:var(--nx-ink);}
.md-typeset .nx-links-panel p {color:var(--nx-muted);}
.md-typeset .nx-muted-note {font-size:.72rem;}
@media(max-width:1000px) {
  .md-typeset .nx-community__grid {grid-template-columns:1fr 1fr !important;}
}
@media(max-width:800px) {
  .md-typeset .nx-video-hero,.md-typeset .nx-join-panel,.md-typeset .nx-links-panel {grid-template-columns:1fr !important;}
  .md-typeset .nx-community__grid {grid-template-columns:1fr !important;}
}


/* NEXUS V6 - Afiche institucional: contenida, legible y adaptable */
.md-typeset .nx-home .nx-conoce {
  display:grid !important;
  grid-template-columns:minmax(0,1.4fr) minmax(210px,.6fr) !important;
  gap:clamp(1.3rem,3vw,3.3rem);
  align-items:center;
  padding:clamp(1.4rem,3.5vw,2.6rem);
  margin:2.5rem 0 3rem;
  border:1px solid var(--nx-border);
  border-radius:25px;
  background:linear-gradient(125deg,#effbff,#f7f4ff 75%);
  box-shadow:0 12px 35px rgba(40,71,110,.07);
}
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-conoce {
  background:linear-gradient(125deg,#14263e,#241b43 80%);
}
.nx-conoce__content { min-width:0; }
.md-typeset .nx-conoce h2 {
  margin:.7rem 0 1rem;
  color:var(--nx-ink);
  font-size:clamp(1.8rem,3vw,2.9rem);
  line-height:1.12;
  letter-spacing:-.04em;
}
.md-typeset .nx-conoce h2 em { color:#7854d8; font-style:normal; }
[data-md-color-scheme="slate"] .md-typeset .nx-conoce h2 em { color:#c4a2ff; }
.md-typeset .nx-conoce p { color:var(--nx-muted); max-width:53ch; line-height:1.8; margin:.6rem 0 0; font-size:.88rem; }
.md-typeset .nx-conoce small { display:block; margin-top:1.1rem; font-size:.68rem; color:var(--nx-muted); }
.nx-conoce__actions { display:flex; flex-wrap:wrap; gap:.6rem; margin:1.4rem 0 0; }
.md-typeset .nx-conoce__poster {
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  min-width:0;
  padding:.7rem;
  border-radius:18px;
  background:#fff;
  border:1px solid #e0e6f0;
  overflow:hidden;
  text-decoration:none;
  box-shadow:0 12px 35px rgba(23,39,78,.12);
  transition:transform .18s ease,box-shadow .18s ease;
}
.md-typeset .nx-conoce__poster:hover { transform:translateY(-3px); box-shadow:0 17px 45px rgba(23,39,78,.17); }
.md-typeset .nx-conoce__poster img { display:block; width:auto; max-width:100%; height:auto; max-height:440px; object-fit:contain; margin:0; }
.nx-conoce__expand { position:absolute; bottom:.75rem; left:.75rem; right:.75rem; padding:.55rem .8rem; font-size:.75rem; font-weight:800; text-align:center; color:#1a3151; background:rgba(255,255,255,.93); border-radius:9px; }
@media(max-width:850px) {
  .md-typeset .nx-home .nx-conoce { grid-template-columns:1fr !important; }
  .md-typeset .nx-conoce__poster { max-width:300px; justify-self:center; }
  .md-typeset .nx-conoce__poster img { max-height:470px; }
}
@media(prefers-reduced-motion:reduce) {
  .md-typeset .nx-conoce__poster { transition:none; }
}


/* ==========================================================
   NEXUS V7 · Identidad auténtica, estilos al FINAL para que
   tengan prioridad sobre los estilos heredados de V6.
   ========================================================== */
:root {
  --md-accent-fg-color: #614ad5;
  --nx-background: #f5fafe;
  --nx-ink: #19314f;
  --nx-muted: #586e89;
  --nx-surface: #ffffff;
  --nx-border: #dce8f1;
}
[data-md-color-scheme="slate"] {
  --md-accent-fg-color: #a99afb;
  --nx-background: #101726;
  --nx-ink: #eff5ff;
  --nx-muted: #b7c5d9;
  --nx-surface: #162239;
  --nx-border: #2c3b53;
}
body { background: var(--nx-background); }
/* Cabecera azul noche: el logotipo oficial transparente siempre contrasta. */
.md-header { background: linear-gradient(96deg, #10294b 0%, #172957 65%, #291b52 100%); box-shadow:0 4px 20px rgba(20,40,75,.14); }
.md-tabs { background:#152b52; }
.md-header__topic:first-child, .md-header__button, .md-tabs__link { color:#f6f8ff; }
.md-tabs__link--active, .md-tabs__link:hover { color:#fff; }
.md-header__button.md-logo img, .md-nav__button.md-logo img {
  display:block; height:2.5rem; max-width:6.5rem; width:auto;
  object-fit:contain; border-radius:0; box-shadow:none; background:transparent;
}
.md-search__form { background:rgba(255,255,255,.13); }
.md-search__input { color:#fff; }
/* Hero claro coherente con el logotipo oficial. El modo oscuro usa la versión oscura. */
.md-typeset .nx-home .nx-hero {
  background:linear-gradient(130deg, #fbfdff 0%, #eff9ff 54%, #f6efff 100%);
  color:#1a3454; border:1px solid #dceaf6; box-shadow:0 22px 55px rgba(35,80,121,.10);
}
.md-typeset .nx-home .nx-hero h1 {
  background:linear-gradient(90deg,#0a83d3,#425be6 51%,#8936de);
  -webkit-background-clip:text;background-clip:text;color:transparent;
}
.md-typeset .nx-home .nx-hero__headline { color:#1b3859; }
.md-typeset .nx-home .nx-hero__headline span { color:#7255d7; }
.md-typeset .nx-home .nx-hero__summary { color:#4e6582; }
.md-typeset .nx-home .nx-hero__summary strong { color:#223e61; }
.md-typeset .nx-home .nx-hero__eyebrow { color:#425d88; }
.md-typeset .nx-home .nx-hero__facts { color:#284462; }
.md-typeset .nx-home .nx-hero__facts span { color:#5f7490; }
.md-typeset .nx-btn--ghost { color:#1b426b; background:rgba(255,255,255,.64); border-color:#b9d1e6; }
.md-typeset .nx-btn--ghost:hover { color:#163a63; }
.nx-hero__visual {
  background:#fff; border:1px solid #e6ecf7; border-radius:20px;
}
.nx-hero__visual .nx-logo--light { display:block; }
.nx-hero__visual .nx-logo--dark { display:none; }
.nx-hero__visual img { display:block; width:100%; height:auto; max-height:430px; object-fit:contain; border-radius:16px; }
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-hero {
  background:linear-gradient(130deg,#0d1830,#151e3f 60%,#271d4b);color:#edf7ff;
  border-color:#2c375c;box-shadow:0 22px 55px rgba(0,0,0,.22);
}
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-hero__headline { color:#f2f7ff; }
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-hero__headline span { color:#bd9cff; }
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-hero__summary,
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-hero__facts span { color:#d1dff0; }
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-hero__summary strong { color:#f1f7ff; }
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-hero__eyebrow { color:#a0d9f2; }
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-hero__facts { color:#f4f7ff; }
[data-md-color-scheme="slate"] .nx-hero__visual { background:#0e112a; border-color:#2d3260; }
[data-md-color-scheme="slate"] .nx-hero__visual .nx-logo--light { display:none; }
[data-md-color-scheme="slate"] .nx-hero__visual .nx-logo--dark { display:block; }
[data-md-color-scheme="slate"] .md-typeset .nx-btn--ghost { background:rgba(255,255,255,.05); color:#fff; border-color:#556484; }
/* Llamada final de Linktree, QR legible y clicable. */
.md-typeset .nx-home .nx-bottom {
  background:linear-gradient(130deg,#eefaff 0%,#eff5ff 55%,#f7f0ff 100%);
  border:1px solid #dce9f3;color:#193450;
  box-shadow:0 15px 40px rgba(40,76,118,.08);
}
.md-typeset .nx-home .nx-bottom h2 {color:#1a3354;}
.md-typeset .nx-home .nx-bottom p {color:#536b87;}
.md-typeset .nx-home .nx-bottom .nx-overline {color:#6957b9;}
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-bottom { background:linear-gradient(120deg,#101a31,#23183f);border-color:#303b60; }
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-bottom h2 {color:#fff;}
[data-md-color-scheme="slate"] .md-typeset .nx-home .nx-bottom p {color:#dae2f1;}
.md-typeset .nx-linktree-home { max-width:880px; width:100%; }
.md-typeset .nx-linktree-home__qr { text-decoration:none; transition:transform .2s ease; }
.md-typeset .nx-linktree-home__qr:hover { transform:translateY(-2px); }
.md-typeset .nx-linktree-direct { display:inline-flex; margin-top:.85rem; text-decoration:none; color:#1d5dba; font-weight:850; }
[data-md-color-scheme="slate"] .md-typeset .nx-linktree-direct {color:#91d9f4;}
/* Font and menu contrast, never vertical text. */
.md-typeset .nx-home { min-width:0; }
.md-typeset .nx-home * { overflow-wrap:normal; word-break:normal; }
@media(max-width:820px){
  .md-typeset .nx-home .nx-hero {grid-template-columns:1fr !important;}
  .nx-hero__visual {max-width:450px;margin:auto;}
}
@media(max-width:550px){
  .md-typeset .nx-linktree-home{grid-template-columns:1fr !important;}
  .nx-linktree-home__qr{max-width:260px;justify-self:center;}
}

/* NEXUS V8: alternancia de logos en la cabecera de TODAS las páginas. */
.md-header__button.md-logo img,.md-nav__button.md-logo img {
  content:url("../img/logo-nexus-header-dia.webp") !important;
  height:2.7rem !important;width:6.1rem !important;max-width:6.1rem !important;
  object-fit:contain !important;background:transparent !important;
}
[data-md-color-scheme="slate"] .md-header__button.md-logo img,
[data-md-color-scheme="slate"] .md-nav__button.md-logo img {
  content:url("../img/logo-nexus-header-noche.webp") !important;
}
.md-header {background:linear-gradient(90deg,#fff,#eef9ff 55%,#f0ecff) !important;box-shadow:0 5px 20px rgba(22,57,104,.10)!important;}
.md-tabs {background:#e7f4fc !important;}
.md-header__topic:first-child,.md-header__button,.md-tabs__link {color:#153657 !important;}
[data-md-color-scheme="slate"] .md-header {background:linear-gradient(95deg,#09162c,#14284d 62%,#211a49)!important;}
[data-md-color-scheme="slate"] .md-tabs {background:#122646!important;}
[data-md-color-scheme="slate"] .md-header__topic:first-child,
[data-md-color-scheme="slate"] .md-header__button,
[data-md-color-scheme="slate"] .md-tabs__link {color:#eef5ff!important;}
.md-search__form {background:rgba(145,175,207,.18)!important;}
.md-search__input {color:#153657!important;}
[data-md-color-scheme="slate"] .md-search__form {background:rgba(255,255,255,.08)!important;}
[data-md-color-scheme="slate"] .md-search__input {color:white!important;}
/* Alternancia del logo grande en el inicio */
.nx-hero__visual img.nx-logo--light {display:block!important;}
.nx-hero__visual img.nx-logo--dark {display:none!important;}
[data-md-color-scheme="slate"] .nx-hero__visual img.nx-logo--light {display:none!important;}
[data-md-color-scheme="slate"] .nx-hero__visual img.nx-logo--dark {display:block!important;}
/* Botón de búsqueda de una grabación en el canal oficial */
.md-typeset .nx-recording-link {display:inline-flex;gap:.5rem;align-items:center;margin-top:1rem;padding:.65rem .9rem;border-radius:10px;
 background:linear-gradient(90deg,#e7f7ff,#f1edff);border:1px solid #d1e4f5;color:#174c83;text-decoration:none;font-size:.78rem;font-weight:750;}
.md-typeset .nx-recording-link:hover {background:#e3edff;color:#184579;text-decoration:none;}
[data-md-color-scheme="slate"] .md-typeset .nx-recording-link {background:#223154;border-color:#375277;color:#bfe9ff;}



/* Nexus V10: modal integrado para ampliar afiches, con cierre en el fondo y zoom.
   La imagen no abre nunca otra pestaña y se ajusta a la ventana del visitante. */
.nx-conoce__poster {cursor:zoom-in;}
.nx-lightbox:not([open]) {display:none!important;}
.nx-lightbox[open] {
  display:flex!important; flex-direction:column; gap:0;
  position:fixed; inset:0; width:min(96vw,1080px); max-width:96vw;
  height:min(94dvh,1000px); max-height:94dvh;
  margin:auto; padding:0; overflow:hidden;
  border-radius:18px; border:1px solid rgba(175,207,243,.28);
  background:#0d1428; color:white;
  box-shadow:0 35px 100px rgba(0,0,0,.45);
}
.nx-lightbox::backdrop {background:rgba(3,9,25,.86); backdrop-filter:blur(8px);}
.nx-lightbox__toolbar {
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap;
  gap:.7rem; padding:.65rem 1rem; border-bottom:1px solid #2a3d62;
  background:#111d38; font-weight:750; font-size:.8rem; flex:none;
}
.nx-lightbox__actions {display:flex;gap:.6rem;}
.nx-lightbox__toolbar button {
  font:inherit; font-size:.74rem; font-weight:750; cursor:pointer;
  border-radius:8px; padding:.48rem .75rem; border:1px solid #5c74ab;
  background:#23365c; color:white;
}
.nx-lightbox__toolbar button:hover,.nx-lightbox__toolbar button:focus-visible {
  background:#38578b; outline-offset:2px;
}
.nx-lightbox__stage {
  flex:1; min-height:0; width:100%; overflow:auto;
  display:flex; justify-content:center; align-items:flex-start;
  overscroll-behavior:contain; padding:.7rem;
}
.md-typeset .nx-lightbox__image {
  display:block; width:auto!important; height:auto!important;
  max-width:100%!important; max-height:calc(94dvh - 7.2rem)!important;
  object-fit:contain; margin:0 auto; border-radius:5px;
  box-shadow:0 9px 30px rgba(0,0,0,.3); background:white;
}
.nx-lightbox.is-zoomed .nx-lightbox__stage {display:block;text-align:center;}
.md-typeset .nx-lightbox.is-zoomed .nx-lightbox__image {
  width:min(900px,155vw)!important; height:auto!important;
  max-width:none!important; max-height:none!important;
  margin:0 auto; cursor:zoom-out;
}
.nx-lightbox__hint {
  margin:0; padding:.43rem .8rem; text-align:center; flex:none;
  background:#111d38; color:#c5d9f2!important; font-size:.65rem;
}
@media(max-width:600px){
 .nx-lightbox[open] {width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; border-radius:0;}
 .nx-lightbox__toolbar {padding:.5rem .65rem;}
 .md-typeset .nx-lightbox__image {max-height:calc(100dvh - 8rem)!important;}
 .md-typeset .nx-lightbox.is-zoomed .nx-lightbox__image {max-height:none!important;}
}
@media(prefers-reduced-motion:reduce){
  .nx-lightbox::backdrop{backdrop-filter:none;}
}
