/* GSC · Portal público — mismos tokens (tokens.css) y lenguaje visual que la web de administración */

/* ───────────── Base ───────────── */
:root { --page-inner: 1240px; --gutter: 32px; }
*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-gutter: stable; scroll-padding-top: 90px; }
* { scrollbar-width: thin; scrollbar-color: #c3cddd transparent; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
.center { text-align: center; margin-block: 22px; }
code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .88em; background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }

/* ───────────── Cabecera ───────────── */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { max-width: calc(var(--page-inner) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; color: var(--brand); flex: none; }
.brand img { height: 38px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 20px; font-weight: 700; letter-spacing: .04em; }
.brand-text small { font-size: 11.5px; color: var(--text-3); font-weight: 500; }
.main-nav { margin-left: auto; }
.menu { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu .top {
  display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border: 0; background: none;
  font-size: 14px; font-weight: 500; color: var(--text); border-radius: 8px; cursor: pointer; text-decoration: none; position: relative;
}
.menu .top:hover { color: var(--brand); background: var(--brand-softer); text-decoration: none; }
.menu .top.active { color: var(--brand); }
.menu .top.active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -16px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.menu .caret { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .15s; opacity: .7; }
.menu li.open .caret { transform: rotate(-90deg); }
.sub {
  position: absolute; top: calc(100% + 14px); left: -8px; min-width: 320px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
/* Sin JS se abre al pasar el ratón o con el foco del teclado */
html:not(.js) .menu li:hover .sub, .menu li:focus-within .sub, .menu li.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; }
.sub a:hover { background: var(--brand-softer); text-decoration: none; }
.sub a:hover b { color: var(--brand); }
.sub-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.sub-lbl { display: flex; flex-direction: column; line-height: 1.3; }
.sub-lbl b { font-weight: 500; font-size: 14px; }
.sub-lbl small { color: var(--text-3); font-size: 12px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--brand-softer); color: var(--brand); cursor: pointer; place-items: center; }
.mobile-nav { display: none; }

/* ───────────── Contenido ───────────── */
.content { flex: 1; width: 100%; padding: 0 var(--gutter) 64px; }
.content > * { max-width: var(--page-inner); margin-left: auto; margin-right: auto; }

/* Banda de título a sangre (como en la administración: azul GSC con los anillos del logo) */
.page-head, .hero {
  position: relative; overflow: hidden; isolation: isolate; max-width: none;
  margin: 0 calc(-1 * var(--gutter)) 30px; padding: 0 var(--gutter);
  background: linear-gradient(115deg, var(--brand-strong) 0%, var(--brand) 48%, var(--brand-2) 100%); color: #fff;
}
.page-head::before, .hero::before, .page-head::after, .hero::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.page-head::before, .hero::before { width: 520px; height: 520px; right: -120px; top: -230px; border: 46px solid rgba(255,255,255,.06); box-shadow: 0 0 0 38px rgba(255,255,255,.035), 0 0 0 80px rgba(255,255,255,.02); }
.page-head::after, .hero::after { width: 260px; height: 260px; right: 220px; bottom: -190px; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.16), transparent 65%); }
.ph-inner { max-width: var(--page-inner); margin: 0 auto; padding: 34px 0; min-height: 150px; display: flex; align-items: center; gap: 20px; }
.ph-text { flex: 1; min-width: 0; }
.page-head h1 { font-size: 30px; line-height: 1.2; margin: 0; font-weight: 600; letter-spacing: -.01em; }
.page-head .lead { margin: 6px 0 0; color: rgba(255,255,255,.82); font-size: 15px; max-width: 760px; }
.eyebrow { font-size: 11.5px; color: rgba(255,255,255,.72); text-transform: uppercase; letter-spacing: .1em; font-weight: 500; margin-bottom: 4px; }
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 12.5px; margin-bottom: 4px; }
.crumbs a { color: rgba(255,255,255,.8); }
.crumbs svg.i { width: 14px; height: 14px; color: rgba(255,255,255,.5); }
.hero-icon { width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); display: grid; place-items: center; flex: none; }
.hero-icon svg.i { width: 26px; height: 26px; color: #fff; stroke-width: 1.7; }
.page-head .actions { flex: none; }

/* Portada */
.hero-inner { max-width: var(--page-inner); margin: 0 auto; padding: 64px 0 70px; display: flex; align-items: center; gap: 40px; }
.hero-text { flex: 1; min-width: 0; }
.hero h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.12; font-weight: 600; letter-spacing: -.02em; margin: 0 0 14px; max-width: 760px; }
.hero .lead { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.86); max-width: 660px; margin: 0 0 26px; }
.hero .lead b { color: #fff; font-weight: 600; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-rings { flex: none; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; box-shadow: 0 0 0 18px rgba(255,255,255,.08), 0 0 0 42px rgba(255,255,255,.04), 0 24px 60px rgba(0,0,0,.25); }
.hero-rings img { width: 64%; height: auto; }

/* Encabezados de sección con subrayado (estilo i2t) */
.section-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 40px 0 18px; }
.section-h, .panel h2 { position: relative; font-size: 19px; font-weight: 600; margin: 0; padding-bottom: 10px; color: var(--text); }
.section-h::after, .panel h2::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--brand-3); }
.panel h2 { font-size: 16.5px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.panel h2 svg.i { color: var(--brand); }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.more svg.i { width: 16px; height: 16px; transition: transform .15s; }
.more:hover { text-decoration: none; }
.more:hover svg.i { transform: translateX(3px); }
.intro { color: var(--text-2); margin-block: -4px 20px; }
.intro:not(.content > *) { max-width: 820px; }
.note { color: var(--text-3); font-size: 13px; }

/* ───────────── Controles ───────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 17px;
  border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface);
  color: var(--text); font-weight: 500; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s; text-decoration: none !important;
}
.btn:hover { background: var(--surface-2); border-color: var(--brand-3); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand); }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn svg.i { width: 17px; height: 17px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero .btn, .page-head .btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.4); color: #fff; }
.hero .btn:hover, .page-head .btn:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.7); }
.hero .btn.primary { background: #fff; border-color: #fff; color: var(--brand); }
.hero .btn.primary:hover { background: var(--brand-soft); }

.input, select.input {
  height: 40px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface);
  padding: 0 12px; min-width: 0; width: 100%; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px var(--brand-soft); }
select.input { padding-right: 32px; appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237c8798' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.search { position: relative; display: block; }
.search svg.i { position: absolute; left: 12px; top: 11px; color: var(--text-3); }
.search .input { padding-left: 38px; }

.toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 4px; gap: 2px; }
.seg a { padding: 7px 13px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; }
.seg a:hover { color: var(--brand); background: var(--brand-softer); }
.seg a.on { background: var(--brand); color: #fff; }
.seg .count { font-size: 11.5px; font-weight: 600; padding: 0 7px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.seg a.on .count { background: rgba(255,255,255,.2); color: #fff; }

.filters { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(150px, 1fr)) auto auto; gap: 10px; padding: 12px; align-items: center; margin-bottom: 14px; }
.filters .check { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--text-2); white-space: nowrap; cursor: pointer; }
.filters .check input { width: 16px; height: 16px; accent-color: var(--brand); }
html.js .nojs { display: none; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-2); font-size: 14px; margin-block: 6px 4px; }
.link-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--brand); padding: 2px 0; }
.link-btn svg.i { width: 13px; height: 13px; }

/* ───────────── Tarjetas y etiquetas ───────────── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel { padding: 24px 26px; }
.panel h3 { font-size: 14.5px; font-weight: 600; margin: 18px 0 8px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 23px; padding: 0 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.tag svg.i { width: 13px; height: 13px; }
.tag.pot { background: var(--pot-soft); color: var(--pot); }
.tag.ecg { background: var(--ecg-soft); color: var(--ecg); }
.tag.oa { background: var(--brand-soft); color: var(--brand); }
.tag.live { background: var(--ok-soft); color: var(--ok); }
.tag.comp { background: var(--brand-soft); color: var(--brand); }
.tag.firm { background: #efeafa; color: #5b45a8; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.pot { background: var(--pot); } .dot.ecg { background: var(--ecg); } .dot.ambos { background: linear-gradient(90deg, var(--pot) 50%, var(--ecg) 50%); }
.seg a.on .dot.pot { background: #ffc261; } .seg a.on .dot.ecg { background: #ff8fab; }

.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; flex: none; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.lg { width: 56px; height: 56px; font-size: 19px; }
.av.xl { width: 84px; height: 84px; font-size: 27px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--border); }
.av.hero { width: 110px; height: 110px; font-size: 34px; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.members { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.person-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); font-size: 12.5px; font-weight: 500; text-decoration: none !important; transition: border-color .15s, color .15s; }
.person-chip .av { width: 24px; height: 24px; font-size: 9.5px; }
.person-chip:hover { border-color: var(--brand-3); color: var(--brand); }
.person-chip.lg { padding: 5px 14px 5px 5px; font-size: 14px; }
.person-chip.lg .av { width: 36px; height: 36px; font-size: 13px; }

/* ───────────── Portada ───────────── */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -58px !important; position: relative; z-index: 2; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); color: var(--text); font-weight: 500; text-align: center; text-decoration: none !important; transition: transform .15s, border-color .15s; }
.tile:hover { transform: translateY(-3px); border-color: var(--brand-3); color: var(--brand); }
.tile-ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 0 0 6px var(--brand-soft); }
.tile-ic svg.i { width: 26px; height: 26px; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; margin-top: 30px !important; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.kpi { background: var(--surface); padding: 20px 18px; display: flex; flex-direction: column; text-decoration: none !important; transition: background .15s; }
.kpi:hover { background: var(--brand-softer); }
.kpi .val { font-size: 32px; font-weight: 600; color: var(--brand-strong); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .lbl { font-size: 13px; color: var(--text-2); margin-top: 4px; line-height: 1.35; }
.lines-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px !important; }
.line-card { display: flex; align-items: center; gap: 18px; padding: 24px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--c); color: var(--text); text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.line-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.line-card.ecg, .line-detail.ecg { --c: var(--ecg); --cs: var(--ecg-soft); }
.line-card.pot, .line-detail.pot { --c: var(--pot); --cs: var(--pot-soft); }
.line-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--cs); color: var(--c); flex: none; }
.line-ic svg.i { width: 26px; height: 26px; }
.line-body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.line-body small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--c); font-weight: 600; }
.line-body b { font-size: 17px; font-weight: 600; margin: 2px 0 4px; }
.line-body span { color: var(--text-2); font-size: 14px; }
.line-card .go { color: var(--text-3); }
.home-cols { display: grid; grid-template-columns: 1.7fr 1fr; gap: 36px; }
.news-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; }
.news-list li { display: flex; flex-direction: column; padding: 13px 0; border-bottom: 1px solid var(--border); }
.news-list li:first-child { padding-top: 0; }
.news-list time { font-size: 12px; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.news-list a, .news-list b { color: var(--text); font-weight: 500; line-height: 1.4; margin: 2px 0; }
.news-list a:hover { color: var(--brand); }
.news-list .muted { font-size: 13px; }
.contact-mini { padding: 20px 22px; background: var(--brand-softer); }
.contact-mini h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; color: var(--brand-strong); }
.contact-mini p { margin: 0 0 10px; color: var(--text-2); font-size: 14px; }

