/* Layout: revista científica — masthead con barra ISSN, display serif editorial, rejilla de 1180px; el motivo gráfico es la sutura quirúrgica (línea de incisión + puntos). Paleta: azul marino institucional + azul médico + turquesa */
:root {
  --paper: #FFFFFF;
  --surface: #FFFFFF;
  --sunk: #EEF1F5;
  --ink: #0B1F3A;
  --muted: #4A5568;
  --line: #DDE3EB;
  --green: #0B1F3A;
  --green-ink: #0B1F3A;
  --deep: #0B1F3A;
  --on-deep: #EEF1F5;
  --on-deep-muted: #A9B4C4;
  --marigold: #B83A26;
  --marigold-soft: #F7E6E2;
  --on-primary: #FFFFFF;
  --on-marigold: #7A2616;
  --glow: #B83A26;
  --shadow: 0 1px 2px rgba(11, 31, 58, .06), 0 18px 40px -18px rgba(11, 31, 58, .28);

  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --t-xs: .8125rem;
  --t-sm: .9375rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: 1.625rem;
  --t-xl: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --t-2xl: clamp(2.3rem, 1.6rem + 2.8vw, 3.4rem);
  --t-hero: clamp(2.6rem, 1.5rem + 4.4vw, 4.75rem);

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media not all {
  :root:not([data-theme="light"]) {
    --paper: #081528; --surface: #0E2038; --sunk: #0B1B30; --ink: #EEF1F5; --muted: #A9B4C4;
    --line: #1F3556; --green: #E8806C; --green-ink: #F0A394; --deep: #0B1F3A; --on-deep: #EEF1F5;
    --on-deep-muted: #A9B4C4; --marigold: #E8806C; --marigold-soft: #3A1E1E; --on-primary: #0B1F3A;
    --on-marigold: #F7C9BF; --glow: #E8806C; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -18px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--green); }
:focus-visible { outline: 2px solid var(--marigold); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-md); line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
em { font-style: italic; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
.mono { font-family: var(--f-mono); font-size: .92em; letter-spacing: 0; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500;
  text-transform: uppercase; letter-spacing: .09em; color: var(--green-ink);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 4px var(--marigold-soft); }
.lead { font-size: var(--t-md); line-height: 1.55; color: var(--muted); max-width: 60ch; }

/* Sutura: línea de incisión con puntos diagonales */
.stitch {
  height: 14px;
  background:
    linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat,
    repeating-linear-gradient(118deg, transparent 0 15px, var(--green) 15px 17px, transparent 17px 30px) center / 100% 10px no-repeat;
  opacity: .75;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-body); font-weight: 600; font-size: var(--t-sm);
  padding: .8rem 1.3rem; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: var(--on-primary); }
.btn-primary:hover { background: var(--green-ink); color: var(--on-primary); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-ink); }
.btn-marigold { background: var(--marigold); color: var(--on-marigold); }
.btn-marigold:hover { color: var(--on-marigold); filter: brightness(1.05); }
.btn-sm { padding: .55rem 1rem; font-size: var(--t-xs); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.topbar { background: var(--deep); color: var(--on-deep-muted); font-family: var(--f-mono); font-size: .75rem; letter-spacing: .05em; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: .45rem; flex-wrap: wrap; }
.topbar b { color: var(--on-deep); font-weight: 500; }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 1.5rem; padding-block: .85rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-mark .bg { fill: var(--green); }
.brand-mark .cut { stroke: var(--paper); }
.brand-mark .st { stroke: var(--marigold); }
.brand-name { font-family: var(--f-display); font-size: 1.08rem; line-height: 1.1; font-weight: 600; }
.brand-name em { font-weight: 400; color: var(--green-ink); }
.nav { display: flex; align-items: center; gap: .15rem; }
.nav a {
  font-size: var(--t-sm); font-weight: 500; color: var(--muted); text-decoration: none;
  padding: .45rem .7rem; border-radius: 8px; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--green-ink); background: var(--sunk); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 20px; height: 20px; margin: auto; display: block; }
.header-cta { flex: none; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1rem; box-shadow: var(--shadow);
  }
  .nav a { padding: .8rem .5rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav:not(.open) { display: none; }
}
@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand-name { font-size: 1rem; }
  .topbar .t-extra { display: none; }
  .hero-meta div { padding-right: 1rem; margin-right: 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5.5rem) clamp(2.5rem, 5vw, 4.5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 70% at 85% 30%, color-mix(in srgb, var(--green) 12%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.5rem; min-width: 0; }
.display { font-size: var(--t-hero); font-weight: 400; line-height: 1.02; letter-spacing: -.025em; }
.display em { color: var(--green-ink); font-weight: 400; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0; margin: .5rem 0 0; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.hero-meta div { padding-right: 1.6rem; margin-right: 1.6rem; border-right: 1px solid var(--line); }
.hero-meta div:last-child { border-right: 0; }
.hero-meta dt { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.hero-meta dd { margin: .15rem 0 0; font-weight: 600; font-size: var(--t-sm); }

/* Portada del número */
.cover {
  position: relative; margin: 0; width: 100%; max-width: 380px; justify-self: center;
  aspect-ratio: 3 / 4; border-radius: 6px 16px 16px 6px; overflow: hidden;
  background: var(--deep); color: var(--on-deep);
  box-shadow: var(--shadow), inset 6px 0 0 rgba(0, 0, 0, .18);
  transform: rotate(-2.5deg); transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  display: flex; flex-direction: column; justify-content: space-between;
}
.cover:hover { transform: rotate(0deg) translateY(-4px); }
.cover canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cover-top, .cover-bottom { position: relative; padding: 1.5rem 1.5rem 1.4rem 1.8rem; }
.cover-top { display: grid; gap: .8rem; border-bottom: 1px solid rgba(234, 241, 250, .18); }
.cover-kicker { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-muted); }
.cover-title { font-family: var(--f-display); font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); line-height: 1.05; font-weight: 500; }
.cover-title em { font-weight: 400; color: var(--marigold); }
.cover-bottom { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: .78rem; letter-spacing: .06em; border-top: 1px solid rgba(234, 241, 250, .18); color: var(--on-deep); }
.cover.small { max-width: 260px; transform: none; }
.cover.small:hover { transform: translateY(-3px); }
.cover.small .cover-title { font-size: 1.35rem; }
.cover.tiny { max-width: 120px; transform: none; border-radius: 4px 10px 10px 4px; }
.cover.tiny .cover-top, .cover.tiny .cover-bottom { padding: .6rem .6rem .6rem .8rem; }
.cover.tiny .cover-kicker { display: none; }
.cover.tiny .cover-title { font-size: .72rem; }
.cover.tiny .cover-bottom { font-size: .55rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cover { max-width: 300px; transform: rotate(-1.5deg); }
}

/* ---------- Cifras ---------- */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fact { padding: 1.6rem 1.4rem; display: grid; gap: .3rem; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num { font-family: var(--f-display); font-size: var(--t-lg); line-height: 1.1; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.fact-label { font-size: var(--t-sm); color: var(--muted); line-height: 1.4; }
@media (max-width: 820px) {
  .facts-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 1.2rem 1rem; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Bloques ---------- */
.block { padding-block: clamp(3rem, 7vw, 6rem); }
.block-alt { background: var(--sunk); }
.block-head { display: grid; gap: .8rem; margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 720px; }
.block-head p:not(.eyebrow) { color: var(--muted); font-size: var(--t-md); line-height: 1.5; }

/* Secciones de la revista */
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.sec {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem; display: grid; grid-template-rows: auto auto 1fr auto; gap: .65rem;
  transition: border-color .2s ease, transform .2s ease;
}
.sec:hover { border-color: var(--green); transform: translateY(-2px); }
.sec-tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.sec-tag::before { content: ""; width: 14px; height: 2px; background: var(--marigold); border-radius: 2px; }
.sec h3 { font-size: 1.4rem; }
.sec p.desc { color: var(--muted); font-size: var(--t-sm); line-height: 1.55; }
.sec-meta { display: flex; flex-wrap: wrap; gap: .4rem; padding-top: .9rem; border-top: 1px dashed var(--line); }
.chip {
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .02em; color: var(--green-ink);
  background: var(--sunk); border-radius: 6px; padding: .22rem .5rem; white-space: nowrap;
}
@media (max-width: 960px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sec-grid { grid-template-columns: 1fr; } }

/* Banda de convocatoria */
.band { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 22px; height: 12px; opacity: .5;
  background:
    linear-gradient(var(--on-deep-muted), var(--on-deep-muted)) center / 100% 1px no-repeat,
    repeating-linear-gradient(118deg, transparent 0 15px, var(--marigold) 15px 17px, transparent 17px 30px) center / 100% 10px no-repeat;
}
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3.5rem, 7vw, 6rem) clamp(4.5rem, 8vw, 7rem); align-items: start; }
.band h2 { font-size: var(--t-2xl); font-weight: 400; margin: .9rem 0 1.1rem; }
.band h2 em { color: var(--marigold); }
.band p { color: var(--on-deep-muted); font-size: var(--t-md); line-height: 1.55; margin-bottom: 1.8rem; max-width: 46ch; }
.eyebrow-on-deep { color: var(--marigold); }
.band-list { background: rgba(234, 241, 250, .06); border: 1px solid rgba(234, 241, 250, .16); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.4rem; }
.band-list h3 { font-family: var(--f-mono); font-size: .75rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-muted); margin-bottom: 1rem; }
.checklist { list-style: none; display: grid; gap: .1rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; padding: .62rem 0; border-bottom: 1px solid rgba(234, 241, 250, .12); line-height: 1.45; }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
  content: ""; width: 18px; height: 18px; margin-top: .1rem; border-radius: 50%;
  border: 1.5px solid var(--marigold);
  background: radial-gradient(circle, var(--marigold) 0 3px, transparent 3.5px);
}
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } }

/* Pasos del proceso */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 12px; margin-top: -6px;
  background:
    linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat,
    repeating-linear-gradient(118deg, transparent 0 15px, var(--green) 15px 17px, transparent 17px 30px) center / 100% 10px no-repeat;
  opacity: .6;
}
.steps li { position: relative; display: grid; gap: .6rem; align-content: start; }
.step-n {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); border: 1.5px solid var(--green); color: var(--green-ink);
  font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; position: relative;
}
.block-alt .step-n { background: var(--sunk); }
.steps h3 { font-size: 1.2rem; margin-top: .4rem; }
.steps p { color: var(--muted); font-size: var(--t-sm); line-height: 1.55; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .steps::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 12px; height: auto; margin: 0 0 0 -6px;
    background:
      linear-gradient(var(--line), var(--line)) center / 1px 100% no-repeat,
      repeating-linear-gradient(28deg, transparent 0 15px, var(--green) 15px 17px, transparent 17px 30px) center / 10px 100% no-repeat; }
  .steps li { grid-template-columns: 44px 1fr; column-gap: 1rem; }
  .steps li > :not(.step-n) { grid-column: 2; }
  .steps h3 { margin-top: .55rem; }
}

