/* =========================================================
   NEUROGEN — estilo base ITGENERA / IMCF
   Mobile-first · breakpoints: 640 (tablet), 960 (escritorio)
   ========================================================= */

:root {
  --bg: #071b38;
  --bg-2: #0a2245;
  --bg-3: #0a2140;
  --bg-foot: #051329;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, .8);
  --muted: rgba(255, 255, 255, .55);
  --faint: rgba(255, 255, 255, .35);
  --accent: #83c0d0;
  --blue: #4d9fff;
  --cyan: #00d4ff;
  --line: rgba(100, 180, 255, .1);
  --line-2: rgba(100, 180, 255, .2);
  --label: rgba(100, 180, 255, .5);
  --card: rgba(255, 255, 255, .03);
  --card-hover: rgba(100, 180, 255, .06);
  --header-h: 58px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --f-head: "Orbitron", sans-serif;
  --f-body: "Exo 2", system-ui, sans-serif;
  --f-serif: "Cormorant Garamond", Georgia, serif;
  --cyan-2: #5fd3f3;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body); font-size: 16px; line-height: 1.65; font-weight: 400;
  color: var(--text); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--cyan); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--accent); color: #000; padding: 8px 14px; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ---------- Labels (estilo ITGENERA) ---------- */
.tag, .sc-label {
  font-family: var(--f-head); font-size: 10px; letter-spacing: 3.5px; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px;
}
.tag { color: var(--accent); margin-bottom: 16px; }
.tag::before { content: ""; width: 18px; height: 1px; background: var(--accent); }
.sc-label { color: var(--label); margin-bottom: 22px; }
.sc-label::before { content: ""; width: 24px; height: 1px; background: rgba(100, 180, 255, .35); }
.sc-label--tight { margin: 26px 0 0; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(7, 27, 56, .55);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: background .3s, border-color .3s;
}
.header.is-scrolled { background: rgba(7, 27, 56, .92); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 16px; }

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark { display: block; height: 34px; width: auto; filter: drop-shadow(0 0 6px rgba(95, 211, 243, .35)); }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__txt b { font-family: var(--f-serif); font-weight: 500; font-size: 24px; letter-spacing: 3px; color: #fff; }
.logo__txt small { display: none; margin-top: 4px; font-size: 8.5px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
@media (min-width: 480px) { .logo__txt small { display: block; } }

.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  display: flex; flex-direction: column;
  background: rgba(7, 27, 56, .98); border-bottom: 1px solid var(--line);
  transform: translateY(-110%); opacity: 0; visibility: hidden;
  transition: transform .4s var(--ease), opacity .3s, visibility .4s;
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav a {
  font-family: var(--f-head); font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--muted); padding: 18px 20px; border-top: 1px solid var(--line);
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.is-active { color: var(--text); background: rgba(100, 180, 255, .05); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; align-items: center; }
.lang__btn { font-size: 13px; font-weight: 500; letter-spacing: 1px; color: var(--faint); padding: 8px 8px; min-height: 40px; transition: color .2s; }
.lang__btn[aria-pressed="true"] { color: #fff; }
.lang__btn:hover { color: var(--text); }
.lang__sep { color: var(--line-2); }

.burger { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line-2); }
.burger span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  font-family: var(--f-head); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  border: 1px solid var(--line-2); transition: all .25s var(--ease);
}
.btn--primary { background: var(--accent); border-color: var(--accent); color: #021019; }
.btn--primary:hover { background: #a5d6e3; }
.btn--ghost { background: rgba(7, 27, 56, .5); color: var(--text-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden; isolation: isolate;
  display: flex; align-items: flex-end; background: var(--bg);
}
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: .8; z-index: -3; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__ov {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(7, 27, 56, .2) 0%, rgba(7, 27, 56, .55) 45%, rgba(7, 27, 56, .95) 100%);
}
.hero__txt { width: 100%; padding: calc(var(--header-h) + 40px) 16px 56px; animation: slideLeft .7s var(--ease) .1s both; }
.hero__name {
  font-family: var(--f-head); font-weight: 700; font-size: clamp(38px, 11vw, 88px);
  letter-spacing: 3px; line-height: 1.05; margin-bottom: 16px; text-shadow: 0 2px 24px rgba(0, 0, 0, .8);
}
@keyframes slideLeft { from { opacity: 0; transform: translateX(-24px); } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; border-bottom: 1px solid var(--line); }
.section--alt { background: var(--bg-2); }
.section__title { font-family: var(--f-head); font-weight: 700; font-size: clamp(22px, 4.5vw, 36px); letter-spacing: 1px; line-height: 1.2; margin-bottom: 14px; }
.section__lead { color: var(--muted); font-weight: 300; max-width: 680px; margin-bottom: 36px; font-size: 16px; }

/* ---------- Library ---------- */
.toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.search {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px;
  background: rgba(7, 27, 56, .6); border: 1px solid var(--line-2); transition: border-color .25s;
}
.search:focus-within { border-color: var(--accent); }
.search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; }
.search input::placeholder { color: var(--faint); }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 10px 14px; min-height: 40px;
  font-family: var(--f-head); font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); background: rgba(7, 27, 56, .5); transition: all .2s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #021019; }

.cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
.card {
  --c: var(--accent);
  display: flex; flex-direction: column; width: 100%; text-align: left;
  padding: 24px 22px; background: var(--card);
  border: 1px solid var(--line); border-top: 2px solid color-mix(in srgb, var(--c) 55%, transparent);
  transition: transform .25s, border-color .25s, background .25s, box-shadow .25s;
  animation: floatUp .45s var(--ease) both;
}
.card:hover { transform: translateY(-5px); border-top-color: var(--c); background: var(--card-hover); box-shadow: 0 8px 32px rgba(0, 0, 0, .3); }
@keyframes floatUp { from { opacity: 0; transform: translateY(14px); } }
.card__tag { font-family: var(--f-head); font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--c); margin-bottom: 12px; }
.card__title { display: block; font-family: var(--f-head); font-weight: 700; font-size: 15px; letter-spacing: .5px; line-height: 1.35; margin-bottom: 10px; }
.card__text { display: block; flex: 1; color: var(--muted); font-weight: 300; font-size: 15px; line-height: 1.65; margin-bottom: 18px; }
.card__more { font-family: var(--f-head); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); transition: color .2s; }
.card:hover .card__more { color: var(--cyan); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(1, 6, 14, .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .3s both; }
.modal__dialog {
  position: relative; width: 100%; max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-2); border: 1px solid var(--line-2); border-bottom: 0;
  padding: 26px 18px calc(28px + env(safe-area-inset-bottom));
  animation: sheet .4s var(--ease) both;
}
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(100%); } }
.modal__close { position: sticky; top: 0; float: right; z-index: 2; width: 40px; height: 40px; font-size: 24px; line-height: 1; color: var(--accent); border: 1px solid var(--line-2); background: var(--bg-2); }
.modal__close:hover { border-color: var(--accent); }
.modal__head { padding-right: 50px; margin-bottom: 22px; }
.modal__head h2 { font-family: var(--f-head); font-size: clamp(19px, 4.5vw, 28px); letter-spacing: .5px; line-height: 1.3; margin: 4px 0 12px; }
.modal__head p { color: var(--text-2); font-weight: 300; margin-bottom: 14px; }
.modal__prev { display: inline-block; font-size: 14px; color: var(--muted); padding: 8px 12px; border-left: 2px solid var(--accent); background: rgba(100, 180, 255, .05); }
.modal__prev b { color: var(--text); font-weight: 500; }
.modal__grid { display: grid; gap: 12px; }

