/* 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: #F2F5F9;
  --ink: #0B1B2E;
  --muted: #4A5A6D;
  --line: #DCE3EC;
  --green: #0E64A8;
  --green-ink: #0A4F88;
  --deep: #0A2342;
  --on-deep: #EAF1FA;
  --on-deep-muted: #A9BDD6;
  --marigold: #17B8B0;
  --marigold-soft: #E0F6F4;
  --on-primary: #FFFFFF;
  --on-marigold: #06302D;
  --shadow: 0 1px 2px rgba(11, 27, 46, .06), 0 18px 40px -18px rgba(11, 27, 46, .28);

  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Hanken Grotesk", "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 (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #07121F; --surface: #0D1B2D; --sunk: #0A1726; --ink: #E6EEF8; --muted: #9DB0C6;
    --line: #1E3350; --green: #5AA9E6; --green-ink: #8CC4F2; --deep: #0A2342; --on-deep: #EAF1FA;
    --on-deep-muted: #9FB6D2; --marigold: #35D0C6; --marigold-soft: #0F2F36; --on-primary: #04121F;
    --on-marigold: #06302D; --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(4, 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 (prefers-color-scheme: dark) { :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; }
.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; }
.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: #17B8B0;
  --navy-0: #061A33;
  --navy-1: #0A2342;
  --navy-2: #0F3560;
  --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(23, 184, 176, .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: #04243A; font-weight: 700; box-shadow: 0 8px 24px -8px rgba(23, 184, 176, .6); }
.header-cta.btn-primary:hover { background: #3FD0C8; color: #04243A; }
.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(23, 184, 176, .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: #6FE6DE; }
.hero .lead { color: #B9CBE3; }
.hero .eyebrow { color: #6FE6DE; }
.hero .eyebrow .dot { background: var(--glow); box-shadow: 0 0 0 5px rgba(23, 184, 176, .22); }
.hero .btn-primary { background: var(--glow); color: #04243A; font-weight: 700; box-shadow: 0 10px 30px -10px rgba(23, 184, 176, .7); }
.hero .btn-primary:hover { background: #3FD0C8; color: #04243A; }
.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, #15406F 0%, #0A2342 70%);
  box-shadow: 0 50px 90px -30px rgba(23, 184, 176, .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(23, 184, 176, .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(23, 184, 176, .16); color: #7FEDE6; border-color: rgba(23, 184, 176, .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(23, 184, 176, .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: #04243A; 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; } }