/* Alcance */
.scope-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.scope-grid .copy { display: grid; gap: 1rem; }
.scope-grid .copy p { color: var(--muted); font-size: var(--t-md); line-height: 1.55; }
.areas { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.areas li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: .9rem 1rem; font-weight: 500; font-size: var(--t-sm); display: flex; align-items: center; gap: .7rem;
}
.areas li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.langs { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 860px) { .scope-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Páginas interiores ---------- */
.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 90% at 95% 0%, color-mix(in srgb, var(--green) 11%, transparent), transparent 70%);
}
.page-head .wrap { display: grid; gap: 1rem; }
.crumbs { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .05em; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-ink); }
.display-2 { font-size: var(--t-2xl); font-weight: 400; letter-spacing: -.02em; }
.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.subnav a { font-size: var(--t-sm); font-weight: 500; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--surface); padding: .4rem .9rem; border-radius: 999px; }
.subnav a:hover { border-color: var(--green); color: var(--green-ink); }

.section { padding-block: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.section:last-of-type { border-bottom: 0; }
.section-head { display: grid; gap: .5rem; margin-bottom: 1.6rem; }
.section-head h2 { font-size: var(--t-xl); }
.section-head p { color: var(--muted); max-width: 62ch; }

/* Tabla */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: var(--t-sm); }
th, td { text-align: left; padding: .95rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--sunk); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--sunk) 55%, transparent); }
td.num { font-variant-numeric: tabular-nums; font-family: var(--f-mono); }
td.type { font-family: var(--f-display); font-size: 1.08rem; font-weight: 500; }

/* Requisitos */
.req-grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.req-grid li { display: grid; grid-template-columns: 34px 1fr; gap: .9rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; line-height: 1.5; font-size: var(--t-sm); }
.req-grid li b { display: block; font-size: var(--t-base); margin-bottom: .15rem; }
.req-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--sunk); display: grid; place-items: center; color: var(--green-ink); }
.req-ico svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .req-grid { grid-template-columns: 1fr; } }

/* Envío */
.submit-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.submit-grid .copy { display: grid; gap: 1rem; }
.submit-grid .copy p { color: var(--muted); }
.mail-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 1rem 1.1rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.mail-card .addr { font-family: var(--f-mono); font-size: var(--t-sm); word-break: break-all; user-select: all; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; box-shadow: var(--shadow); }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label { font-size: var(--t-sm); font-weight: 600; }
.hint { font-size: var(--t-xs); color: var(--muted); font-weight: 400; }
input, select, textarea {
  font: inherit; font-size: var(--t-sm); color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 10px; padding: .75rem .85rem; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent); }
textarea { min-height: 140px; resize: vertical; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: .3rem; }
.form-foot p { font-size: var(--t-xs); color: var(--muted); max-width: 40ch; }
.form-status { font-size: var(--t-sm); color: var(--green-ink); background: var(--sunk); border-radius: 10px; padding: .8rem 1rem; }
@media (max-width: 860px) { .submit-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Documento con índice lateral (políticas) */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 4rem); }
.toc { position: sticky; top: 100px; align-self: start; display: grid; gap: .1rem; }
.toc p { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.toc a { text-decoration: none; color: var(--muted); font-size: var(--t-sm); padding: .4rem 0 .4rem .9rem; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--green); }
.doc { display: grid; gap: 0; min-width: 0; }
.policy { padding-block: 0 2.2rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; display: grid; grid-template-columns: 3.2rem 1fr; column-gap: 1rem; }
.policy:last-child { border-bottom: 0; margin-bottom: 0; }
.policy-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sunk); color: var(--green-ink); display: grid; place-items: center; grid-row: span 2; }
.policy-ico svg { width: 20px; height: 20px; }
.policy h2 { font-size: var(--t-lg); margin: .3rem 0 .7rem; }
.policy p { color: var(--muted); max-width: 64ch; }
.policy p + p { margin-top: .7rem; }
.badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.badge { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line); border-radius: 999px; padding: .32rem .8rem; font-size: var(--t-xs); font-weight: 600; background: var(--surface); }
.badge .b-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.badge.warm .b-dot { background: var(--marigold); }
@media (max-width: 860px) {
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: .4rem; }
  .toc p { width: 100%; margin-bottom: .2rem; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem; background: var(--surface); }
}
@media (max-width: 480px) { .policy { grid-template-columns: 1fr; } .policy-ico { grid-row: auto; margin-bottom: .6rem; } }

/* Comité */
.board-group { padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); }
.board-group:last-of-type { border-bottom: 0; }
.board-group .gh { display: grid; gap: .5rem; align-content: start; }
.board-group .gh h2 { font-size: var(--t-lg); }
.board-group .gh p { color: var(--muted); font-size: var(--t-sm); }
.seats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.seat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; display: grid; grid-template-columns: 52px 1fr; gap: .9rem; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; border: 1.5px dashed var(--green); display: grid; place-items: center; color: var(--green-ink); background: var(--sunk); }
.avatar svg { width: 22px; height: 22px; }
.seat-info { display: grid; gap: .15rem; min-width: 0; }
.seat-name { font-family: var(--f-display); font-size: 1.1rem; font-weight: 500; }
.seat-role { font-size: var(--t-xs); color: var(--green-ink); font-weight: 600; }
.seat-aff { font-family: var(--f-mono); font-size: .7rem; color: var(--muted); }
.seats.compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.seats.compact .seat { grid-template-columns: 38px 1fr; padding: .85rem; }
.seats.compact .avatar { width: 38px; height: 38px; }
.seats.compact .avatar svg { width: 16px; height: 16px; }
@media (max-width: 860px) { .board-group { grid-template-columns: 1fr; } }

.invite { margin-block: clamp(2rem, 5vw, 3.5rem) 0; background: var(--deep); color: var(--on-deep); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.6rem); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
.invite h2 { font-size: var(--t-xl); font-weight: 400; margin: .6rem 0 .7rem; }
.invite p { color: var(--on-deep-muted); }
.invite .mail-card { background: rgba(234, 241, 250, .06); border-color: rgba(234, 241, 250, .18); color: var(--on-deep); }
@media (max-width: 760px) { .invite { grid-template-columns: 1fr; } }

/* Acerca */
.mission { font-family: var(--f-display); font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2.15rem); line-height: 1.3; font-weight: 400; max-width: 30ch; letter-spacing: -.01em; }
.mission em { color: var(--green-ink); }
.kv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.kv { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: grid; gap: .4rem; align-content: start; }
.kv dt { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: 0; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.2; font-weight: 500; }
.kv small { color: var(--muted); font-size: var(--t-xs); line-height: 1.45; }
@media (max-width: 900px) { .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .kv-grid { grid-template-columns: 1fr; } }

.roadmap { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stage { border-top: 3px solid var(--line); padding-top: 1.1rem; display: grid; gap: .7rem; align-content: start; }
.stage.now { border-top-color: var(--green); }
.stage.next { border-top-color: var(--marigold); }
.stage-when { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.stage ul { list-style: none; display: grid; gap: .5rem; }
.stage li { font-family: var(--f-display); font-size: 1.25rem; font-weight: 500; }
@media (max-width: 760px) { .roadmap { grid-template-columns: 1fr; } }

/* Número actual y archivo */
.issue-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.issue-aside { display: grid; gap: 1.4rem; position: sticky; top: 100px; }
.issue-dl { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.issue-dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: var(--t-sm); }
.issue-dl dt { color: var(--muted); }
.issue-dl dd { margin: 0; font-weight: 600; text-align: right; }
.status-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--t-xs); font-weight: 600; color: var(--on-marigold); background: var(--marigold-soft); border: 1px solid color-mix(in srgb, var(--marigold) 45%, transparent); border-radius: 999px; padding: .2rem .65rem; }
:root[data-theme="dark"] .status-pill { color: var(--marigold); }
@media not all { :root:not([data-theme="light"]) .status-pill { color: var(--marigold); } }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--marigold); }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; }
.notice svg { flex: none; width: 22px; height: 22px; color: var(--green-ink); margin-top: .1rem; }
.notice p { color: var(--muted); font-size: var(--t-sm); }
.notice b { color: var(--ink); }
.toc-section { padding-block: 1.4rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 1.5rem; }
.toc-section h2 { font-size: 1.2rem; }
.toc-empty { border: 1.5px dashed var(--line); border-radius: 12px; padding: 1rem 1.1rem; color: var(--muted); font-size: var(--t-sm); display: grid; gap: .5rem; }
.toc-empty .bar { height: 10px; border-radius: 5px; background: var(--sunk); }
.toc-empty .bar.short { width: 55%; }
@media (max-width: 900px) {
  .issue-layout { grid-template-columns: 1fr; }
  .issue-aside { position: static; grid-template-columns: 160px 1fr; align-items: start; }
  .issue-aside .cover.small { max-width: 160px; }
  .toc-section { grid-template-columns: 1fr; gap: .8rem; }
}
@media (max-width: 480px) { .issue-aside { grid-template-columns: 1fr; } }

.archive-year { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 2rem; padding-block: 2.2rem; border-bottom: 1px solid var(--line); }
.archive-year .yr { font-family: var(--f-display); font-size: var(--t-2xl); font-weight: 400; line-height: 1; color: var(--green-ink); }
.issue-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1.4rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; text-decoration: none; color: var(--ink); transition: border-color .2s ease; }
.issue-card:hover { border-color: var(--green); color: var(--ink); }
.issue-card .ic-body { display: grid; gap: .45rem; justify-items: start; }
.issue-card h3 { font-size: 1.35rem; }
.issue-card p { color: var(--muted); font-size: var(--t-sm); }
@media (max-width: 640px) { .archive-year { grid-template-columns: 1fr; gap: 1rem; } .issue-card { grid-template-columns: 90px minmax(0, 1fr); } .issue-card .cover.tiny { max-width: 90px; } }