/* ───────────── Publicaciones ───────────── */
.pub-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pub { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; transition: border-color .15s; }
.pub:hover { border-color: var(--brand-3); }
.pub-ic { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.pub-body { flex: 1; min-width: 0; }
.pub h3 { font-size: 15.5px; font-weight: 600; line-height: 1.4; margin: 0 0 4px; }
.pub h3 a { color: var(--text); }
.pub h3 a:hover { color: var(--brand); }
.authors { margin: 0 0 3px; color: var(--text-2); font-size: 13.5px; }
.venue { margin: 0; color: var(--text-2); font-size: 13.5px; }
.venue i { color: var(--text); }
.year { color: var(--text-3); }
.pub-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 10px; }
.pub-meta .muted { display: inline-flex; align-items: center; gap: 5px; }
.pub-meta .muted svg.i { width: 14px; height: 14px; }
.pub-list.compact .pub { padding: 14px 16px; }
.pub-list.compact .pub h3 { font-size: 14.5px; }
.year-group { margin-top: 26px; }
.year-h { font-size: 22px; font-weight: 600; color: var(--brand); margin: 0 0 12px; display: flex; align-items: center; gap: 14px; }
.year-h::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.pager { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 30px !important; }
.pager a, .pager .gap { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-weight: 500; font-size: 14px; }
.pager a { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); text-decoration: none; }
.pager a:hover { border-color: var(--brand-3); color: var(--brand); }
.pager a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.empty { text-align: center; padding: 48px 20px; color: var(--text-3); }
.empty svg.i { width: 32px; height: 32px; }
.empty p { margin: 10px 0 16px; }