.box { padding: 18px 18px; background: rgba(7, 27, 56, .6); border: 1px solid var(--line-2); border-left: 2px solid var(--c, var(--accent)); }
.box h4 { font-family: var(--f-head); font-size: 10px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.box ul { list-style: none; display: grid; gap: 8px; }
.box li { position: relative; padding-left: 18px; color: var(--text-2); font-weight: 300; font-size: 15px; line-height: 1.55; }
.box li::before { content: "◇"; position: absolute; left: 0; top: 0; font-size: 10px; line-height: 2.3; color: var(--c, var(--accent)); }
.box--doctor { border-left-color: #e0b04d; }
.box--doctor h4 { color: #e0b04d; }
.box--doctor p { color: var(--text-2); font-weight: 300; }

/* ---------- Messengers ---------- */
.balance { display: grid; gap: 18px; }
.balance__tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.balance__tabs::-webkit-scrollbar { display: none; }
.mol {
  --c: var(--accent);
  flex: none; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 14px 10px 10px; background: var(--card); border: 1px solid var(--line); border-left: 2px solid transparent;
  transition: all .25s;
}
.mol:hover { background: var(--card-hover); }
.mol__dot {
  flex: none; min-width: 40px; height: 36px; padding: 0 6px; display: grid; place-items: center; white-space: nowrap;
  font-family: var(--f-head); font-size: 10px; font-weight: 700; color: var(--c);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
}
.mol__name { font-family: var(--f-head); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; line-height: 1.3; }
.mol__type { display: block; font-family: var(--f-body); font-size: 12px; letter-spacing: .5px; text-transform: none; color: var(--faint); font-weight: 400; }
.mol[aria-selected="true"] { border-color: color-mix(in srgb, var(--c) 45%, transparent); border-left-color: var(--c); background: color-mix(in srgb, var(--c) 8%, transparent); }

.balance__panel {
  --c: var(--accent);
  position: relative; overflow: hidden; padding: 26px 18px;
  background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--c);
}
.balance__panel::before { content: ""; position: absolute; top: -140px; right: -140px; width: 320px; height: 320px; border-radius: 50%; background: var(--c); opacity: .1; filter: blur(70px); }
.panel-anim { animation: slideUp .45s var(--ease) both; }
@keyframes slideUp { from { transform: translateY(12px); } }
.panel__intro { position: relative; display: grid; gap: 18px; margin-bottom: 24px; }
.panel__intro .tag { color: var(--c); }
.panel__intro .tag::before { background: var(--c); }
.panel__intro h3 { font-family: var(--f-head); font-size: clamp(22px, 4.5vw, 32px); letter-spacing: 1px; margin-bottom: 10px; }
.panel__intro p { color: var(--text-2); font-weight: 300; }
.molecule { width: 110px; height: 110px; margin: 0 auto; color: var(--c); }
.molecule .spin { transform-origin: 60px 60px; animation: spin 20s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.meter__labels { display: flex; justify-content: space-between; font-family: var(--f-head); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--faint); }
.meter { position: relative; height: 4px; margin: 10px 0 24px; background: linear-gradient(90deg, var(--blue), var(--accent) 40%, var(--accent) 60%, #e0b04d); }
.meter__mark { position: absolute; top: 50%; left: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #fff; transform: rotate(45deg); box-shadow: 0 0 12px rgba(131, 192, 208, .8); animation: sway 5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { left: 30%; } 50% { left: 70%; } }
.panel__cols { position: relative; display: grid; gap: 12px; }

/* ---------- IMCF ---------- */
.sys-info { position: relative; min-height: 100vh; min-height: 100svh; background: var(--bg-3); overflow: hidden; display: flex; align-items: flex-end; }
.sys-info picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; opacity: .8; background: #071b38; }
.sys-info-ov { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 27, 56, .25) 0%, rgba(7, 27, 56, .75) 45%, rgba(7, 27, 56, .97) 100%); }
.sys-info-txt { position: relative; z-index: 2; width: 100%; padding: calc(var(--header-h) + 40px) 16px 56px; }
.sys-info-name { font-family: var(--f-head); font-weight: 700; font-size: clamp(38px, 9vw, 64px); letter-spacing: 2px; line-height: 1.05; margin-bottom: 16px; text-shadow: 0 2px 20px rgba(0, 0, 0, .8); }
.sys-info-tagline { font-size: clamp(16px, 1.6vw, 20px); color: var(--accent); line-height: 1.4; margin-bottom: 18px; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }
.sys-info-desc { font-size: 16px; color: var(--text-2); font-weight: 300; line-height: 1.8; max-width: 520px; text-shadow: 0 1px 10px rgba(0, 0, 0, .9); }

.float-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
.float-box { background: rgba(7, 27, 56, .65); border: 1px solid var(--line-2); border-left: 2px solid var(--accent); padding: 14px 16px; transition: background .25s, border-left-color .25s, transform .25s; }
.float-box:hover { background: rgba(100, 180, 255, .08); border-left-color: var(--blue); transform: translateX(3px); }
.fb-label { font-family: var(--f-head); font-size: 9px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.fb-title { font-family: var(--f-head); font-size: 11px; font-weight: 700; letter-spacing: .5px; line-height: 1.45; margin-bottom: 6px; }
.fb-desc { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.55; }

.sys-content { background: var(--bg-3); }
.sc-section { padding: 48px 0; border-bottom: 1px solid rgba(100, 180, 255, .08); }
.sc-highlight { padding: 40px 0; border-bottom: 1px solid rgba(100, 180, 255, .08); }
.sc-hl-tag { font-family: var(--f-head); font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; line-height: 1.6; }
.sc-hl-text { font-size: clamp(18px, 2vw, 24px); color: var(--text-2); font-weight: 300; font-style: italic; line-height: 1.5; }
.sc-grid4, .sc-grid3 { display: grid; grid-template-columns: 1fr; gap: 14px; }
.enfoque__services { margin: 32px 0 8px; }
.enfoque__areas .sc-title { margin: 0; }
#enfoque .sc-label--tight { margin: 44px 0 20px; }
.sc-card { background: var(--card); border: 1px solid var(--line); border-top: 2px solid rgba(100, 180, 255, .3); padding: 26px 22px; transition: transform .25s, border-color .25s, background .25s, box-shadow .25s; }
.sc-card:hover { transform: translateY(-5px); border-top-color: var(--accent); background: rgba(100, 180, 255, .05); box-shadow: 0 8px 32px rgba(0, 0, 0, .3); }
.sc-icon { font-size: 26px; margin-bottom: 12px; color: var(--accent); }
.sc-title { font-family: var(--f-head); font-size: 12px; font-weight: 700; letter-spacing: 1px; line-height: 1.45; margin-bottom: 10px; }
.sc-desc { font-size: 15px; color: var(--muted); font-weight: 300; line-height: 1.7; }
.sc-intro { color: var(--muted); font-weight: 300; max-width: 820px; margin-bottom: 22px; }

.logo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.logo-item { position: relative; display: flex; align-items: center; justify-content: center; min-height: 72px; padding: 12px; text-align: center; background: var(--card); border: 1px solid rgba(100, 180, 255, .08); transition: background .25s, border-color .25s; }
.logo-item:hover { background: rgba(100, 180, 255, .06); border-color: var(--line-2); }
.logo-item img { display: none; max-width: 100%; max-height: 48px; object-fit: contain; filter: grayscale(1) brightness(1.6) opacity(.55); transition: filter .25s; }
.logo-item span { font-size: 12px; line-height: 1.35; color: var(--muted); letter-spacing: .3px; }
.logo-item.has-img img { display: block; }
.logo-item.has-img span { display: none; }
.logo-item:hover img { filter: none; }

.sc-quote-block { padding: 60px 0 30px; text-align: center; }
.sc-quote-logo {
  width: 260px; max-width: 75%; margin: 0 auto 26px;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at center, #000 60%, transparent 100%);
}
.sc-quote-txt { font-size: clamp(18px, 2.2vw, 26px); color: rgba(255, 255, 255, .75); font-weight: 300; font-style: italic; line-height: 1.6; max-width: 800px; margin: 0 auto 16px; }
.sc-quote-sub { font-family: var(--f-head); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--label); }

/* ---------- Footer ---------- */
.footer { background: var(--bg-foot); border-top: 1px solid var(--line); padding: 26px 16px calc(20px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer__disclaimer { font-size: 13px; color: var(--faint); max-width: 760px; line-height: 1.6; }
.f-copy { font-size: 12px; color: rgba(255, 255, 255, .25); line-height: 1.9; max-width: 900px; }
.f-mail { color: var(--blue); font-size: 14px; transition: color .2s; padding: 6px; }
.f-mail:hover { color: var(--cyan); }

/* ---------- To top ---------- */
.to-top {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40;
  width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--f-head); font-size: 16px; color: var(--cyan);
  background: rgba(7, 27, 56, .88); border: 1px solid rgba(0, 212, 255, .35);
  opacity: 0; pointer-events: none; transition: opacity .3s, border-color .2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }
.to-top:hover { border-color: var(--cyan); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   TABLET ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  .container, .header__inner { padding: 0 32px; }
  .chips, .balance__tabs { margin: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
  .hero__txt, .sys-info-txt { padding-left: 32px; padding-right: 32px; }
  .cards, .sc-grid4 { grid-template-columns: repeat(2, 1fr); }
  .sc-grid3 { grid-template-columns: repeat(3, 1fr); }
  .float-grid { grid-template-columns: 1fr 1fr; }
  .logo-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 96px 0; }
  .modal { align-items: center; padding: 24px; }
  .modal__dialog { max-width: 860px; border-bottom: 1px solid var(--line-2); padding: 34px; animation-name: pop; }
  @keyframes pop { from { opacity: 0; transform: translateY(20px); } }
  .modal__grid, .panel__cols { grid-template-columns: 1fr 1fr; }
  .box--wide { grid-column: 1 / -1; }
  .balance__panel { padding: 34px; }
  .panel__intro { grid-template-columns: 1fr auto; align-items: center; }
  .molecule { width: 130px; height: 130px; margin: 0; }
}

/* =========================================================
   ESCRITORIO ≥ 960px
   ========================================================= */
@media (min-width: 960px) {
  .header__inner { padding: 0 4%; }

  .hero, .sys-info { align-items: center; }
  .hero__ov { background: linear-gradient(105deg, rgba(7, 27, 56, .9) 0%, rgba(7, 27, 56, .55) 40%, rgba(7, 27, 56, 0) 70%); }
  .sys-info-ov { background: linear-gradient(135deg, rgba(7, 27, 56, .9) 0%, rgba(7, 27, 56, .6) 40%, rgba(7, 27, 56, 0) 70%); }
  .hero__img, .sys-info picture img { object-position: center; }
  .hero__txt, .sys-info-txt { width: 52%; padding: calc(var(--header-h) + 40px) 0 60px 5%; }
  .sys-info-txt { width: 50%; }

  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .search { flex: 0 1 380px; }
  .chips { justify-content: flex-end; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .sc-grid4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .logo-grid { grid-template-columns: repeat(5, 1fr); gap: 16px; }

  .balance { grid-template-columns: 270px 1fr; align-items: start; }
  .balance__tabs { flex-direction: column; flex-wrap: nowrap; }
  .mol { padding: 14px 16px 14px 12px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero, .sys-info { min-height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Mensajeros: funciones clave */
.kw { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; }
.kw li { padding: 6px 12px; font-size: 13px; color: var(--text-2); border: 1px solid var(--c, var(--line-2)); background: rgba(100, 180, 255, .04); }

.card__text { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* =========================================================
   NGT SYSTEM
   ========================================================= */
.ngt-badges { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 4px 0 36px; }
.ngt-badges li { font-family: var(--f-head); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.ngt-badges__main { color: var(--accent) !important; font-size: 13px !important; }
.ngt-badges li + li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 22px; vertical-align: middle; background: var(--accent); transform: rotate(45deg) translateY(-2px); opacity: .6; }

.ngt-top { display: grid; gap: 32px; margin-bottom: 48px; }
.ngt-fig { margin: 0; }
.ngt-fig img { width: 100%; height: auto; border: 1px solid var(--line-2); }
.ngt-fig figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.ngt-fig--screen img { box-shadow: 0 24px 60px rgba(0, 0, 0, .6), 0 0 0 1px rgba(131, 192, 208, .25); }

.ngt-steps { list-style: none; display: grid; gap: 22px; }
.ngt-step { display: grid; grid-template-columns: 38px 1fr; gap: 16px; align-items: start; }
.ngt-step__n { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--accent); color: var(--accent); font-family: var(--f-head); font-size: 14px; }
.ngt-step h4 { font-family: var(--f-head); font-size: 13px; letter-spacing: 1px; margin-bottom: 6px; }
.ngt-step p { font-size: 15px; color: var(--text-2); font-weight: 300; }
.ngt-quote { margin-top: 28px; padding: 16px 20px; border-left: 3px solid var(--accent); background: rgba(131, 192, 208, .07); font-size: 16px; line-height: 1.6; color: var(--text); }

/* Monitor */
.ngt-mon { border: 1px solid var(--line-2); background: #06172f; padding: 18px 14px 16px; }
.ngt-mon__head { display: grid; gap: 12px; margin-bottom: 14px; }
.sc-label--flat { margin-bottom: 0; }
.ngt-legend { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ngt-legend li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; padding: 8px 10px; border-left: 2px solid var(--c); background: rgba(255, 255, 255, .025); }
.ngt-legend b { font-family: var(--f-head); font-size: 11px; color: var(--c); letter-spacing: 1px; }
.ngt-legend span { font-size: 12px; color: var(--muted); line-height: 1.3; grid-column: 1 / -1; }
.ngt-legend output { grid-row: 1; grid-column: 2; justify-self: end; font-family: var(--f-head); font-size: 12px; color: var(--text); font-variant-numeric: tabular-nums; }
.ngt-mon__canvas { display: block; width: 100%; height: 300px; background: linear-gradient(180deg, rgba(0, 212, 255, .02), transparent); border: 1px solid var(--line); }

.ngt-mon__ctrl { display: grid; gap: 22px; margin-top: 18px; }
.ngt-progress__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ngt-progress label { font-family: var(--f-head); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--label); }
.ngt-progress output { margin-left: auto; font-size: 14px; color: var(--accent); }
.ngt-play { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--accent); color: var(--accent); font-size: 12px; }
.ngt-play:hover { background: rgba(131, 192, 208, .12); }
.ngt-progress input[type="range"] { width: 100%; accent-color: #83c0d0; height: 28px; }
.ngt-progress__ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }

.ngt-bands__t { font-family: var(--f-head); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--label); margin-bottom: 10px; }
.ngt-bands ul { list-style: none; display: grid; gap: 8px; }
.ngt-bands li { display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 10px; font-size: 13px; }
.ngt-bands li span { color: var(--c); font-weight: 600; }
.ngt-bands i { display: block; height: 8px; background: rgba(255, 255, 255, .06); }
.ngt-bands em { display: block; height: 100%; width: 0; background: var(--c); transition: width .25s linear; }
.ngt-bands output { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }

.ngt-mon__note { margin-top: 18px; font-size: 14px; color: var(--text-2); line-height: 1.6; }
.ngt-mon__note strong { color: var(--accent); font-weight: 600; }
.ngt-mon__sim { margin-top: 8px; font-size: 12px; color: var(--faint); line-height: 1.5; }

/* Bandas */
.fq-grid { display: grid; gap: 14px; }
.fq { background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--c); padding: 20px; }
.fq__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fq__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.fq h4 { font-family: var(--f-head); font-size: 14px; letter-spacing: 1px; }
.fq__hz { margin-left: auto; font-size: 13px; color: var(--c); font-variant-numeric: tabular-nums; }
.fq p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.fq__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fq__tags li { font-size: 12px; padding: 3px 9px; border: 1px solid var(--c); color: var(--c); }

/* Sensor */
.ngt-sensor { display: grid; gap: 22px; align-items: start; }
.ngt-electrodes { list-style: none; display: grid; gap: 12px; }
.ngt-electrodes li { padding: 14px 16px; border-left: 3px solid var(--c); background: var(--card); display: grid; gap: 4px; }
.ngt-electrodes b { font-size: 14px; font-weight: 600; }
.ngt-electrodes span { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* 21 paneles */
.ngt-panels { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ngt-panels li { display: flex; align-items: baseline; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.ngt-panels span { font-family: var(--f-head); font-size: 11px; color: var(--accent); }
.ngt-panels b { font-weight: 400; color: var(--text-2); }
.sc-section--last { border-bottom: 0; padding-bottom: 0; }

@media (min-width: 640px) {
  .ngt-mon { padding: 24px 24px 20px; }
  .ngt-legend { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ngt-mon__canvas { height: 340px; }
  .fq-grid { grid-template-columns: repeat(2, 1fr); }
  .ngt-panels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ngt-sensor { grid-template-columns: repeat(2, 1fr); }
  .ngt-electrodes { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 960px) {
  .ngt-top { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
  .ngt-top:not(:has(figure)) { grid-template-columns: 1fr; max-width: 820px; }
  .ngt-mon__canvas { height: 380px; }
  .ngt-mon__ctrl { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .fq-grid { grid-template-columns: repeat(5, 1fr); }
  .ngt-panels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


/* Menú horizontal: a partir de 1280px (8 accesos) */
@media (min-width: 1280px) {
  .burger { display: none; }
  .nav {
    position: static; transform: none; opacity: 1; visibility: visible;
    flex-direction: row; background: none; border: 0;
  }
  .nav a { font-size: 10px; padding: 19px 12px; border-top: 0; border-right: 1px solid var(--line); position: relative; background: none !important; }
  .nav a:first-child { border-left: 1px solid var(--line); }
  .nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); }
  .nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
}


/* Mensajes clave */
.ngt-quote + .ngt-quote { margin-top: 12px; }
.key-msgs { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.key-msgs li { padding: 14px 18px; border-left: 3px solid var(--accent); background: rgba(131, 192, 208, .07); font-family: var(--f-head); font-weight: 600; font-size: clamp(14px, 1.5vw, 17px); line-height: 1.5; letter-spacing: .3px; color: #fff; }
@media (min-width: 960px) { .key-msgs { grid-template-columns: 1fr 1fr; } }

/* Frases sutiles entre secciones */
.whisper { position: relative; margin: 0 auto; padding: 34px 16px; max-width: 760px; text-align: center; font-size: clamp(14px, 1.4vw, 16px); font-weight: 300; font-style: italic; letter-spacing: .4px; color: rgba(131, 192, 208, .62); }
.whisper::before { content: ""; display: block; width: 28px; height: 1px; margin: 0 auto 14px; background: rgba(131, 192, 208, .35); }
.whisper--foot { padding: 0 16px 26px; }

/* =========================================================
   PORTADA (diseño definitivo)
   ========================================================= */
.hero__img { opacity: 1; }
.hero__name {
  font-family: var(--f-serif); font-weight: 500; font-size: clamp(42px, 7vw, 88px);
  letter-spacing: .07em; line-height: 1; margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0, 0, 0, .7);
}
.hero__sub {
  font-family: var(--f-serif); font-weight: 500; text-transform: uppercase;
  font-size: clamp(14px, 1.45vw, 21px); letter-spacing: .34em; line-height: 1.6; color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .9);
}
.hero__sub span { display: block; }
.hero__lead {
  margin: 34px 0 40px; padding: 2px 0 2px 26px; border-left: 2px solid var(--cyan-2);
  font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: clamp(26px, 3vw, 44px); line-height: 1.22; color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .85);
}
.hero__lead em { color: var(--cyan-2); }
.hero__quote {
  position: relative; max-width: 34em; padding-left: 40px;
  font-size: clamp(12px, 1vw, 14px); font-weight: 500; letter-spacing: .26em; line-height: 1.85; text-transform: uppercase; color: rgba(255, 255, 255, .88);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .9);
}
.hero__quote::before, .hero__quote span::after { font-family: var(--f-serif); font-weight: 600; font-style: normal; color: var(--cyan-2); letter-spacing: 0; line-height: 0; }
.hero__quote::before { content: "“"; position: absolute; left: 0; top: 22px; font-size: 52px; }
.hero__quote span::after { content: "”"; font-size: 40px; position: relative; top: 14px; margin-left: 6px; }

@media (min-width: 960px) {
  .hero__ov { background: linear-gradient(100deg, rgba(7, 27, 56, .78) 0%, rgba(7, 27, 56, .4) 34%, rgba(7, 27, 56, 0) 58%); }
  .hero__txt { width: 50%; padding-left: 5.5%; }
}

/* Menú horizontal: estilo limpio */
@media (min-width: 1280px) {
  .header { background: rgba(7, 27, 56, .5); }
  .nav a { font-family: var(--f-body); font-size: 11.5px; font-weight: 500; letter-spacing: 1.6px; color: rgba(255, 255, 255, .88); padding: 20px 9px; border: 0 !important; }
  .nav a::after { left: 9px; right: 9px; background: var(--cyan-2); }
  .nav a.is-active, .nav a:hover { color: var(--cyan-2); }
}
@media (min-width: 1600px) {
  .nav a { font-size: 12px; letter-spacing: 2.4px; padding: 20px 16px; }
  .nav a::after { left: 16px; right: 16px; }
}

.nav a { white-space: nowrap; }
.logo__txt small { max-width: 250px; line-height: 1.35; }

/* =========================================================
   RED CIENTÍFICA
   ========================================================= */
.red { background: var(--bg-2); }
.red .sc-hl-text { margin-top: 6px; }
.red__kicker { margin-top: 14px; font-size: 16px; font-style: italic; font-weight: 300; color: rgba(131, 192, 208, .8); }
.red__text { max-width: 780px; margin-top: 26px; display: grid; gap: 14px; }
.red__text p { font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--text-2); }
.red__statement { margin-top: 30px; padding: 4px 0 4px 22px; border-left: 2px solid var(--cyan-2); font-family: var(--f-serif); font-style: italic; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.3; color: #fff; }
.red__profiles { margin-top: 28px; }
.red .sc-icon { font-family: var(--f-head); font-size: 12px; color: var(--accent); margin-bottom: 10px; }
.red__cta { margin-top: 56px; padding: 32px 22px; border: 1px solid rgba(131, 192, 208, .35); background: linear-gradient(135deg, rgba(131, 192, 208, .08), rgba(7, 27, 56, 0) 60%); }
.red__cta-title { font-family: var(--f-serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: .04em; line-height: 1.1; }
.red__cta-lead { margin-top: 10px; font-family: var(--f-serif); font-style: italic; font-size: clamp(19px, 2vw, 24px); color: var(--cyan-2); }
.red__cta .red__text { margin-top: 20px; }
.red__cta-close { margin-top: 22px; font-weight: 500; color: #fff; max-width: 780px; }
.red__btn { margin-top: 26px; }
@media (min-width: 960px) { .red__cta { padding: 48px 52px; } }
@media (min-width: 1280px) and (max-width: 1599px) {
  .nav a { padding: 20px 7px; letter-spacing: 1.2px; font-size: 11px; }
  .nav a::after { left: 7px; right: 7px; }
}
.logo { flex-shrink: 0; }
.logo__txt small { width: 230px; }

/* Socios: pilares, perfiles, principios */
.pillars { display: grid; gap: 16px; margin-top: 26px; }
.pillar { position: relative; padding: 26px 22px 24px; background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--cyan-2); }
.pillar__n { font-family: var(--f-serif); font-size: 44px; line-height: 1; color: rgba(95, 211, 243, .35); }
.pillar__t { margin-top: 10px; font-family: var(--f-head); font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.pillar__tag { margin: 8px 0 12px; font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--cyan-2); }
.pillar p:not(.pillar__tag) { font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--text-2); }
.pillar p + p:not(.pillar__tag) { margin-top: 10px; }
.profiles { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.profiles li { padding: 14px 16px 14px 40px; position: relative; border: 1px solid var(--line); background: var(--card); font-size: 15px; color: var(--text-2); }
.profiles li::before { content: "◇"; position: absolute; left: 16px; top: 14px; color: var(--accent); font-size: 12px; line-height: 1.9; }
.principles { list-style: none; counter-reset: pr; display: grid; gap: 10px; margin-top: 22px; }
.principles li { counter-increment: pr; display: flex; align-items: baseline; gap: 14px; padding: 14px 18px; border-left: 2px solid var(--cyan-2); background: rgba(131, 192, 208, .06); font-family: var(--f-serif); font-size: clamp(18px, 1.8vw, 22px); color: #fff; }
.principles li::before { content: counter(pr, decimal-leading-zero); font-family: var(--f-head); font-size: 11px; color: var(--accent); }
@media (min-width: 640px) { .profiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .pillars { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .profiles { grid-template-columns: repeat(3, 1fr); }
  .principles { grid-template-columns: repeat(5, 1fr); }
  .principles li { flex-direction: column; gap: 8px; }
}

/* Banda destacada: expansión */
.exp { position: relative; padding: 64px 0; border-top: 1px solid rgba(95, 211, 243, .25); border-bottom: 1px solid rgba(95, 211, 243, .25);
  background: radial-gradient(ellipse 60% 120% at 85% 50%, rgba(95, 211, 243, .12), transparent 70%), linear-gradient(120deg, #031627 0%, #071b38 60%); }
.exp__grid { display: grid; gap: 32px; align-items: center; }
.exp__title { font-family: var(--f-serif); font-weight: 500; font-size: clamp(30px, 3.8vw, 52px); line-height: 1.12; letter-spacing: .01em; }
.exp__lead { margin-top: 16px; max-width: 640px; font-size: 17px; font-weight: 300; line-height: 1.7; color: var(--text-2); }
.exp__items { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
.exp__items li { display: flex; align-items: baseline; gap: 10px; padding: 14px 14px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); }
.exp__items span { font-family: var(--f-head); font-size: 11px; color: var(--cyan-2); }
.exp__items b { font-weight: 500; font-size: 15px; color: #fff; }
.exp__cta { padding: 30px 26px; border: 1px solid rgba(95, 211, 243, .45); background: rgba(7, 27, 56, .6); box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.exp__cta-t { font-family: var(--f-serif); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
.exp__cta p { margin: 12px 0 24px; font-size: 16px; font-weight: 300; line-height: 1.65; color: var(--text-2); }
.exp__cta .btn { width: 100%; }
@media (min-width: 960px) {
  .exp { padding: 88px 0; }
  .exp__grid { grid-template-columns: 1.5fr 1fr; gap: 64px; }
  .exp__items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .exp__items li { flex-direction: column; gap: 6px; }
}

/* =========================================================
   ÁREAS DE CONOCIMIENTO
   ========================================================= */
.areas__title { font-family: var(--f-serif); font-weight: 500; font-size: clamp(32px, 4vw, 54px); line-height: 1.1; margin-bottom: 12px; }
.area-cards { display: grid; gap: 16px; margin-top: 8px; }
.area-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 230px; padding: 30px 26px 26px;
  background: linear-gradient(160deg, #0c2a52 0%, #08203f 70%); border: 1px solid rgba(95, 211, 243, .14);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; overflow: hidden;
}
.area-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--c); opacity: .7; }
.area-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, var(--c), transparent 70%); opacity: .08; transition: opacity .3s; }
.area-card:hover { transform: translateY(-6px); border-color: rgba(95, 211, 243, .4); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.area-card:hover::after { opacity: .18; }
.area-card__n { font-family: var(--f-serif); font-size: 46px; line-height: 1; color: var(--c); opacity: .8; }
.area-card__name { font-family: var(--f-serif); font-weight: 500; font-size: clamp(22px, 2vw, 27px); line-height: 1.2; color: #fff; }
.area-card__tag { font-size: 15px; font-weight: 300; font-style: italic; line-height: 1.6; color: var(--text-2); }
.area-card__go { margin-top: auto; padding-top: 10px; font-family: var(--f-head); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan-2); }

.area-hero { padding: calc(var(--header-h) + 64px) 0 56px; background: radial-gradient(ellipse 70% 100% at 80% 0%, rgba(95, 211, 243, .1), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.area-hero__title { font-family: var(--f-serif); font-weight: 500; font-size: clamp(40px, 6vw, 80px); line-height: 1.05; letter-spacing: .02em; }
.area-hero__sub { margin-top: 12px; font-family: var(--f-serif); font-style: italic; font-size: clamp(20px, 2.4vw, 30px); color: var(--cyan-2); }

.area-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 36px; scrollbar-width: thin; }
.area-tab { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); font-size: 14px; color: var(--text-2); text-align: left; transition: border-color .2s, color .2s, background .2s; }
.area-tab span { font-family: var(--f-serif); font-size: 20px; color: var(--c); }
.area-tab:hover { color: #fff; border-color: rgba(95, 211, 243, .4); }
.area-tab[aria-selected="true"] { color: #fff; border-color: var(--c); background: rgba(95, 211, 243, .08); }
.area-panel { padding-left: 22px; border-left: 2px solid var(--c); max-width: 860px; }
.area-panel__n { font-family: var(--f-serif); font-size: 56px; line-height: 1; color: var(--c); }
.area-panel__name { margin-top: 6px; font-family: var(--f-serif); font-weight: 500; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.12; }
.area-panel__tag { margin-top: 12px; font-family: var(--f-serif); font-style: italic; font-size: clamp(19px, 2vw, 24px); color: var(--cyan-2); }
.area-panel__desc { margin-top: 14px; font-size: 17px; font-weight: 300; line-height: 1.75; color: var(--text-2); }
.area-fichas-label { margin: 48px 0 20px; }

@media (min-width: 640px) { .area-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .area-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .area-tabs { flex-wrap: wrap; overflow: visible; }
}
.area-panel__desc + .area-panel__desc { margin-top: 10px; }
.area-panel__close { margin-top: 18px; font-weight: 600; font-size: 17px; line-height: 1.6; color: #fff; }

/* =========================================================
   TECNOLOGÍAS + METABOLIC
   ========================================================= */
.tech-cards { display: grid; gap: 16px; margin-top: 28px; }
.tech-card { display: flex; flex-direction: column; gap: 12px; padding: 34px 28px; min-height: 210px; border: 1px solid rgba(95, 211, 243, .2);
  background: radial-gradient(ellipse 80% 100% at 100% 0%, rgba(95, 211, 243, .12), transparent 60%), linear-gradient(160deg, #0c2a52, #08203f 70%);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.tech-card:hover { transform: translateY(-6px); border-color: rgba(95, 211, 243, .5); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.tech-card__name { font-family: var(--f-head); font-weight: 700; font-size: clamp(19px, 2vw, 26px); letter-spacing: 3px; }
.tech-card__desc { font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--text-2); }
.tech-card__go { margin-top: auto; font-family: var(--f-head); font-size: 10.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan-2); }

.met { background: radial-gradient(ellipse 60% 50% at 90% 0%, rgba(251, 191, 36, .07), transparent 60%), var(--bg); }
.met__name { font-family: var(--f-head); font-weight: 700; font-size: clamp(30px, 4.6vw, 60px); letter-spacing: .08em; line-height: 1; }
.met__sub { margin-top: 14px; font-family: var(--f-serif); font-weight: 500; text-transform: uppercase; letter-spacing: .25em; font-size: clamp(13px, 1.4vw, 18px); color: rgba(255, 255, 255, .85); }
.met__claim { margin-top: 34px; padding-left: 24px; border-left: 2px solid var(--cyan-2); max-width: 820px; }
.met__claim-t { font-family: var(--f-serif); font-style: italic; font-size: clamp(26px, 3vw, 42px); line-height: 1.2; color: #fff; }
.met__claim-s { margin-top: 12px; font-size: 16px; font-weight: 300; line-height: 1.65; color: var(--text-2); }
.mod-cards { display: grid; gap: 14px; margin-top: 8px; }
.mod-card { display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 26px 22px; min-height: 190px; border: 1px solid var(--line-2); background: var(--card);
  transition: transform .3s var(--ease), border-color .3s, background .3s; }
.mod-card:hover { transform: translateY(-5px); border-color: rgba(95, 211, 243, .5); background: rgba(95, 211, 243, .05); }
.mod-card__n { font-family: var(--f-serif); font-size: 40px; line-height: 1; color: var(--cyan-2); opacity: .75; }
.mod-card__name { font-family: var(--f-head); font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: #fff; }
.mod-card__tag { font-size: 14px; font-style: italic; font-weight: 300; line-height: 1.55; color: var(--text-2); }
.mod-card__go { margin-top: auto; padding-top: 8px; font-family: var(--f-head); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--cyan-2); }
.met__note { margin-top: 26px; text-align: center; font-style: italic; font-weight: 300; color: rgba(131, 192, 208, .75); }
.met__close { margin-top: 40px; padding: 34px 20px; text-align: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.met__close span { display: block; font-family: var(--f-head); font-weight: 700; font-size: 14px; letter-spacing: .5em; color: var(--cyan-2); }
.met__close p { margin-top: 12px; font-family: var(--f-serif); font-style: italic; font-size: clamp(24px, 2.8vw, 38px); line-height: 1.25; color: #fff; }
.modal__tagline { font-family: var(--f-serif); font-style: italic; font-size: 20px; color: var(--cyan-2) !important; }
.modal__text { display: grid; gap: 12px; padding: 0 0 8px; }
.modal__text p { font-size: 16px; font-weight: 300; line-height: 1.75; color: var(--text-2); }
@media (min-width: 640px) { .mod-cards { grid-template-columns: repeat(2, 1fr); } .tech-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .mod-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; } .tech-cards { gap: 24px; } }

/* =========================================================
   FONDO BIOLÓGICO ANIMADO
   Las secciones pasan a ser semitransparentes para dejarlo ver.
   ========================================================= */
.bio-bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 1; transition: opacity .8s ease; }
.bio-bg.is-hidden { opacity: 0; }
.section { background: transparent; }
.section--alt, .red { background: rgba(10, 34, 69, .35); }
.sys-content { background: rgba(7, 27, 56, .6); }
.met { background: radial-gradient(ellipse 60% 50% at 90% 0%, rgba(251, 191, 36, .07), transparent 60%), rgba(7, 27, 56, .25); }
.area-hero { background: radial-gradient(ellipse 70% 100% at 80% 0%, rgba(95, 211, 243, .1), transparent 60%), rgba(7, 27, 56, .3); }
.exp { background: radial-gradient(ellipse 60% 120% at 85% 50%, rgba(95, 211, 243, .12), transparent 70%), linear-gradient(120deg, rgba(3, 22, 39, .85) 0%, rgba(7, 27, 56, .6) 60%); }
.footer { background: rgba(5, 19, 41, .85); }

/* Cabecera del Instituto: mismo tratamiento que la portada */
.sys-info { background: var(--bg); }
.sys-info picture img { opacity: 1; }
.sys-info-ov { background: linear-gradient(180deg, rgba(7, 27, 56, .2) 0%, rgba(7, 27, 56, .55) 45%, rgba(7, 27, 56, .95) 100%); }
.sys-info-name { font-family: var(--f-serif); font-weight: 500; font-size: clamp(52px, 9vw, 116px); letter-spacing: .07em; line-height: 1; margin-bottom: 18px; text-shadow: 0 2px 30px rgba(0, 0, 0, .7); }
.sys-info-tagline { font-family: var(--f-serif); font-weight: 500; text-transform: uppercase; font-size: clamp(14px, 1.45vw, 21px); letter-spacing: .34em; line-height: 1.6; color: rgba(255, 255, 255, .88); margin-bottom: 26px; text-shadow: 0 1px 12px rgba(0, 0, 0, .9); }
.sys-info-tagline span { display: block; }
.sys-info-desc { margin-top: 6px; padding-left: 22px; border-left: 2px solid var(--cyan-2); color: rgba(255, 255, 255, .9); }
@media (min-width: 960px) {
  .sys-info-ov { background: linear-gradient(100deg, rgba(7, 27, 56, .78) 0%, rgba(7, 27, 56, .4) 34%, rgba(7, 27, 56, 0) 58%); }
  .sys-info-txt { width: 50%; padding-left: 5.5%; }
}

/* Más de 25 años investigando */
.years { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 26px; padding: 10px 22px 10px 18px; border: 1px solid rgba(95, 211, 243, .35); background: rgba(7, 27, 56, .45); }
.years b { font-family: var(--f-serif); font-weight: 500; font-size: clamp(42px, 4.4vw, 60px); line-height: 1; color: var(--cyan-2); }
.years__pre, .years__txt { font-family: var(--f-serif); font-weight: 500; text-transform: uppercase; letter-spacing: .26em; font-size: clamp(12px, 1.1vw, 15px); color: rgba(255, 255, 255, .88); }
.sys-info-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }

/* Logo: NEUROGEN ocupa el mismo ancho que la primera línea; la segunda, centrada */
.logo__txt { display: inline-flex; flex-direction: column; align-items: stretch; }
.logo__name { display: flex; justify-content: space-between; letter-spacing: 0 !important; }
.logo__txt small { width: auto !important; max-width: none !important; text-align: center; }
.logo__txt small span { display: block; white-space: nowrap; }

/* ══ Páginas legales ══ */
html:not([lang="en"]) [data-only="en"], html[lang="en"] [data-only="es"] { display: none; }
.legal-toc { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; }
.legal-toc a { font-family: var(--f-label, 'Orbitron', sans-serif); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan-2); border-bottom: 1px solid rgba(95, 211, 243, .35); padding-bottom: 3px; }
.legal-toc a:hover { color: #fff; }
.legal-updated { margin-top: 16px; font-size: 13px; color: var(--faint); }
.legal__body { max-width: 860px; }
.legal__block { padding: 8px 0 40px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal__block + .legal__block { border-top: 1px solid var(--line); padding-top: 40px; }
.legal__block h2 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(28px, 4vw, 42px); color: #fff; margin-bottom: 14px; }
.legal__block h3 { font-size: 16px; font-weight: 600; color: var(--cyan-2); margin: 26px 0 8px; letter-spacing: .02em; }
.legal__block p, .legal__block li { font-size: 15px; line-height: 1.75; color: rgba(255, 255, 255, .78); }
.legal__block p + p { margin-top: 10px; }
.legal__block ul { padding-left: 20px; margin: 8px 0; list-style: disc; }
.legal__block ul.legal__data { list-style: none; padding-left: 0; }
.legal__block ul.legal__data li { padding: 4px 0; }
.legal__block a { color: var(--cyan-2); word-break: break-word; }
.legal__block code { font-size: 13px; background: rgba(95, 211, 243, .1); padding: 1px 6px; border-radius: 4px; }
.legal__note { font-size: 13px; font-style: italic; color: var(--faint); margin-bottom: 24px; }
mark.todo { background: rgba(232, 176, 77, .18); color: #f2c97a; padding: 0 4px; border-radius: 3px; }
.f-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.f-legal a { font-size: 12px; color: rgba(255, 255, 255, .45); padding: 4px 2px; transition: color .2s; }
.f-legal a:hover { color: var(--cyan); }

/* Fondo general: azul noche más luminoso, en la línea de las imágenes */
body { background: radial-gradient(ellipse 90% 60% at 80% 10%, rgba(40, 90, 170, .22), transparent 70%), radial-gradient(ellipse 70% 50% at 10% 90%, rgba(30, 80, 160, .18), transparent 70%), var(--bg); background-attachment: fixed; }

/* ══ Cuadros: bruma luminosa en movimiento y sombra suave ══ */
.sc-card, .tech-card, .mod-card, .card, .fq, .pillar, .area-card {
  position: relative; isolation: isolate; overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 6, 20, .45), inset 0 0 60px rgba(95, 211, 243, .05);
}
.sc-card::after, .tech-card::after, .mod-card::after, .card::after, .fq::after, .pillar::after {
  content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(closest-side at 30% 35%, rgba(95, 211, 243, .16), transparent),
    radial-gradient(closest-side at 72% 68%, rgba(77, 159, 255, .13), transparent),
    radial-gradient(closest-side at 60% 20%, rgba(232, 176, 77, .07), transparent);
  filter: blur(18px); opacity: .9;
  animation: mist 16s ease-in-out infinite alternate;
}
.sc-card:nth-child(2n)::after, .mod-card:nth-child(2n)::after, .card:nth-child(2n)::after, .fq:nth-child(2n)::after, .pillar:nth-child(2n)::after, .tech-card:nth-child(2n)::after { animation-duration: 21s; animation-delay: -7s; }
.sc-card:nth-child(3n)::after, .mod-card:nth-child(3n)::after, .card:nth-child(3n)::after, .fq:nth-child(3n)::after, .pillar:nth-child(3n)::after { animation-duration: 18s; animation-delay: -12s; animation-direction: alternate-reverse; }
.area-card::after { animation: mist 18s ease-in-out infinite alternate; z-index: -1; }
@keyframes mist {
  0%   { transform: translate(-8%, -6%) rotate(0deg) scale(1); }
  50%  { transform: translate(6%, 4%) rotate(8deg) scale(1.12); }
  100% { transform: translate(-3%, 8%) rotate(-6deg) scale(1.04); }
}
.sc-card:hover::after, .tech-card:hover::after, .mod-card:hover::after, .card:hover::after, .fq:hover::after, .pillar:hover::after { opacity: 1; filter: blur(14px); }
.sc-card:hover, .tech-card:hover, .mod-card:hover, .card:hover, .pillar:hover, .area-card:hover {
  box-shadow: 0 20px 55px rgba(0, 6, 20, .55), 0 0 30px rgba(95, 211, 243, .08), inset 0 0 70px rgba(95, 211, 243, .08);
}
@media (prefers-reduced-motion: reduce) {
  .sc-card::after, .tech-card::after, .mod-card::after, .card::after, .fq::after, .pillar::after, .area-card::after { animation: none; }
}

/* Título del Instituto: el nombre completo (sin sigla) */
.sys-info-name--full { font-size: clamp(28px, 3.4vw, 46px); letter-spacing: .02em; line-height: 1.12; margin-bottom: 26px; }
.sys-info-name--full span { display: block; }
.sys-info-name--full span + span { color: var(--cyan-2); font-style: italic; }

/* Logo de cabecera: solo el nombre del instituto (sin NEUROGEN) */
.logo__txt small { display: block !important; margin-top: 0; font-family: var(--f-serif); font-size: 13px; font-weight: 600; letter-spacing: .14em; line-height: 1.3; text-align: left; color: #fff; }
.logo__txt small span + span { color: var(--cyan-2); }
@media (max-width: 420px) { .logo__txt small { font-size: 10.5px; letter-spacing: .08em; } }
@media (max-width: 560px) {
  .logo__txt small { font-size: 10px; letter-spacing: .06em; max-width: 160px !important; }
  .logo__txt small span { white-space: normal; }
  .logo__mark { height: 30px; }
}

/* Logo NEUROGEN + "Un servicio del Instituto…" */
.logo__txt .logo__name { font-family: var(--f-serif); font-weight: 500; font-size: 24px; color: #fff; line-height: 1; margin-bottom: 4px; }
.logo__txt small.logo__of { font-family: var(--f-body); font-size: 8.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .78); text-align: center; }
.logo__txt small.logo__of span + span { color: rgba(255, 255, 255, .78); }
@media (max-width: 560px) { .logo__txt small.logo__of { font-size: 7.5px; max-width: none !important; } .logo__txt small.logo__of span { white-space: nowrap; } }
.f-parent { font-size: 13px; color: var(--cyan-2); padding: 4px; }
.f-parent:hover { color: #fff; }