/* Artículo */
.sample-banner { background: var(--marigold-soft); border-bottom: 1px solid color-mix(in srgb, var(--marigold) 40%, transparent); font-size: var(--t-sm); }
.sample-banner .wrap { padding-block: .7rem; display: flex; gap: .6rem; align-items: center; }
.sample-banner svg { width: 18px; height: 18px; flex: none; color: var(--marigold); }
.art-head { padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; border-bottom: 1px solid var(--line); }
.art-head .wrap { display: grid; gap: 1.1rem; max-width: 980px; margin-left: 0; margin-inline: auto; }
.art-type { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.art-title { font-size: var(--t-2xl); font-weight: 400; letter-spacing: -.02em; line-height: 1.1; }
.authors { font-size: var(--t-md); }
.authors sup { color: var(--green-ink); font-weight: 600; }
.affils { list-style: none; font-size: var(--t-sm); color: var(--muted); display: grid; gap: .15rem; }
.affils sup { color: var(--green-ink); margin-right: .2rem; }
.dates { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; font-family: var(--f-mono); font-size: .78rem; color: var(--muted); padding-top: 1rem; border-top: 1px dashed var(--line); }
.dates b { color: var(--ink); font-weight: 500; }
.art-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2rem, 4vw, 3rem); max-width: 980px; margin-inline: auto; }
.art-body { display: grid; gap: 2rem; min-width: 0; }
.abstract { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 1.8rem); display: grid; gap: 1rem; }
.abstract h2 { font-size: var(--t-lg); }
.abstract dl { margin: 0; display: grid; gap: .9rem; }
.abstract dt { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-ink); }
.abstract dd { margin: .2rem 0 0; color: var(--muted); max-width: 64ch; }
.keywords { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.keywords span.k-label { font-weight: 600; font-size: var(--t-sm); margin-right: .3rem; }
.art-body .prose h2 { font-size: var(--t-lg); margin-bottom: .6rem; }
.art-body .prose p { color: var(--muted); max-width: 66ch; }
.art-aside { display: grid; gap: 1rem; align-content: start; position: sticky; top: 100px; }
.side-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 1.1rem 1.15rem; display: grid; gap: .7rem; }
.side-card h3 { font-family: var(--f-mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cite-box { font-size: var(--t-sm); line-height: 1.5; background: var(--sunk); border-radius: 10px; padding: .8rem .9rem; user-select: all; }
.cite-box i { font-style: italic; }
@media (max-width: 860px) { .art-layout { grid-template-columns: 1fr; } .art-aside { position: static; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--surface); border-top: 1px solid var(--line); }
.site-footer > .stitch { margin-top: -7px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 2rem; padding-block: 3rem 2rem; }
.footer-brand { display: grid; gap: 1rem; align-content: start; }
.footer-brand p { color: var(--muted); font-size: var(--t-sm); max-width: 36ch; }
.footer-col { display: grid; gap: .55rem; align-content: start; font-size: var(--t-sm); }
.footer-h { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .2rem; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { color: var(--green-ink); text-decoration: underline; }
.footer-col .mono { word-break: break-all; }
.footer-base { display: flex; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; padding-block: 1.2rem 1.6rem; border-top: 1px solid var(--line); font-size: var(--t-xs); color: var(--muted); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* Utilidades */
.center-cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 2rem; }
.copy-btn { font: inherit; font-size: var(--t-xs); font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .4rem .85rem; cursor: pointer; }
.copy-btn:hover { border-color: var(--green); color: var(--green-ink); }
.invite .copy-btn { background: transparent; color: var(--on-deep); border-color: rgba(234, 241, 250, .3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .cover, .cover:hover { transform: none; }
}

/* ---------- Bilingüe, barra de navegación, buscador, documentos ---------- */
.header-row { gap: 1rem; }
.lang { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); }
.lang a { text-decoration: none; color: var(--muted); font-weight: 500; padding: .25rem .4rem; border-radius: 6px; }
.lang a:hover { color: var(--ink); background: var(--sunk); }
.lang a[aria-current] { color: var(--green-ink); font-weight: 700; background: var(--sunk); }
.navbar { background: var(--deep); }
.navbar .nav { gap: .1rem; flex-wrap: wrap; }
.navbar .nav a { color: var(--on-deep-muted); border-radius: 0; padding: .7rem .8rem; border-bottom: 2px solid transparent; background: none; }
.navbar .nav a:hover { color: #fff; background: rgba(234, 241, 250, .08); }
.navbar .nav a[aria-current="page"] { color: #fff; background: none; border-bottom-color: var(--marigold); }
@media (max-width: 1080px) {
  .navbar .nav { position: static; flex-direction: column; align-items: stretch; background: var(--deep); border: 0; box-shadow: none; padding: .25rem 0 .75rem; }
  .navbar .nav a { border-bottom: 1px solid rgba(234, 241, 250, .12); padding: .8rem .25rem; }
  .navbar .nav:not(.open) { display: none; }
  .navbar { padding-inline: 0; }
}
.issue-feature { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; align-items: center; }
.two-col-empty { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.two-col-empty h2 { margin-bottom: 1rem; }
@media (max-width: 760px) { .issue-feature, .two-col-empty { grid-template-columns: 1fr; } }
.docsec { padding-block: 0 2.2rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--line); scroll-margin-top: 150px; }
.docsec:last-child { border-bottom: 0; }
.docsec h2 { font-size: var(--t-lg); margin: .3rem 0 .7rem; }
.docsec p { color: var(--muted); max-width: 70ch; margin-bottom: .8rem; }
.prose-lead { font-size: var(--t-md); color: var(--muted); max-width: 66ch; margin-bottom: 2rem; }
.prose p { max-width: 68ch; color: var(--muted); }
.prep-list { list-style: none; padding: 0; display: grid; gap: .1rem; }
.prep-list li { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.prep-list b { color: var(--ink); }
@media (max-width: 640px) { .prep-list li { grid-template-columns: 1fr; gap: .15rem; } }
.search-form { margin-bottom: 2rem; }
.results { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
.result { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; background: var(--surface); }
.result h3 { margin: .2rem 0 .35rem; font-size: 1.02rem; line-height: 1.35; font-weight: 600; letter-spacing: 0; }
.result .meta { color: var(--muted); font-size: var(--t-sm); }
.login-link { font-size: var(--t-sm); font-weight: 600; text-decoration: none; color: var(--green-ink); padding: .4rem .5rem; }
.login-link:hover { text-decoration: underline; }
@media (max-width: 560px) { .login-link { display: none; } }
.account { max-width: 560px; margin-inline: auto; }
.acc-tabs { display: flex; gap: .5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.acc-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: .7rem 1rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.acc-tabs button[aria-selected="true"] { color: var(--green-ink); border-bottom-color: var(--marigold); }
.link-btn { background: none; border: 0; color: var(--green-ink); text-decoration: underline; cursor: pointer; font: inherit; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: var(--t-sm); }

/* =====================================================================
   CAPA PREMIUM — cabecera y portada inmersivas en azul marino, tarjetas
   flotantes, sombras suaves, movimiento sutil
   ===================================================================== */
:root {
  --glow: #B83A26;
  --navy-0: #061A33;
  --navy-1: #0A2342;
  --navy-2: #0B1F3A;
  --shadow-lg: 0 2px 4px rgba(10, 35, 66, .05), 0 24px 60px -24px rgba(10, 35, 66, .35);
}
body { letter-spacing: .005em; }
h1, h2, h3 { letter-spacing: -.018em; }

/* Cabecera oscura continua con la portada */
.topbar { background: var(--navy-0); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.site-header { position: relative; background: var(--navy-1); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header .header-row { padding-block: 1.1rem .9rem; }
.site-header .brand, .site-header .brand:hover { color: #fff; }
.site-header .brand-name { font-size: 1.22rem; }
.site-header .brand-name em { color: var(--glow); font-weight: 400; }
.site-header .brand-mark { width: 44px; height: 44px; filter: drop-shadow(0 6px 14px rgba(184, 58, 38, .35)); }
.brand-mark .bg { fill: var(--glow); }
.brand-mark .cut { stroke: var(--navy-1); }
.brand-mark .st { stroke: var(--navy-1); }
.site-footer .brand-mark .bg { fill: var(--glow); }
.lang a { color: var(--on-deep-muted); }
.lang a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lang a[aria-current] { color: #fff; background: rgba(255, 255, 255, .14); }
.lang { color: rgba(255, 255, 255, .3); }
.login-link { color: #fff; opacity: .9; }
.login-link:hover { opacity: 1; }
.header-cta.btn-primary { background: var(--glow); color: #FFFFFF; font-weight: 700; box-shadow: 0 8px 24px -8px rgba(184, 58, 38, .6); }
.header-cta.btn-primary:hover { background: #E8806C; color: #FFFFFF; }
.navbar { background: transparent; border-top: 1px solid rgba(255, 255, 255, .09); }
.navbar .nav a { font-weight: 500; letter-spacing: .01em; padding: .85rem .85rem; }
.navbar .nav a[aria-current="page"] { border-bottom-color: var(--glow); }

/* Portada inmersiva */
.hero {
  color: #fff;
  background:
    radial-gradient(760px 460px at 88% 8%, rgba(184, 58, 38, .30), transparent 62%),
    radial-gradient(900px 520px at -5% 0%, rgba(14, 100, 168, .55), transparent 60%),
    var(--navy-1);
  padding-block: clamp(3rem, 7vw, 6rem) clamp(5.5rem, 9vw, 8rem);
}
.hero .display { color: #fff; font-weight: 400; }
.hero .display em { color: #F0A394; }
.hero .lead { color: #B9CBE3; }
.hero .eyebrow { color: #F0A394; }
.hero .eyebrow .dot { background: var(--glow); box-shadow: 0 0 0 5px rgba(184, 58, 38, .22); }
.hero .btn-primary { background: var(--glow); color: #FFFFFF; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(184, 58, 38, .7); }
.hero .btn-primary:hover { background: #E8806C; color: #FFFFFF; }
.hero .btn-ghost { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); color: #fff; backdrop-filter: blur(6px); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .14); border-color: #fff; color: #fff; }
.hero-meta { border-top-color: rgba(255, 255, 255, .16); }
.hero-meta div { border-right-color: rgba(255, 255, 255, .16); }
.hero-meta dt { color: #8FA8C7; }
.hero-meta dd { color: #fff; }
.hero .cover {
  background: linear-gradient(160deg, #12294A 0%, #0A2342 70%);
  box-shadow: 0 50px 90px -30px rgba(184, 58, 38, .45), 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1), inset 6px 0 0 rgba(0, 0, 0, .22);
}

/* Cifras flotando sobre la portada */
.facts { background: transparent; border: 0; margin-top: -3.2rem; position: relative; z-index: 2; }
.facts-row { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); }
.fact:first-child { border-left: 0; }
.fact-num { color: var(--green-ink); }

/* Cabeceras de página */
.page-head {
  color: #fff; border-bottom: 0;
  background:
    radial-gradient(620px 300px at 90% 0%, rgba(184, 58, 38, .22), transparent 62%),
    radial-gradient(700px 360px at 0% 0%, rgba(14, 100, 168, .45), transparent 60%),
    var(--navy-1);
  padding-block: clamp(2.2rem, 5vw, 3.8rem) clamp(2.6rem, 5vw, 4rem);
}
.page-head::before { display: none; }
.page-head .display-2 { color: #fff; }
.page-head .lead { color: #B9CBE3; }
.crumbs, .crumbs a { color: #8FA8C7; }
.crumbs a:hover { color: #fff; }
.page-head .status-pill { background: rgba(184, 58, 38, .16); color: #F0A394; border-color: rgba(184, 58, 38, .4); }
.page-head .subnav a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); color: #fff; }
main#contenido > .wrap { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section { border-bottom-color: transparent; }

/* Tarjetas */
.sec, .notice, .kv, .seat, .result, .issue-card, .mail-card, .band-list, .req-grid li {
  border-radius: 18px;
}
.sec, .result, .kv { box-shadow: 0 1px 2px rgba(10, 35, 66, .04); transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s ease, border-color .25s ease; }
.sec:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--glow) 60%, var(--line)); }
.sec-tag::before { background: var(--glow); width: 18px; }
.chip { background: color-mix(in srgb, var(--glow) 12%, var(--surface)); color: var(--green-ink); }
.notice { box-shadow: 0 1px 2px rgba(10, 35, 66, .04); border-left: 4px solid var(--glow); }
.table-wrap { border-radius: 18px; box-shadow: 0 1px 2px rgba(10, 35, 66, .04); }
.form { border-radius: 22px; box-shadow: var(--shadow-lg); }
.btn { transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.btn-primary { box-shadow: 0 8px 22px -10px rgba(14, 100, 168, .7); }
.btn-primary:hover { box-shadow: 0 12px 28px -10px rgba(14, 100, 168, .8); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--glow); outline-offset: 1px; border-color: var(--glow); }

/* Bloques */
.block-alt { background: linear-gradient(180deg, color-mix(in srgb, var(--sunk) 70%, var(--paper)), var(--sunk)); }
.band {
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(184, 58, 38, .22), transparent 60%),
    radial-gradient(800px 420px at 0% 100%, rgba(14, 100, 168, .5), transparent 60%),
    var(--navy-1);
}
.band-list { background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); border-color: rgba(255, 255, 255, .16); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.step-n { background: linear-gradient(135deg, var(--glow), var(--green)); color: #fff; }
.eyebrow { color: var(--green-ink); }

/* Pie oscuro */
.site-footer { background: var(--navy-0); border-top: 0; color: #B9CBE3; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.site-footer .brand-name em { color: var(--glow); }
.site-footer .footer-brand p, .site-footer .footer-h, .site-footer .muted { color: #8FA8C7; }
.site-footer .footer-col a { color: #E3ECF8; }
.site-footer .footer-col a:hover { color: var(--glow); }
.site-footer .footer-base { border-top-color: rgba(255, 255, 255, .1); color: #8FA8C7; }
.site-footer > .stitch { opacity: .5; }

/* Aparición suave al desplazarse */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } .sec:hover { transform: none; } }
@media (max-width: 1080px) {
  .site-header .header-row { padding-block: .9rem; }
  .nav-toggle { border-color: rgba(255, 255, 255, .3); color: #fff; }
  .facts { margin-top: -2.2rem; }
}

/* Envíos */
.subs-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.form.wide { max-width: 860px; margin-top: 1.5rem; display: grid; gap: 1rem; }
.form.wide h3 { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.form.wide h3:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-size: var(--t-sm); line-height: 1.5; }
.check input { margin-top: .25rem; width: auto; }
.author-row { display: grid; gap: .6rem; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; margin-bottom: .8rem; background: var(--sunk); }
.author-row .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.author-row label.inline { display: inline-flex; gap: .4rem; align-items: center; font-size: var(--t-sm); }
.author-row label.inline input { width: auto; }
.sub-card { border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.4rem; background: var(--surface); display: grid; gap: .5rem; }
.sub-card h3 { font-size: 1.2rem; }
.sub-card .meta { color: var(--muted); font-size: var(--t-sm); display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.sub-files { display: flex; flex-wrap: wrap; gap: .4rem; }
.sub-files button { font: inherit; font-size: var(--t-xs); cursor: pointer; border: 1px solid var(--line); background: var(--sunk); color: var(--green-ink); border-radius: 8px; padding: .25rem .55rem; }
.sub-files button:hover { border-color: var(--glow); }
.form-status.err { color: #b3261e; }
@media (max-width: 640px) { .author-row .field-row { grid-template-columns: 1fr; } }

[hidden] { display: none !important; }

/* Revisión por pares */
.sub-card.clickable { text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.sub-card.clickable:hover { border-color: var(--glow); box-shadow: var(--shadow-lg); }
.panel-detail { border: 1px solid var(--line); border-radius: 22px; padding: clamp(1rem, 3vw, 2rem); background: var(--surface); box-shadow: var(--shadow-lg); margin-top: 1.5rem; display: grid; gap: .5rem; }
.panel-detail .docsec { margin-bottom: 1rem; padding-bottom: 1rem; }
.panel-detail h2 { font-size: var(--t-xl); }
.decision { border-left: 4px solid var(--glow); background: var(--sunk); border-radius: 0 14px 14px 0; padding: .9rem 1.2rem; }
.decision h4 { margin: 0 0 .4rem; }
.decision blockquote { margin: .6rem 0 0; padding-left: 1rem; border-left: 2px solid var(--line); color: var(--muted); }
.rating-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; }
.form-status.err { color: #b3261e; }

/* Gestión y publicación */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-grid .fact { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 2px rgba(10, 35, 66, .04); }
.article-body { max-width: 70ch; margin-top: 1.5rem; }
.article-body p { color: var(--ink); margin-bottom: 1rem; }
ol.refs { padding-left: 1.4rem; color: var(--muted); font-size: var(--t-sm); display: grid; gap: .4rem; }
.acc-tabs { flex-wrap: wrap; }

/* Formulario por pasos */
.steps-tabs { display: flex; flex-wrap: wrap; gap: .4rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; }
.steps-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: .7rem 1rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.steps-tabs button[aria-selected="true"] { color: var(--green-ink); border-bottom-color: var(--glow); }
.steps-tabs button.done::after { content: " ✓"; color: var(--glow); }
.steps-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.steps-nav-r { display: inline-flex; gap: .6rem; }

/* Menú de usuario (sesión abierta) */
.user-menu { position: relative; }
.user-btn { display: inline-flex; align-items: center; gap: .55rem; background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: .28rem .8rem .28rem .3rem; font: inherit; font-size: var(--t-sm); font-weight: 600; cursor: pointer; }
.user-btn:hover { background: rgba(255, 255, 255, .16); }
.user-av { width: 30px; height: 30px; border-radius: 50%; background: var(--glow); color: #FFFFFF; display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
.user-name { max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-car { font-size: .7rem; opacity: .8; }
.user-drop { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 80; min-width: 250px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.user-head { display: grid; gap: .1rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); background: var(--sunk); }
.user-head span { color: var(--muted); font-size: var(--t-xs); word-break: break-all; }
.user-drop a, .user-out { display: block; width: 100%; text-align: left; padding: .7rem 1rem; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; font-size: var(--t-sm); cursor: pointer; }
.user-drop a:hover, .user-out:hover { background: var(--sunk); color: var(--green-ink); }
.user-out { border-top: 1px solid var(--line); color: #b3261e; }
.nav-mobile-only { display: none; }
@media (max-width: 1080px) { .navbar .nav a.nav-mobile-only { display: block; } }
@media (max-width: 560px) { .user-menu { display: none; } }

/* Cabeceras compactas para las pantallas de trabajo (cuenta, envíos, paneles) */
.page-head.compact { padding-block: 1.1rem 1.3rem; }
.page-head.compact .wrap { gap: .35rem; }
.page-head.compact .crumbs { font-size: .7rem; }
.page-head.compact .display-2 { font-size: clamp(1.45rem, 1.15rem + .9vw, 1.9rem); }
.page-head.compact .lead { font-size: var(--t-sm); margin: 0; }
.page-head.compact .status-pill { margin-top: .2rem; }
.page-head.compact + main#contenido > .wrap { padding-top: .5rem; }
.section.account, .section.subs { padding-block: 1.2rem 3rem; }

.rev-count { font-weight: 700; color: var(--muted); }
.rev-count.ready { color: var(--green-ink); }
.ready-pill { background: color-mix(in srgb, var(--glow) 18%, var(--surface)); color: var(--green-ink); }

.legal-list { padding-left: 1.2rem; display: grid; gap: .5rem; margin: .4rem 0 1rem; max-width: 70ch; color: var(--muted); }
.legal-list li::marker { color: var(--glow); }
.site-footer .footer-base a { color: #E3ECF8; }
.site-footer .footer-base a:hover { color: var(--glow); }

/* Logotipo */
.brand-logo { height: 56px; width: auto; display: block; }
.site-footer .brand-logo { height: 60px; }
@media (max-width: 560px) { .brand-logo { height: 44px; } }

/* Comité científico: tarjetas verticales con retrato grande */
#committee-root .seats { grid-template-columns: repeat(auto-fill, minmax(250px, 300px)); justify-content: center; gap: 1.4rem; }
#committee-root .seat { grid-template-columns: 1fr; justify-items: center; text-align: center; align-items: start; align-content: start; padding: 1.8rem 1.4rem 1.6rem; gap: 1.1rem; }
#committee-root .avatar { width: 132px; height: 132px; overflow: hidden; border: 2px solid var(--line); box-shadow: 0 0 0 4px var(--sunk); }
#committee-root .avatar:has(img) { border-style: solid; }
#committee-root .seat-info { justify-items: center; gap: .3rem; }
#committee-root .seat-name { font-size: 1.2rem; line-height: 1.25; text-wrap: balance; }
#committee-root .seat-aff { text-wrap: balance; line-height: 1.45; }
#committee-root .seat-info .mono { font-size: .72rem; white-space: nowrap; margin-top: .35rem; }
#committee-root { padding-bottom: 4rem; } #committee-root .seats { width: 100%; }
#committee-root .committee-sec { margin-bottom: 2.6rem; }
#committee-root .committee-title { font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; margin: 0 0 1.2rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
#committee-root .seats-advisory, #committee-root .seats-international { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); justify-content: stretch; }
#committee-root .seats { grid-template-columns: repeat(auto-fit, minmax(250px, 300px)); }
#committee-root .seats-advisory, #committee-root .seats-international { grid-template-columns: repeat(auto-fit, minmax(230px, 300px)); }
#committee-root .avatar-initials { font-family: var(--f-display); font-size: 2.6rem; color: var(--green-ink); letter-spacing: .02em; }

/* Panel editorial: cuadro de roles con los botones separados de los campos */
#roles-box .field-row { margin-bottom: 1.2rem; }
#roles-box .actions { margin-top: 1.2rem; margin-bottom: .9rem; }

/* Captcha y verificación en dos pasos */
.ts-box { min-height: 0; margin: .4rem 0 1rem; }
#mfa-box { margin: 0 0 1.6rem; padding: 1.2rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
#mfa-box h3 { margin: 0 0 .5rem; }
#mfa-box img { display: block; margin: .8rem 0; }
#mfa-box .field { margin: .6rem 0; max-width: 14rem; }

/* Notas de corrección / retractación en la página del artículo */
.article-notice { margin: 0 0 1.2rem; padding: 1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); border-left-width: 5px; background: var(--sunk); }
.article-notice p { margin: 0 0 .5rem; }
.article-notice p:last-child { margin-bottom: 0; }
.article-notice.notice-correction { border-left-color: #2f6fbf; }
.article-notice.notice-concern { border-left-color: #c98a0a; }
.article-notice.notice-retraction { border-left-color: #b3261e; background: #fdf0ef; color: #4a1511; }
@media not all { :root:not([data-theme="light"]) .article-notice.notice-retraction { background: #3a1613; color: #fbd9d6; } }

/* Suscripción a avisos (pie) */
.subscribe-wrap { padding-block: 1.4rem 0; }
.subscribe { max-width: 34rem; }
.subscribe-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; position: relative; }
.subscribe-row input[type="email"] { flex: 1 1 14rem; min-width: 0; padding: .65rem .9rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: inherit; font: inherit; }
.subscribe-row input[type="email"]::placeholder { color: rgba(255,255,255,.55); }
.subscribe .hint { margin-top: .5rem; font-size: .8rem; opacity: .85; }
.subscribe .hint a { text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.subscribe-wrap { padding-bottom: 1.6rem; }
.subscribe .hint { color: rgba(255,255,255,.78); opacity: 1; }
.subscribe .hint a { color: #fff; }

/* Banco de revisores y lista de verificación */
.checklist { margin: 1rem 0; }
.checklist h5 { margin: 1rem 0 .4rem; font-size: .95rem; }
.chk-row { display: grid; grid-template-columns: 1fr 11rem; gap: .6rem; align-items: center; padding: .4rem 0; border-bottom: 1px solid var(--line, #e3e6ea); }
.chk-row select { width: 100%; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .3rem .8rem; margin: .3rem 0 .8rem; }
.bank-list .sub-card, .bank-form { margin-top: .8rem; }
.bank-form { padding: .8rem; border: 1px dashed var(--line, #c9ced6); border-radius: 8px; }
.status-pill.pill-off { opacity: .65; }
@media (max-width: 560px) { .chk-row { grid-template-columns: 1fr; } }

/* Botones de las pantallas internas (envíos, revisiones, panel, gestión): más pequeños y con aire */
.subs .btn { padding: .5rem 1rem; font-size: var(--t-xs); margin: 1rem .6rem 0 0; }
.subs .actions { margin-top: 1rem; gap: .6rem; }
.subs .actions .btn, .subs .subs-head .btn, .subs .meta .btn { margin: 0; }
.subs .btn-primary { box-shadow: 0 5px 14px -8px rgba(14, 100, 168, .7); }
.subs [id^="pane-"] > .btn { margin: 0 0 1.2rem; }
.stat-grid .fact { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.2rem 1rem; }

/* Figuras y tablas dentro del texto del artículo */
.article-body figure { margin: 1.6rem 0; }
.article-body .art-fig img { display: block; max-width: 100%; height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 6px; }
.article-body figcaption { font-size: var(--t-sm); color: var(--ink-2, var(--ink)); margin-top: .6rem; }
.article-body .art-table figcaption { margin: 0 0 .5rem; }
.article-body .art-table table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.article-body .art-table th { text-align: left; border-bottom: 1px solid var(--ink); padding: .4rem .6rem; }
.article-body .art-table td { padding: .35rem .6rem; vertical-align: top; }
.article-body .art-table .table-wrap { overflow-x: auto; }
.article-body .table-note { font-size: var(--t-xs); color: var(--ink-2, var(--ink)); margin-top: .4rem; }

/* Citas numéricas en superíndice enlazadas con la lista de referencias */
sup.cite { font-size: .72em; line-height: 0; }
sup.cite a { text-decoration: none; color: var(--green-ink); font-weight: 600; }
sup.cite a:hover { text-decoration: underline; }
ol.refs li:target { background: var(--marigold-soft); border-radius: 6px; scroll-margin-top: 6rem; }

/* ---------- Página de artículo (maquetación tipo revista) ---------- */
.art-wrap { padding-block: 2.2rem 3.5rem; }
.art-head { max-width: 62rem; margin-bottom: 1.8rem; }
.art-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.2rem, 1rem + .75vw, 1.55rem); line-height: 1.28; letter-spacing: -.01em; margin: .5rem 0 .6rem; }
.art-title-alt { font-family: var(--f-display); font-style: italic; color: var(--muted); font-size: clamp(.95rem, .9rem + .2vw, 1.05rem); line-height: 1.4; margin: 0 0 1rem; }
.art-authors { font-size: 1.12rem; line-height: 1.6; margin: 0 0 .5rem; color: var(--ink); }
.art-authors sup, .art-affs sup { color: var(--green-ink); font-size: .68em; font-weight: 600; }
.art-affs { list-style: none; margin: 0 0 .35rem; padding: 0; font-size: var(--t-sm); color: var(--muted); display: grid; gap: .1rem; }
.art-corr { font-size: var(--t-sm); color: var(--muted); margin: .2rem 0 0; }
.art-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 1000px) { .art-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; } .art-side { position: sticky; top: 1.2rem; } }
.art-main { min-width: 0; max-width: 46rem; }
.art-sec { margin: 0 0 2.2rem; padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.art-sec > h2, .art-decls > h2 { font-family: var(--f-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--green-ink); margin: 0 0 .9rem; }
.abs-p { margin: 0 0 .75rem; line-height: 1.65; }
.abs-l { display: block; font-weight: 700; color: var(--ink); margin-bottom: .1rem; }
.art-kw { margin: 1.1rem 0 0; display: grid; gap: .45rem; }
.art-kw b { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.art-kw span { display: flex; flex-wrap: wrap; gap: .4rem; }
.art-kw em { font-style: normal; font-size: var(--t-sm); background: var(--sunk); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .7rem; }
.article-body { max-width: none; margin-top: 0; font-size: 1.06rem; line-height: 1.75; hyphens: auto; }
.article-body > h3 { font-family: var(--f-body); font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink); margin: 2.4rem 0 .9rem; padding-top: 1rem; border-top: 2px solid var(--ink); scroll-margin-top: 1rem; }
.article-body > h3:first-child { margin-top: 0; }
.article-body > h4 { font-family: var(--f-display); font-size: 1.2rem; font-weight: 600; font-style: italic; margin: 1.7rem 0 .5rem; color: var(--ink); }
.article-body p { margin-bottom: 1rem; }
.art-decls { border-top-color: var(--line); background: var(--sunk); padding: 1.1rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--line); }
.art-decls .article-decl { margin: 0 0 1rem; }
.art-decls .article-decl:last-child { margin-bottom: 0; }
.art-decls .article-decl h3 { font-size: .98rem; margin: 0 0 .25rem; font-weight: 700; }
.art-decls .article-decl p { margin: 0 0 .4rem; font-size: .98rem; line-height: 1.6; }
.art-sec .refs { font-size: .92rem; color: var(--ink); gap: .55rem; padding-left: 1.6rem; }
.art-sec .refs li { scroll-margin-top: 1rem; padding: .1rem .3rem; }
.art-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.art-side-h { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--green-ink); margin: 0 0 .7rem; }
.art-dl { margin: 0 0 1rem; display: grid; gap: .55rem; font-size: var(--t-sm); }
.art-dl div { display: grid; grid-template-columns: 6.2rem 1fr; gap: .5rem; }
.art-dl dt { color: var(--muted); }
.art-dl dd { margin: 0; overflow-wrap: anywhere; }
.art-links { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; }
.art-cite { font-size: var(--t-sm); color: var(--muted); line-height: 1.55; margin: 0; overflow-wrap: anywhere; }
.art-toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: grid; gap: .35rem; }
.art-toc a { font-size: var(--t-sm); text-decoration: none; color: var(--ink); padding: .15rem 0; }
.art-toc a:hover { color: var(--green-ink); text-decoration: underline; }
@media (max-width: 999px) { .art-side { order: -1; } .art-toc { display: none; } }
.art-au .orcid { display: inline-flex; vertical-align: -.12em; margin-left: .15rem; line-height: 0; }
.art-au .orcid svg { width: 1em; height: 1em; transition: transform .15s ease; }
.art-au .orcid:hover svg { transform: scale(1.18); }
/* Títulos del artículo: mismo ancho y líneas equilibradas (sin una línea corta junto a otra larga) */
.art-title, .art-title-alt { max-width: 52rem; text-align: justify; text-align-last: left; text-wrap: pretty; hyphens: manual; }

/* Compartir y contadores del artículo */
.art-share { margin-top: .9rem; position: relative; }
.art-share summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .45rem; font-size: var(--t-sm); font-weight: 600; color: var(--green-ink); padding: .35rem .2rem; }
.art-share summary::-webkit-details-marker { display: none; }
.art-share summary:hover { color: var(--green); }
.art-share-menu { margin-top: .5rem; display: grid; gap: .1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: .35rem; box-shadow: var(--shadow); }
.art-share-menu a, .art-share-menu button { display: flex; align-items: center; gap: .65rem; width: 100%; text-align: left; font: inherit; font-size: var(--t-sm); color: var(--ink); background: none; border: 0; border-radius: 8px; padding: .5rem .6rem; text-decoration: none; cursor: pointer; }
.art-share-menu a:hover, .art-share-menu button:hover { background: var(--sunk); color: var(--green-ink); }
.art-share-menu svg { color: var(--green-ink); flex: none; }

/* Acerca de: objetivos y alcance */
.mission { max-width: 40ch; font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.9rem); }
.about-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
@media (min-width: 900px) { .about-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; } }
.about-h { font-size: var(--t-md); margin: 0 0 1rem; }
.about-aims { list-style: none; counter-reset: aim; margin: 0; padding: 0; display: grid; gap: 1rem; }
.about-aims li { counter-increment: aim; position: relative; padding-left: 2.6rem; line-height: 1.55; color: var(--ink); }
.about-aims li::before { content: counter(aim); position: absolute; left: 0; top: .05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--marigold-soft); color: var(--green-ink); font-weight: 700; font-size: .85rem; display: grid; place-items: center; }
.about-cols .prose p { max-width: none; margin: 0 0 1rem; }
.about-links { margin-top: 1.2rem; }

/* Acerca de: información institucional como lista limpia */
.inst-list { margin: 0; max-width: 58rem; border-top: 1px solid var(--line); }
.inst-row { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1.2rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.inst-row dt { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.inst-row dd { margin: 0; display: grid; gap: .2rem; }
.inst-row dd strong { font-family: var(--f-body); font-weight: 600; font-size: 1.08rem; color: var(--ink); overflow-wrap: anywhere; }
.inst-row dd a { color: var(--green-ink); }
.inst-row dd small { font-size: var(--t-sm); color: var(--muted); line-height: 1.5; }
@media (max-width: 640px) { .inst-row { grid-template-columns: 1fr; gap: .25rem; } }
.about-story { margin-top: 1.6rem; max-width: 46rem; }
.about-story p { color: var(--ink); line-height: 1.7; margin: 0 0 1rem; max-width: none; }
/* Acerca de: frase principal y texto con el mismo ancho y márgenes alineados */
.about-intro { max-width: 46rem; }
.about-intro .mission { max-width: none; text-wrap: balance; }
.about-story { max-width: none; margin-top: 1.6rem; }
.about-story p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.about-intro .mission { text-wrap: wrap; text-align: justify; text-align-last: left; hyphens: manual; }
.about-story p { hyphens: manual; -webkit-hyphens: manual; }
/* Panel editorial: título del envío más discreto */
.sub-title { font-size: clamp(1.05rem, .95rem + .4vw, 1.3rem); line-height: 1.35; font-weight: 600; letter-spacing: 0; margin: .3rem 0 .6rem; }
.panel-detail h2.sub-title { font-size: clamp(1.05rem, .95rem + .35vw, 1.25rem); line-height: 1.35; font-weight: 600; letter-spacing: 0; text-wrap: pretty; margin: .3rem 0 .6rem; }

/* Pie: suscripción a la izquierda y logo de la editorial a la derecha */
.footer-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-split .subscribe { flex: 1 1 24rem; }
.footer-publisher { flex: 0 0 auto; display: block; opacity: .95; transition: opacity .15s ease; }
.footer-publisher:hover { opacity: 1; }
.footer-publisher img { display: block; width: clamp(11rem, 20vw, 16rem); height: auto; }
@media (max-width: 860px) { .footer-publisher img { width: 12rem; } }

/* Móvil: nada puede ensanchar la página (tablas anchas dentro de .doc se desplazan solas) */
.doc > *, .docsec, .prose { min-width: 0; max-width: 100%; }
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
html, body { overflow-x: clip; }

/* iPhone con muesca y barra inferior: el contenido respeta las zonas seguras */
.site-footer { padding-bottom: env(safe-area-inset-bottom, 0px); }
@media (max-width: 860px) { .wrap { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); } }
/* Evita el zoom automático de iOS al enfocar un campo */
@media (max-width: 860px) { input, select, textarea { font-size: max(16px, 1em); } }
.refs a { color: var(--green-ink); text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
.refs a:hover { color: var(--green); }

/* Móvil: el justificado deja huecos enormes en líneas cortas; los títulos y textos van alineados a la izquierda */
@media (max-width: 900px) {
  .art-title, .art-title-alt { text-align: left; text-align-last: auto; text-wrap: balance; hyphens: manual; }
  .about-intro .mission, .about-story p { text-align: left; text-align-last: auto; }
}

/* Entrar con Google / ORCID */
.oauth { display: grid; gap: .6rem; margin-bottom: 1.2rem; max-width: 26rem; }
.btn-oauth { display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.btn-oauth:hover { background: var(--sunk); border-color: var(--green-ink); }
.btn-oauth[hidden] { display: none; }
.oauth-or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: var(--t-sm); margin: .4rem 0 0; }
.oauth-or::before, .oauth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.oauth .hint { font-size: .8rem; margin: 0; }

/* Panel editorial: detalle de un envío (vista limpia y ordenada) */
#panel-main:has(#panel-detail:not([hidden])) > :not(#panel-detail):not(#panel-msg) { display: none; }
.panel-detail { padding: 0; overflow: hidden; gap: 0; margin-top: .5rem; max-width: 980px; margin-inline: auto; }
.panel-detail > * { margin-inline: clamp(1.1rem, 3.5vw, 2.4rem); }
.panel-detail > .link-btn { margin-top: 1.3rem; justify-self: start; font-size: var(--t-sm); text-decoration: none; color: var(--muted); font-weight: 600; }
.panel-detail > .link-btn:hover { color: var(--green-ink); }
.panel-detail > .tag { margin-top: 1.2rem; justify-self: start; }
.panel-detail > h2.sub-title { margin: .5rem clamp(1.1rem, 3.5vw, 2.4rem) .9rem; font-size: clamp(1.15rem, 1rem + .7vw, 1.55rem); line-height: 1.3; font-weight: 600; text-wrap: balance; }
.panel-detail > .meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; align-items: center; color: var(--muted); font-size: var(--t-sm); padding-bottom: 1.3rem; margin-bottom: 0; border-bottom: 1px solid var(--line); }
.panel-detail > .docsec, .panel-detail > .decision { margin: 0; padding: 1.5rem clamp(1.1rem, 3.5vw, 2.4rem); border-bottom: 1px solid var(--line); }
.panel-detail > .docsec:nth-of-type(even) { background: var(--sunk); }
.panel-detail > .docsec:last-child { border-bottom: 0; }
.panel-detail .docsec > h3 { font-family: inherit; font-size: var(--t-xs); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 0 0 .9rem; }
.panel-detail .docsec h4 { font-size: var(--t-base); margin: 1.2rem 0 .5rem; }
.panel-detail .docsec p { max-width: 74ch; line-height: 1.65; margin-bottom: .7rem; }
.panel-detail .docsec .hint { font-size: var(--t-sm); }
.panel-detail .docsec .sub-card { background: var(--surface); margin-bottom: .7rem; box-shadow: 0 1px 0 rgba(0,0,0,.02); }
.panel-detail .field-row { gap: 1rem; }
.panel-detail .actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.panel-detail details.docsec { padding: 1.1rem clamp(1.1rem, 3.5vw, 2.4rem); }
.panel-detail details.docsec > summary { cursor: pointer; font-weight: 600; }
.panel-detail .sub-files { gap: .5rem; }
@media (max-width: 640px) { .panel-detail { border-radius: 16px; } }

/* Cuenta: bloque centrado */
.wrap > #account-root.section.account { max-width: 540px; margin-inline: auto; width: 100%; }
#account-root .acc-tabs { justify-content: center; }
#account-root .oauth { max-width: none; }
#account-root .oauth .hint { text-align: center; }
#account-root .btn-oauth { justify-content: center; width: 100%; }
#account-root .page-head, #account-root > h2 { text-align: center; }

.orcid-ok { font-size: var(--t-xs); font-weight: 700; color: #1a7f37; margin-left: .4rem; }
.orcid-verify { justify-self: start; font-size: var(--t-sm); margin-top: .3rem; }

/* Perfil: ORCID y País alineados arriba (el enlace «Verificar» no desplaza al País) */
#form-profile .field-row { align-items: start; }
#form-profile .field-row .field { align-content: start; }
#form-profile .field-row .field input { margin: 0; }

/* Artículo: autores y afiliaciones más pequeños que el título */
.art-authors { font-size: clamp(.9rem, .86rem + .15vw, .98rem); line-height: 1.6; }
.art-authors .orcid svg { width: .95em; height: .95em; }
.art-affs { font-size: .8rem; }
.art-corr { font-size: .8rem; }

/* Tarjetas de artículo (portada y listas): más editorial */
.two-col-empty.solo { grid-template-columns: 1fr; }
.two-col-empty.solo .results { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 1.25rem; }
.result.rc { position: relative; display: grid; gap: .65rem; align-content: start; padding: 1.35rem 1.5rem 1.2rem; border-radius: 18px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(10, 30, 60, .04); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.result.rc::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--glow), var(--marigold)); opacity: .9; }
.result.rc:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(10, 30, 60, .10); border-color: color-mix(in srgb, var(--glow) 45%, var(--line)); }
.rc-top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; }
.rc-top .tag { margin: 0; }
.rc-date { font-size: var(--t-xs); color: var(--muted); letter-spacing: .02em; white-space: nowrap; }
.result.rc h3 { margin: .1rem 0 0; font-family: var(--f-display); font-size: clamp(1.02rem, .96rem + .3vw, 1.2rem); font-weight: 500; line-height: 1.32; letter-spacing: -.005em; text-wrap: balance; }
.result.rc h3 a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .25s ease; }
.result.rc:hover h3 a { background-size: 100% 1px; }
.rc-authors { margin: 0; color: var(--muted); font-size: var(--t-sm); line-height: 1.5; }
.rc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .3rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.rc-read { margin-right: auto; font-weight: 600; font-size: var(--t-sm); color: var(--green-ink); text-decoration: none; }
.rc-read::after { content: " →"; transition: margin .15s ease; }
.rc-read:hover::after { margin-left: .25rem; }
.rc-chip { font-size: var(--t-xs); font-weight: 700; letter-spacing: .05em; padding: .22rem .6rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.rc-chip:hover { color: var(--green-ink); border-color: var(--glow); }
.rc-all { display: inline-block; margin: -1rem 0 2rem; font-weight: 600; color: var(--green-ink); text-decoration: none; }
.rc-all:hover { text-decoration: underline; }

/* Tarjetas más compactas; «Artículos destacados» vuelve a la columna derecha */
.two-col-empty.solo { grid-template-columns: 1fr 1fr; }
.two-col-empty.solo .results { grid-template-columns: 1fr; gap: 1rem; }
.result.rc { gap: .4rem; padding: .85rem 1.05rem .75rem 1.2rem; border-radius: 14px; }
.result.rc::before { width: 3px; }
.rc-top .tag { font-size: .7rem; }
.rc-date { font-size: .72rem; }
.result.rc h3 { font-size: clamp(.92rem, .88rem + .2vw, 1.02rem); line-height: 1.3; }
.rc-authors { font-size: .8rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rc-foot { margin-top: .15rem; padding-top: .5rem; gap: .4rem; }
.rc-read { font-size: .82rem; }
.rc-chip { font-size: .66rem; padding: .12rem .5rem; }
.rc-all { margin: -.4rem 0 1.6rem; font-size: .9rem; }

/* Revisión automática del artículo */
.qa-sum { font-weight: 700; margin: .8rem 0 .4rem; padding: .6rem .9rem; border-radius: 10px; }
.qa-sum.qa-ok { background: #e8f5ec; color: #17642e; } .qa-sum.qa-warn { background: #fff4de; color: #7a5200; } .qa-sum.qa-bad { background: #fde8e6; color: #9b1c12; }
.qa-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .25rem; font-size: var(--t-sm); }
.qa-list .qa-err { color: #9b1c12; font-weight: 600; } .qa-list .qa-warn { color: #7a5200; } .qa-list .qa-ok { color: var(--muted); }

.vol-wrap { margin: .4rem 0 1.2rem; }
.vol-btn { text-decoration: none; }

.issue-wrap .vol-wrap { margin: .6rem 0 0 .3rem; }

/* Número actual: las tarjetas de cada sección van apiladas en la columna derecha, alineadas */
.toc-list { display: grid; gap: 1rem; min-width: 0; align-content: start; }
.toc-list > .result { margin: 0; }

/* Panel editorial: los avisos se quedan visibles arriba sin mover la página */
#panel-msg { position: sticky; top: .6rem; z-index: 30; box-shadow: 0 6px 18px rgba(10, 30, 60, .14); }

/* Secciones plegables del detalle de un envío */
.panel-detail details.fold > summary { cursor: pointer; list-style: none; font-size: var(--t-xs); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .55rem; }
.panel-detail details.fold > summary::-webkit-details-marker { display: none; }
.panel-detail details.fold > summary::before { content: "▸"; font-size: .95rem; transition: transform .15s ease; color: var(--green-ink); }
.panel-detail details.fold[open] > summary::before { transform: rotate(90deg); }
.panel-detail details.fold > summary:hover { color: var(--green-ink); }
.panel-detail details.fold .fold-body { margin-top: .9rem; }

/* Artículo: material suplementario */
.supp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.supp-list a { display: flex; align-items: center; gap: .8rem; padding: .7rem .95rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
.supp-list a:hover { border-color: var(--glow); box-shadow: 0 4px 14px rgba(10, 30, 60, .08); }
.supp-ext { font-size: .68rem; font-weight: 700; letter-spacing: .06em; padding: .22rem .5rem; border-radius: 6px; background: var(--sunk); color: var(--green-ink); border: 1px solid var(--line); min-width: 3rem; text-align: center; }
.supp-t { flex: 1; font-weight: 600; line-height: 1.35; }
.supp-kb { font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }

/* Gestión: el aviso queda fijo arriba sin mover la página */
#mg-msg { position: sticky; top: .6rem; z-index: 30; box-shadow: 0 6px 18px rgba(10, 30, 60, .14); }

/* Aire en /cuenta y en las invitaciones pendientes del panel (nada montado) */
#acc-user > h2 { margin: 0 0 .5rem; line-height: 1.15; }
#acc-user #u-email { margin: 0 0 .9rem; }
#acc-user > p { margin: 0 0 1.4rem; }
#acc-user #role-links { display: flex; flex-wrap: wrap; gap: .7rem; margin: 0 0 2.2rem !important; }
#acc-user .docsec { margin: 0 0 2rem; padding: 1.4rem 1.6rem; }
#acc-user .docsec h3, #acc-user .docsec h4 { margin: 0 0 .7rem; }
#acc-user .docsec p { margin: 0 0 1rem; line-height: 1.6; }
#acc-user .form { margin-top: .5rem; }
#roles-box { padding: 1.6rem 1.8rem; }
#roles-box h3, #roles-box h2 { margin: 0 0 1.2rem; }
#roles-box .field-row, #roles-box .field { margin-bottom: 1rem; }
#roles-box .actions { margin: .4rem 0 1.2rem; gap: .7rem; display: flex; flex-wrap: wrap; }
#roles-box .hint { margin: .5rem 0 .8rem; line-height: 1.55; }
#roles-pending { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
#roles-pending .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1rem; margin: 0 0 .7rem; }
#roles-pending .meta .mono { word-break: break-all; }
#panel-root .sub-card { margin-bottom: 1.1rem; }
#panel-root details.docsec { margin: 1.4rem 0 2rem; }

/* Mis revisiones: el resumen se contrae y se expande a voluntad del revisor */
.rv-fold { margin: .9rem 0 1.1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.rv-fold > summary { cursor: pointer; list-style: none; padding: .7rem 1rem; font-size: var(--t-xs); font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .55rem; }
.rv-fold > summary::-webkit-details-marker { display: none; }
.rv-fold > summary::before { content: "▸"; font-size: .95rem; transition: transform .15s ease; color: var(--green-ink); }
.rv-fold[open] > summary::before { transform: rotate(90deg); }
.rv-fold > summary:hover { color: var(--green-ink); }
.rv-fold-body { padding: 0 1rem .4rem; }

/* Comentarios del revisor: plegados por defecto (la tarjeta no se alarga) */
.panel-detail details.rv-comments, .panel-detail details.thanks-fold { margin: .8rem 0; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.panel-detail details.rv-comments .fold-body p { line-height: 1.65; }

/* ===== Semáforo de estados (envíos del panel) ===== */
.st-green { --st: #1f9d55; } .st-blue { --st: #2f6fe4; } .st-amber { --st: #e29a0b; }
.st-violet { --st: #7c4ddb; } .st-red { --st: #d6453d; } .st-gray { --st: #8a94a3; }
.status-pill[class*="st-"] { color: color-mix(in srgb, var(--st) 55%, #0b1b2b); background: color-mix(in srgb, var(--st) 14%, var(--surface)); border-color: color-mix(in srgb, var(--st) 45%, transparent); }
.status-pill[class*="st-"]::before { background: var(--st); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st) 22%, transparent); }
:root[data-theme="dark"] .status-pill[class*="st-"] { color: color-mix(in srgb, var(--st) 70%, #fff); }
@media not all { :root:not([data-theme="light"]) .status-pill[class*="st-"] { color: color-mix(in srgb, var(--st) 70%, #fff); } }
.sub-card.clickable[class*="st-"] { border-left: 5px solid var(--st); }
.sub-card.clickable[class*="st-"]:hover { box-shadow: 0 6px 22px color-mix(in srgb, var(--st) 18%, transparent); }

/* ===== Banco de revisores (tarjetas) ===== */
.bk-wrap > summary { font-weight: 700; }
.bk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1.1rem; margin-top: 1.1rem; }
.bk-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 1.1rem 1.2rem 1rem; display: flex; flex-direction: column; gap: .9rem; box-shadow: 0 1px 2px rgba(10, 30, 50, .05); }
.bk-card.bk-off { opacity: .8; }
.bk-top { display: flex; align-items: center; gap: .85rem; flex-wrap: wrap; }
.bk-av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; letter-spacing: .02em; color: #fff; background: linear-gradient(135deg, #B83A26, #0B1F3A); }
.bk-who { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.bk-who strong { font-size: 1.02rem; }
.bk-mail, .bk-inst { font-size: var(--t-xs); color: var(--muted); overflow-wrap: anywhere; }
.bk-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.bk-stat { background: color-mix(in srgb, var(--line) 35%, var(--surface)); border-radius: 10px; padding: .55rem .6rem; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.bk-stat b { font-size: 1.05rem; line-height: 1.1; }
.bk-stat span { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.bk-bar { height: 5px; border-radius: 99px; background: color-mix(in srgb, var(--line) 80%, transparent); overflow: hidden; margin-top: .3rem; }
.bk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #B83A26, #1f9d55); border-radius: inherit; }
.bk-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.bk-chip { font-size: var(--t-xs); padding: .18rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--green-ink); }
.bk-lang { font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.bk-exp { margin: 0; font-size: var(--t-sm); line-height: 1.5; color: var(--muted); }
.bk-note { margin: 0; font-size: var(--t-xs); color: var(--muted); border-left: 3px solid var(--marigold); padding-left: .6rem; }
.bk-edit { align-self: flex-start; margin-top: auto; }
.bk-card .bank-form { margin-top: .4rem; }
@media (max-width: 520px) { .bk-stats { grid-template-columns: repeat(2, 1fr); } }

/* Banco de revisores: encabezado como botón */
.bk-wrap { border: 0; padding: 0; background: none; margin: 1.4rem 0 2rem; }
.bk-wrap > summary { display: flex; align-items: center; gap: .9rem; list-style: none; cursor: pointer; padding: 1rem 1.3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(10, 30, 50, .06); font-size: 1.05rem; font-weight: 700; color: var(--ink, inherit); transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.bk-wrap > summary::-webkit-details-marker { display: none; }
.bk-wrap > summary::before { content: ""; flex: none; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--glow) 16%, var(--surface)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312807a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6'/%3E%3Cpath d='M17 10.5a2.8 2.8 0 1 0 0-5.6M21 20c0-2.6-1.6-4.8-4-5.6'/%3E%3C/svg%3E") center / 22px no-repeat; }
.bk-wrap > summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.bk-wrap[open] > summary::after { transform: rotate(-135deg); }
.bk-wrap > summary:hover { border-color: var(--glow); box-shadow: 0 6px 20px rgba(10, 30, 50, .1); transform: translateY(-1px); }
.bk-wrap[open] > summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; transform: none; }
.bk-wrap > div { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; padding: 1.2rem 1.3rem 1.4rem; background: color-mix(in srgb, var(--line) 12%, var(--surface)); }
.bk-wrap > div > .hint { margin: 0 0 1.1rem; padding: .7rem .9rem; border-left: 3px solid var(--glow); background: var(--surface); border-radius: 0 8px 8px 0; font-size: var(--t-sm); line-height: 1.55; }

/* Archivos del revisor: fila con aire entre archivo, etiqueta y botón */
.sub-files .rf-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; margin: .5rem 0; }
.sub-files .rf-row > button, .sub-files .rf-row > .btn { margin: 0; }
.sub-files .rf-row .status-pill { margin: 0; }
.sub-files > .hint { margin: .2rem 0 .7rem; }

/* Historial de decisiones: cada decisión se despliega y se contrae */
.panel-detail details.dec-fold { margin: .6rem 0; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.panel-detail details.dec-fold[open] { border-color: color-mix(in srgb, var(--glow) 55%, var(--line)); }
.panel-detail details.dec-fold .fold-body p { margin: 0; line-height: 1.65; white-space: pre-line; }

/* Historial de decisiones: cada decisión se despliega y se contrae */
.panel-detail details.dec-fold { margin: .7rem 0; padding: .75rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.panel-detail details.dec-fold > summary { text-transform: none; letter-spacing: .01em; font-size: var(--t-sm); font-weight: 700; color: var(--ink, inherit); }
.panel-detail details.dec-fold .dec-letter { margin: 0; line-height: 1.65; white-space: pre-line; }

/* Bloques del envío plegables */
.panel-detail details.sec-fold { margin: 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; padding: 1.1rem 0; }
.panel-detail details.sec-fold > summary { padding: .2rem 0; }
.panel-detail details.sec-fold > summary:hover { color: var(--green-ink); }
.panel-detail details.sec-fold > .fold-body { margin-top: 1rem; }

/* ===== Bloques del envío: tarjetas plegables (versión premium) ===== */
.panel-detail > details.sec-fold { margin-block: .55rem; padding: 0 !important; border: 1px solid var(--line); border-radius: 16px; background: var(--surface) !important; overflow: hidden; box-shadow: 0 1px 2px rgba(10, 30, 50, .05); transition: box-shadow .18s ease, border-color .18s ease; }
.panel-detail > details.sec-fold:hover { box-shadow: 0 6px 22px rgba(10, 30, 50, .08); }
.panel-detail > details.sec-fold[open] { border-color: color-mix(in srgb, var(--glow) 35%, var(--line)); }
.panel-detail > details.sec-fold:last-child { border-bottom: 1px solid var(--line); }
.panel-detail > details.sec-fold > summary { display: flex; align-items: center; gap: .9rem; padding: 1.15rem 1.5rem !important; font-size: 1.02rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink, inherit); cursor: pointer; list-style: none; }
.panel-detail > details.sec-fold > summary::-webkit-details-marker { display: none; }
.panel-detail > details.sec-fold > summary::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px color-mix(in srgb, var(--glow) 18%, transparent); transform: none !important; font-size: 0; }
.panel-detail > details.sec-fold > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease; }
.panel-detail > details.sec-fold[open] > summary::after { transform: rotate(-135deg); }
.panel-detail > details.sec-fold > summary:hover { color: var(--green-ink); }
.panel-detail > details.sec-fold > .fold-body { margin: 0 !important; padding: 1.3rem 1.5rem 1.6rem; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--line) 10%, var(--surface)); }
.panel-detail > details.sec-fold > .fold-body > :first-child { margin-top: 0; }
.panel-detail > details.sec-fold > .fold-body > :last-child { margin-bottom: 0; }
.panel-detail > details.sec-fold .fold-body p { max-width: 78ch; }
.panel-detail > details.sec-fold .fold-body .sub-card { background: var(--surface); margin-bottom: 1rem; }
.panel-detail > details.sec-fold .fold-body .form-status, .panel-detail > details.sec-fold .fold-body .field { margin-bottom: 1rem; }
.panel-detail > details.sec-fold .fold-body h4 { margin: 1.6rem 0 .7rem; }
.panel-detail > details.sec-fold .fold-body .actions { margin-top: 1.1rem; }
/* separación entre bloque de decisión/título y las tarjetas */
.panel-detail > .meta { margin-bottom: 1.2rem; }
.panel-detail > details.sec-fold:first-of-type { margin-top: 1rem; }
.panel-detail > details.sec-fold:last-of-type { margin-bottom: 1.8rem; }

/* ===== Bandeja «qué me toca hacer» ===== */
.inbox { margin: 0 0 1.8rem; }
.inbox-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-bottom: .8rem; }
.inbox-head h2 { margin: 0; font-size: 1.25rem; }
.inbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.inbox-tile { text-align: left; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; gap: .25rem; padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--line); border-left: 5px solid var(--ib, #8a94a3); background: var(--surface); box-shadow: 0 1px 2px rgba(10, 30, 50, .05); transition: transform .12s ease, box-shadow .12s ease; }
.inbox-tile b { font-size: 1.9rem; line-height: 1; color: var(--ib, inherit); }
.inbox-tile span { font-size: var(--t-sm); color: var(--muted); line-height: 1.3; }
.inbox-tile:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 22px color-mix(in srgb, var(--ib) 22%, transparent); }
.inbox-tile.on { background: color-mix(in srgb, var(--ib) 10%, var(--surface)); border-color: var(--ib); }
.inbox-tile:disabled { cursor: default; opacity: .6; }
.ib-violet { --ib: #7c4ddb; } .ib-green { --ib: #1f9d55; } .ib-blue { --ib: #2f6fe4; } .ib-amber { --ib: #e29a0b; } .ib-red { --ib: #d6453d; } .ib-zero { --ib: #b8c0cc; }

/* ===== Métricas ===== */
.mt-wrap { margin-top: 1.2rem; }
.mt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; margin: .6rem 0 1.4rem; }
.mt-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem .95rem; display: flex; flex-direction: column; gap: .2rem; }
.mt-tile b { font-size: 1.5rem; line-height: 1.1; }
.mt-tile span { font-size: var(--t-sm); color: var(--muted); }
.mt-tile em { font-style: normal; font-size: 11px; letter-spacing: .04em; color: var(--muted); }
.mt-bars { display: grid; gap: .5rem; margin-bottom: 1rem; }
.mt-bar { display: grid; grid-template-columns: minmax(130px, 220px) 1fr 2rem; align-items: center; gap: .8rem; font-size: var(--t-sm); }
.mt-bar i { height: 10px; background: color-mix(in srgb, var(--line) 60%, transparent); border-radius: 99px; overflow: hidden; display: block; }
.mt-bar u { display: block; height: 100%; border-radius: inherit; text-decoration: none; }
.mt-bar b { text-align: right; }


/* ============================================================================
   SALTUS — base blanca, tinta marino y un toque de coral (guía de identidad)
   ============================================================================ */
:root { color-scheme: light; --coral: #B83A26; --coral-soft: #F7E6E2; --ink: #0B1F3A; --slate: #4A5568; --fog: #EEF1F5; }
body { background: #fff; }
.topbar { background: var(--fog); color: var(--slate); border-bottom: 1px solid var(--line); }
.topbar b { color: var(--ink); }
.site-header { background: #fff; border-bottom: 0; }
.site-header .brand, .site-header .brand:hover { color: var(--ink); }
.site-header .header-row { padding-block: 1.05rem .8rem; }
.lang a { color: var(--slate); }
.lang a:hover { color: var(--ink); background: var(--fog); }
.lang a[aria-current] { color: var(--ink); background: var(--fog); }
.lang { color: var(--line); }
.login-link { color: var(--ink); opacity: 1; font-weight: 500; }
.login-link:hover { color: var(--coral); }
.header-cta.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(11, 31, 58, .55); }
.header-cta.btn-primary:hover { background: var(--coral); color: #fff; }
.navbar { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.navbar .nav a { color: var(--slate); font-weight: 500; }
.navbar .nav a:hover { color: var(--ink); background: var(--fog); }
.navbar .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--coral); }

/* Portada clara: papel blanco, el arco del logo como marca de agua y la tapa del número en tinta */
.hero {
  color: var(--ink);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 460'%3E%3Cpath d='M96 335 C 128 205, 215 76, 318 76 C 352 76, 378 92, 396 108' fill='none' stroke='%230B1F3A' stroke-opacity='.06' stroke-width='36' stroke-linecap='round'/%3E%3Ccircle cx='414' cy='136' r='34' fill='none' stroke='%230B1F3A' stroke-opacity='.06' stroke-width='20'/%3E%3Ccircle cx='89' cy='357' r='42' fill='%23B83A26' fill-opacity='.10'/%3E%3C/svg%3E") no-repeat -4% 112% / min(62vw, 760px),
    radial-gradient(900px 520px at 100% 0%, rgba(184, 58, 38, .07), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--fog) 100%);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(5.5rem, 9vw, 8rem);
}
.hero .display { color: var(--ink); font-weight: 400; }
.hero .display em { color: var(--coral); }
.hero .lead { color: var(--slate); }
.hero .eyebrow { color: var(--coral); }
.hero .eyebrow .dot { background: var(--coral); box-shadow: 0 0 0 5px rgba(184, 58, 38, .16); }
.hero .btn-primary { background: var(--ink); color: #fff; box-shadow: 0 14px 30px -14px rgba(11, 31, 58, .7); }
.hero .btn-primary:hover { background: var(--coral); color: #fff; }
.hero .btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); backdrop-filter: none; }
.hero .btn-ghost:hover { background: var(--fog); border-color: var(--ink); color: var(--ink); }
.hero-meta { border-top-color: var(--line); }
.hero-meta div { border-right-color: var(--line); }
.hero-meta dt { color: var(--slate); }
.hero-meta dd { color: var(--ink); }
.hero .cover {
  background: linear-gradient(160deg, #12294A 0%, #0B1F3A 72%);
  box-shadow: 0 44px 80px -34px rgba(11, 31, 58, .55), 0 18px 36px -18px rgba(11, 31, 58, .4), inset 6px 0 0 rgba(0, 0, 0, .22);
}
.facts-row { border-color: var(--line); box-shadow: 0 2px 4px rgba(11, 31, 58, .05), 0 24px 50px -26px rgba(11, 31, 58, .28); }
.fact-num { color: var(--ink); }

/* Cabeceras de las páginas interiores */
.page-head {
  color: var(--ink); border-bottom: 1px solid var(--line);
  background:
    radial-gradient(620px 280px at 96% 0%, rgba(184, 58, 38, .06), transparent 62%),
    linear-gradient(180deg, #fff 0%, var(--fog) 100%);
}
.page-head .display-2 { color: var(--ink); }
.page-head .lead { color: var(--slate); }
.crumbs, .crumbs a { color: var(--slate); }
.crumbs a:hover { color: var(--coral); }
.page-head .status-pill { background: var(--coral-soft); color: var(--coral); border-color: rgba(184, 58, 38, .35); }
.page-head .subnav a { background: #fff; border-color: var(--line); color: var(--ink); }
.page-head .subnav a:hover { border-color: var(--ink); }

/* Detalles de interfaz con el coral como único acento */
a { color: var(--ink); text-decoration-color: rgba(184, 58, 38, .55); }
a:hover { color: var(--coral); }
.sec-tag { color: var(--coral); }
.sec-tag::before { background: var(--coral); }
.sec:hover { border-color: rgba(184, 58, 38, .45); }
.chip { background: var(--fog); color: var(--ink); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(11, 31, 58, .55); }
.btn-primary:hover { background: var(--coral); box-shadow: 0 14px 28px -12px rgba(184, 58, 38, .6); }
input:focus, select:focus, textarea:focus { outline-color: var(--coral); border-color: var(--coral); }
::selection { background: var(--coral-soft); color: var(--ink); }

/* Premio Donum: tarjeta destacada en tinta con el coral como acento */
.award-card { position: relative; overflow: hidden; background: var(--ink); color: #EEF1F5; border-radius: 18px; padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.6rem, 4vw, 3rem); box-shadow: 0 2px 4px rgba(11, 31, 58, .08), 0 30px 60px -30px rgba(11, 31, 58, .55); max-width: 880px; margin-inline: auto; }
.award-card::after { content: ""; position: absolute; right: -60px; bottom: -70px; width: 320px; height: 320px; border-radius: 50%; border: 36px solid rgba(232, 128, 108, .10); pointer-events: none; }
.award-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--coral); }
.award-kicker { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #E8806C; }
.award-card h2 { margin: 0 0 1rem; font-family: var(--f-display); font-weight: 400; font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem); line-height: 1.05; color: #fff; letter-spacing: -.01em; }
.award-text { margin: 0 0 1.1rem; max-width: 62ch; font-size: 1.125rem; line-height: 1.65; color: #E3E8F0; }
.award-text em { color: #fff; font-style: italic; }
.award-honor { margin: 0; font-size: .95rem; color: #A9B4C4; }
.award-more { position: relative; z-index: 1; display: inline-flex; gap: .4rem; margin-top: 1.4rem; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(232, 128, 108, .8); padding-bottom: .15rem; }
.award-more:hover { color: #F0A394; }
.doc .award-card { margin: 0 0 2.4rem; max-width: none; }

/* Saltus: «El salto» y «Perspectiva del paciente» */
.art-leap { position: relative; margin: 1.6rem 0 2rem; padding: 1.1rem 1.3rem 1.2rem 1.5rem; background: var(--fog, #EEF1F5); border-left: 4px solid var(--coral, #B83A26); border-radius: 0 12px 12px 0; }
.art-leap-h { margin: 0 0 .35rem; font-size: .8125rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--coral, #B83A26); }
.art-leap p:last-child { margin: 0; font-family: var(--f-display); font-style: italic; font-size: 1.18rem; line-height: 1.55; color: var(--ink); }
.art-patient blockquote { margin: 0; padding: .3rem 0 .3rem 1.3rem; border-left: 3px solid var(--line); font-family: var(--f-display); font-size: 1.15rem; line-height: 1.7; color: var(--ink); }
.art-patient blockquote p { margin: 0 0 .8rem; }
.art-badges { list-style: none; margin: 1.1rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.art-badges li { display: flex; align-items: center; gap: .55rem; font-size: var(--t-xs); color: var(--slate, #4A5568); }
.art-badges li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--coral, #B83A26); }
.saltus-box { margin: .9rem 0 0; padding: .8rem 1rem; background: var(--fog, #EEF1F5); border-left: 3px solid var(--coral, #B83A26); border-radius: 0 10px 10px 0; }
.saltus-box h4 { margin: 0 0 .3rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--coral, #B83A26); }
.saltus-box p { margin: 0 0 .5rem; line-height: 1.55; }

/* Plazo de corrección */
.deadline-note { margin: .8rem 0; padding: .7rem 1rem; background: var(--sunk, #EEF1F5); border-left: 3px solid #e29a0b; border-radius: 0 10px 10px 0; font-size: var(--t-sm); }