/* ───────────── Proyectos ───────────── */
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.proj { padding: 20px 22px; display: flex; flex-direction: column; }
.proj-top { display: flex; gap: 6px; flex-wrap: wrap; }
.proj h3 { font-size: 15.5px; font-weight: 600; line-height: 1.4; margin: 12px 0 12px; }
.proj .acr { color: var(--brand); }
.proj-facts { margin: 0 0 auto; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--text-2); }
.proj-facts div { display: flex; gap: 10px; }
.proj-facts dt { color: var(--brand-3); padding-top: 1px; }
.proj-facts dt svg.i { width: 16px; height: 16px; }
.proj-facts dd { margin: 0; display: flex; flex-direction: column; }
.proj-facts small { font-size: 12px; color: var(--text-3); }

/* ───────────── Grupo y miembros ───────────── */
.two-col { display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; align-items: start; }
.prose p { margin: 0 0 14px; color: var(--text-2); }
.prose p:first-child { font-size: 16.5px; color: var(--text); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { position: relative; padding: 0 0 18px 26px; border-left: 2px solid var(--brand-soft); display: flex; flex-direction: column; }
.timeline li:last-child { padding-bottom: 0; border-left-color: transparent; }
.timeline li::before { content: ''; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand); }
.timeline b { color: var(--brand); font-size: 14px; }
.timeline span { color: var(--text-2); font-size: 14px; }
.collab-h { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 26px 0 12px; }
.collab-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.collab { display: flex; flex-direction: column; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.collab:hover { border-color: var(--brand-3); box-shadow: var(--shadow); transform: translateY(-2px); }
.collab-logo { height: 92px; display: grid; place-items: center; padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--border); }
.collab-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.collab-ph { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.collab-ph svg.i { width: 24px; height: 24px; }
.collab-name { padding: 12px 14px; font-size: 13px; line-height: 1.4; color: var(--text-2); font-weight: 500; }
.dots { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; }
.dots li { margin: 4px 0; }
.dots li::marker { color: var(--brand-3); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.member { padding: 24px 22px 20px; display: flex; flex-direction: column; text-align: center; transition: border-color .15s, box-shadow .15s; }
.member:hover { border-color: var(--brand-3); box-shadow: var(--shadow); }
.member-top { display: flex; flex-direction: column; align-items: center; gap: 14px; color: var(--text); text-decoration: none !important; }
.member-top b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.member-top:hover b { color: var(--brand); }
.role { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 600; color: var(--brand); background: var(--brand-soft); padding: 2px 10px; border-radius: 999px; }
.member .member-info { margin: 16px 0; text-align: left; }
.member .more { margin-top: auto; justify-content: center; }
.member-info { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--text-2); }
.member-info li { display: flex; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.member-info svg.i { color: var(--brand-3); margin-top: 2px; width: 17px; height: 17px; }
.member-info small { display: block; font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }
.memoriam-list { display: flex; flex-wrap: wrap; gap: 10px; }
.memoriam .person-chip { filter: grayscale(.6); }
.memoriam ~ .note { margin-top: 30px; }
.av-stack { display: flex; align-items: center; margin-top: 14px; padding-left: 6px; }
.av-stack a { margin-left: -6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); transition: transform .15s; }
.av-stack a:hover { transform: translateY(-2px); z-index: 1; }
.av-stack .av { width: 32px; height: 32px; }
.profile { display: grid; grid-template-columns: 320px 1fr; gap: 26px; align-items: start; }
.profile-side { position: sticky; top: 96px; }
.profile-side h2:not(:first-child) { margin-top: 26px; }
.profile-main .section-row:first-child { margin-top: 0; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.mini-stats div { background: var(--surface-2); border-radius: 8px; padding: 10px 12px; }
.mini-stats dt { font-size: 12px; color: var(--text-3); }
.mini-stats dd { margin: 0; font-size: 22px; font-weight: 600; color: var(--brand-strong); }
.plain-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.plain-list li { padding: 13px 18px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list b { font-weight: 500; width: 100%; line-height: 1.4; }
.plain-list .muted { font-size: 13px; }
.people-col { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }

/* Líneas */
.lines-detail { display: grid; gap: 20px; }
.line-detail { padding: 28px 30px; border-top: 5px solid var(--c); }
.line-detail header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.line-detail h2 { margin: 0 0 4px; font-size: 21px; font-weight: 600; }
.line-detail h2 a { color: var(--text); }
.line-detail p { color: var(--text-2); margin: 0 0 12px; max-width: 900px; }
.topics { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.topics li { padding: 6px 13px; border-radius: 999px; background: var(--brand-softer); border: 1px solid var(--brand-soft); color: var(--brand-strong); font-size: 13px; font-weight: 500; }
.line-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Tesis y patentes */
.thesis-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.thesis { display: flex; gap: 20px; padding: 20px 22px; }
.thesis-year { font-size: 22px; font-weight: 600; color: var(--brand); min-width: 54px; line-height: 1.2; }
.thesis h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.4; }
.patent-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; }
.patent h3 { margin: 12px 0 4px; font-size: 16px; line-height: 1.4; }
.patent .en { margin: 0 0 8px; font-size: 13.5px; font-style: italic; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px 16px; margin: 14px 0 4px; font-size: 13.5px; }
.facts dt { color: var(--text-3); font-size: 12px; }
.facts dd { margin: 0; font-weight: 500; }

/* Noticias, docencia y contacto */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.news { padding: 18px 20px; }
.news-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.news time { font-size: 12px; color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.news h3 { margin: 8px 0 6px; font-size: 15.5px; line-height: 1.4; font-weight: 600; }
.news h3 a { color: var(--text); }
.news h3 a:hover { color: var(--brand); }
.news > p { margin: 0; font-size: 13.5px; display: flex; gap: 6px; align-items: center; }
.news > p svg.i { width: 15px; height: 15px; }
.teach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.subjects { list-style: none; margin: 0 0 8px; padding: 0; }
.subjects li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.cta { display: flex; align-items: center; gap: 20px; justify-content: space-between; margin-top: 22px !important; background: var(--brand-softer); border-color: var(--brand-soft); }
.cta h2 { margin-bottom: 10px; }
.cta p { margin: 0; color: var(--text-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.contact-person { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.contact-person b { display: block; font-size: 16px; }
.contact-person small { color: var(--brand); font-weight: 500; }
address { font-style: normal; font-size: 15.5px; line-height: 1.7; margin-bottom: 10px; }
.contact-grid .btn { margin-top: 16px; }


/* ───────────── Fotografías ───────────── */
/* Bandas azules con foto de fondo: el azul de marca la tiñe para mantener el contraste del texto */
.page-head.has-photo, .hero.has-photo {
  background:
    linear-gradient(115deg, rgba(0,52,104,.95) 0%, rgba(0,72,144,.86) 48%, rgba(61,102,166,.62) 100%),
    var(--photo) center / cover no-repeat, var(--brand);
}
.credit { position: absolute; z-index: 2; right: 12px; bottom: 8px; font-size: 10.5px; color: rgba(255,255,255,.62) !important; text-decoration: none !important; }
.credit:hover { color: #fff !important; }
.photo { position: relative; margin: 0; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--surface-3); }
.photo .credit { top: 8px; bottom: auto; right: 8px; background: rgba(10,25,45,.55); color: #fff !important; padding: 2px 8px; border-radius: 999px; backdrop-filter: blur(4px); }
.photo figcaption { font-size: 12.5px; color: var(--text-3); padding: 8px 2px 0; line-height: 1.4; }
.photo.wide { margin-bottom: 20px; }
.photo.side { margin-top: 24px; }

/* Portada: tarjetas de línea con foto */
.line-card.with-photo { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border-left: 1px solid var(--border); border-top: 4px solid var(--c); }
.line-photo { position: relative; display: block; height: 210px; }
.line-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.line-card.with-photo:hover .line-photo img { transform: scale(1.04); }
.line-photo .line-ic { position: absolute; left: 22px; bottom: -28px; box-shadow: 0 0 0 5px var(--surface); }
.line-card.with-photo .line-body { padding: 40px 24px 22px; }
.line-card.with-photo .more { margin-top: 12px; color: var(--brand); }

/* Portada: quiénes somos */
.about-band { display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden; margin-top: 30px !important; }
.about-photo img { height: 100%; min-height: 320px; object-fit: cover; border-radius: 0; }
.about-text { padding: 34px 40px; align-self: center; }
.about-text h2 { font-size: 23px; line-height: 1.3; margin: 6px 0 14px; font-weight: 600; }
.about-text p { color: var(--text-2); margin: 0 0 10px; }
.kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 600; }

/* Líneas: foto lateral y galería */
.line-detail.with-photo { display: grid; grid-template-columns: 360px 1fr; padding: 0; overflow: hidden; }
.line-side img { height: 100%; min-height: 280px; object-fit: cover; border-radius: 0; }
.line-main { padding: 28px 30px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.gallery .photo img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ───────────── Pie ───────────── */
.site-footer { background: var(--brand-strong); color: rgba(255,255,255,.75); font-size: 13.5px; }
.footer-inner { max-width: calc(var(--page-inner) + 2 * var(--gutter)); margin: 0 auto; padding: 44px var(--gutter) 30px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.f-brand { display: flex; gap: 14px; align-items: flex-start; }
.f-brand img { width: 60px; height: auto; aspect-ratio: auto; background: #fff; border-radius: 12px; padding: 6px; flex: none; }
.f-brand b { display: block; color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.f-col h3 { color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px; font-weight: 600; }
.f-col p { margin: 0 0 8px; }
.f-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: rgba(255,255,255,.9); }
.footer-legal { max-width: calc(var(--page-inner) + 2 * var(--gutter)); margin: 0 auto; padding: 16px var(--gutter) 22px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.55); }

/* ───────────── Adaptable ───────────── */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .burger { display: grid; }
  .mobile-nav { display: none; flex-direction: column; padding: 8px var(--gutter) 16px; border-top: 1px solid var(--border); max-height: calc(100vh - 72px); overflow-y: auto; }
  body.nav-open .mobile-nav { display: flex; }
  .mobile-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 6px; color: var(--text); font-weight: 500; border-bottom: 1px solid var(--surface-3); text-decoration: none; }
  .mobile-nav a svg.i { color: var(--brand); }
  .mobile-nav a.on { color: var(--brand); }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .filters { grid-template-columns: 1fr 1fr 1fr; }
  .filters .search { grid-column: 1 / -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .about-band, .line-detail.with-photo { grid-template-columns: 1fr; }
  .about-photo img, .line-side img { min-height: 0; height: 240px; }
  .about-text { padding: 24px 22px; }
  .home-cols, .two-col, .profile, .teach-grid, .contact-grid, .lines-grid { grid-template-columns: 1fr; }
  .profile-side { position: static; }
  .hero-rings { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .patent-list, .proj-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 14.5px; }
  .header-inner { height: 64px; }
  .brand img { height: 32px; }
  .brand-text small { display: none; }
  .hero-inner { padding: 40px 0 76px; }
  .ph-inner { padding: 26px 0; min-height: 0; flex-wrap: wrap; }
  .page-head h1 { font-size: 24px; }
  .hero-icon { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .filters { grid-template-columns: 1fr; }
  .tile { padding: 16px 10px; font-size: 13.5px; }
  .tile-ic { width: 48px; height: 48px; }
  .line-photo { height: 170px; }
  .gallery { grid-template-columns: 1fr; }
  .pub { padding: 14px; gap: 12px; }
  .pub-ic { display: none; }
  .thesis { flex-direction: column; gap: 4px; }
  .news-grid, .member-grid { grid-template-columns: 1fr; }
  .collab-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .collab-logo { height: 76px; padding: 10px; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; }
  .seg { width: 100%; }
  .section-row { flex-wrap: wrap; }
}
