:root {
  color-scheme: light;
  --orange: #f58220;
  --orange-dark: #d96713;
  --aqua: #55c7bb;
  --aqua-dark: #269f95;
  --ink: #3c4353;
  --muted: #697386;
  --line: #dfe4ec;
  --soft: #f6f8fb;
  --paper: #ffffff;
  --danger: #b42318;
  --shadow: 0 18px 40px rgba(30, 41, 59, .12);
}

* { box-sizing: border-box; }

html { min-width: 320px; }

body {
  margin: 0;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  background: var(--soft);
  color: var(--ink);
  letter-spacing: 0;
}

body.plantel-app:not(.app-ready) .app-shell {
  visibility: hidden;
}

h1, h2, h3 { margin: 0 0 14px; line-height: 1.08; }
h1 { font-size: clamp(38px, 5vw, 76px); }
h2 { font-size: 26px; }
h3 { font-size: 18px; }
p { line-height: 1.6; }

button,
.button-link,
.public-pill {
  border: 0;
  border-radius: 999px;
  background: var(--aqua);
  color: #fff;
  padding: 11px 18px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  box-shadow: 0 8px 18px rgba(85, 199, 187, .26);
}

button:hover,
.button-link:hover,
.public-pill:hover { background: var(--aqua-dark); }

button.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: none;
}

button.danger { background: var(--danger); }

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 11px;
  background: white;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(85, 199, 187, .22);
  border-color: var(--aqua);
}

textarea { min-height: 86px; resize: vertical; }
label { font-size: 13px; font-weight: 800; color: var(--ink); }
label input, label select, label textarea { margin-top: 6px; }

.public-header {
  min-height: 96px;
  padding: 18px min(8vw, 86px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border-bottom: 1px solid rgba(30, 41, 59, .08);
}

.institution-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--ink);
}

.brand-home {
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.brand-home:focus-visible {
  outline: 3px solid rgba(85, 199, 187, .28);
  outline-offset: 6px;
}

.brand-logo {
  display: block;
  object-fit: contain;
}

.brand-logo-nl {
  width: 156px;
  height: 72px;
}

.brand-logo-educacion {
  width: 260px;
  height: 72px;
}

.nl-mark {
  color: var(--orange);
  font-size: 54px;
  line-height: .85;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-divider {
  width: 1px;
  height: 62px;
  background: var(--line);
}

.institution-brand strong,
.institution-brand span {
  display: block;
  font-size: 19px;
}

.institution-brand span {
  color: var(--aqua);
  font-weight: 900;
}

.public-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.public-link {
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.public-link:hover { color: var(--orange); }

.public-pill.orange {
  background: var(--orange);
  box-shadow: 0 8px 18px rgba(245, 130, 32, .24);
}

.public-pill.orange:hover { background: var(--orange-dark); }

.login-page {
  min-height: 100vh;
  background: #fff;
}

.login-hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(340px, 680px) minmax(360px, 520px);
  gap: 72px;
  align-items: center;
  justify-content: center;
  padding: 54px min(7vw, 82px);
  background: var(--orange);
}

.hero-copy {
  color: white;
  text-align: left;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: 52px;
  line-height: 1.12;
  text-wrap: balance;
}

.hero-copy p {
  width: min(820px, 100%);
  margin: 24px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.hero-copy .hero-level {
  max-width: 760px;
  color: #fff;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 900;
}

.hero-rule {
  width: 180px;
  height: 8px;
  border-radius: 999px;
  background: var(--aqua);
  margin: 24px 0 0;
}

.auth-column {
  display: grid;
  gap: 16px;
  align-content: center;
}

.login-panel {
  background: var(--paper);
  border: 1px solid rgba(30, 41, 59, .1);
  border-radius: 8px;
  padding: 30px;
  box-shadow: var(--shadow);
}

.login-panel h2 { margin-bottom: 20px; }

.registration-panel { align-self: center; }
.registration-panel h2 { margin-bottom: 14px; }
.password-hero { grid-template-columns: minmax(0, 1.25fr) minmax(340px, 460px); }

.registration-panel {
  padding: 0;
  overflow: hidden;
}

.registration-panel[open] {
  width: min(760px, calc(100vw - 48px));
  justify-self: end;
}

.registration-page {
  min-height: calc(100vh - 96px);
  padding: clamp(28px, 5vw, 72px) min(8vw, 110px);
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(520px, 820px);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  background: var(--orange);
}

.registration-copy {
  color: #fff;
  padding-top: 18px;
}

.registration-copy .panel-kicker {
  color: #fff;
}

.registration-copy h1 {
  font-size: clamp(38px, 4vw, 62px);
}

.registration-copy p {
  max-width: 520px;
  font-size: 20px;
  font-weight: 800;
}

.registration-panel-standalone {
  width: 100%;
  padding: 28px;
}

.registration-panel-standalone .compact-form {
  padding: 0;
}

.registration-panel-standalone .message,
.registration-panel-standalone .hint {
  margin-left: 0;
  margin-right: 0;
}

.registration-panel summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 24px;
  cursor: pointer;
}

.registration-panel summary::-webkit-details-marker { display: none; }

.registration-panel summary::after {
  content: "+";
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}

.registration-panel[open] summary::after { content: "-"; }

.registration-panel small,
.registration-panel strong {
  display: block;
}

.registration-panel small {
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.registration-panel strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 22px;
}

.compact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 24px 20px;
}

.compact-form button {
  grid-column: 1 / -1;
}

.compact-form .wide-field {
  grid-column: 1 / -1;
}

.lookup-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.lookup-field input {
  grid-column: 1;
}

.lookup-field button {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  min-height: 42px;
}

.registration-panel .message,
.registration-panel .hint {
  margin-left: 24px;
  margin-right: 24px;
}

.panel-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--orange);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}

.hint, .message { color: var(--muted); font-size: 13px; }
.message.error { color: var(--danger); }
.message.success { color: var(--aqua-dark); }

body.modal-open {
  overflow: hidden;
}

.feedback-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(32, 38, 54, .42);
}

.feedback-modal-backdrop.open {
  display: flex;
}

.feedback-modal {
  position: relative;
  width: min(440px, 100%);
  border: 1px solid rgba(30, 41, 59, .12);
  border-radius: 8px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(30, 41, 59, .24);
  text-align: center;
}

.feedback-modal h2 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 26px;
}

.feedback-modal p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
}

.feedback-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #f2fbfa;
  color: var(--aqua-dark);
  font-size: 28px;
  font-weight: 900;
}

.feedback-modal-backdrop.success .feedback-modal-icon::before {
  content: "✓";
}

.feedback-modal-backdrop.error .feedback-modal-icon {
  background: #fff1f0;
  color: var(--danger);
}

.feedback-modal-backdrop.error .feedback-modal-icon::before {
  content: "!";
}

.feedback-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  min-height: 36px;
  padding: 0;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  font-size: 26px;
  line-height: 1;
}

.feedback-modal-close:hover {
  background: #f2fbfa;
  color: var(--ink);
}

.topbar {
  min-height: 72px;
  padding: 12px min(5vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  color: var(--ink);
  border-bottom: 5px solid var(--orange);
  box-shadow: 0 4px 16px rgba(30, 41, 59, .08);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 20px;
}

.app-institution-brand {
  gap: 14px;
  flex: 0 0 auto;
}

.app-institution-brand .brand-logo-nl {
  width: 116px;
  height: 54px;
}

.app-institution-brand .brand-logo-educacion {
  width: 196px;
  height: 54px;
}

.app-title-block {
  min-width: 0;
}

.admin-topbar .app-brand {
  gap: 18px;
}

.admin-topbar .app-title-block {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.mini-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--orange);
  font-size: 22px;
  font-weight: 900;
}

.topbar strong {
  display: block;
  font-size: 19px;
}

.topbar span {
  display: block;
  margin-top: 2px;
  color: var(--aqua-dark);
  font-size: 13px;
  font-weight: 800;
  max-width: min(58vw, 820px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout {
  width: min(1220px, calc(100vw - 28px));
  margin: 24px auto 48px;
}

.app-shell {
  width: min(1380px, calc(100vw - 28px));
  margin: 22px auto 48px;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 14px;
}

.sidebar-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(30, 41, 59, .07);
}

.sidebar-card strong {
  display: block;
  color: var(--orange);
  font-size: 38px;
  line-height: 1;
  margin: 8px 0 12px;
}

.progress {
  height: 10px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--aqua);
}

.status-badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 11px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.status-badge.verde { background: #067647; }
.status-badge.amarillo { background: #d89614; }
.status-badge.rojo { background: #b42318; }
.status-badge.gris,
.status-badge.gray { background: #667085; }

.period-message {
  margin: 12px 0 0;
  border-radius: 8px;
  padding: 10px 11px;
  background: #f7fffe;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.period-message.in-period {
  border-left: 5px solid #067647;
}

.period-message.next-period {
  border-left: 5px solid var(--aqua);
}

.period-message.late-period {
  border-left: 5px solid var(--danger);
  background: #fff4f2;
}

.page-error {
  border: 1px solid #f2b8b5;
  border-left: 6px solid var(--danger);
  border-radius: 8px;
  background: #fff4f2;
  color: var(--danger);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-weight: 900;
}

.side-nav {
  display: grid;
  gap: 9px;
}

.side-nav button {
  justify-content: flex-start;
  width: 100%;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.side-nav button.active {
  color: #fff;
  background: var(--orange);
  border-color: var(--orange);
}

.side-nav button.locked,
.side-nav button:disabled {
  cursor: not-allowed;
  color: #98a2b3;
  background: #eef2f7;
  border-color: #d8dee8;
  opacity: .72;
}

.side-nav button.locked::after,
.side-nav button:disabled::after {
  content: "Bloqueado";
  margin-left: auto;
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace {
  min-width: 0;
}

.welcome-band {
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 20px;
  color: #fff;
  background: var(--orange);
}

.welcome-band.compact {
  margin-bottom: 18px;
}

.welcome-band.compact h1 {
  font-size: clamp(28px, 3.4vw, 46px);
}

.countdown-card {
  display: grid;
  gap: 8px;
  width: min(720px, 100%);
  border-radius: 8px;
  background: rgba(255,255,255,.16);
  padding: 15px 17px;
}

.countdown-card strong {
  padding: 0;
  background: transparent;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.countdown-card span {
  font-weight: 800;
}

.countdown-track {
  height: 13px;
  border-radius: 999px;
  background: rgba(255,255,255,.34);
  overflow: hidden;
}

.countdown-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--aqua);
  transition: width .25s ease, background-color .25s ease;
}

.countdown-track span.safe {
  background: var(--aqua);
}

.countdown-track span.warning {
  background: #f6c36f;
}

.countdown-track span.danger {
  background: #b42318;
}

.welcome-band .eyebrow {
  width: fit-content;
  margin: 0 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.welcome-band h1 {
  max-width: 980px;
  font-size: clamp(30px, 4vw, 52px);
}

.welcome-band p {
  max-width: 900px;
  font-size: 18px;
  font-weight: 700;
}

.welcome-band strong {
  display: inline-block;
  border-radius: 999px;
  background: var(--aqua);
  padding: 9px 13px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tabs button {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.tabs button.active {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  box-shadow: 0 8px 18px rgba(245, 130, 32, .24);
}

.tabs button.locked,
.tabs button:disabled {
  cursor: not-allowed;
  color: #98a2b3;
  background: #eef2f7;
  border-color: #d8dee8;
  box-shadow: none;
  opacity: .76;
}

.tab {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(30, 41, 59, .06);
}

.tab.active { display: block; }

.module-heading {
  max-width: 100%;
  margin-bottom: 20px;
}

.module-heading span {
  display: inline-block;
  margin-bottom: 8px;
  border-radius: 999px;
  background: rgba(85, 199, 187, .14);
  color: var(--aqua-dark);
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.module-heading p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.institutional-message {
  width: 100%;
  margin: 0 0 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: 8px;
  background: #fff;
}

.institutional-message h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.institutional-message p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
}

.institutional-message ul {
  margin: 0 0 14px 22px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.45;
}

.institutional-message li {
  margin: 3px 0;
}

.institutional-message p:last-child {
  margin-bottom: 0;
}

.workflow-note-card {
  width: 100%;
  margin: -6px 0 20px;
  padding: 14px 16px;
  border: 1px solid #ffd8b3;
  border-left: 6px solid var(--orange);
  border-radius: 8px;
  background: #fff7ef;
  color: var(--ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.45;
}

.workflow-note-card strong {
  color: var(--orange-dark);
}

.institutional-message,
.workflow-note-card {
  max-width: none;
}

.welcome-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.info-card {
  border: 1px solid var(--line);
  border-left: 6px solid var(--aqua);
  border-radius: 8px;
  background: #fff;
  padding: 16px 18px;
}

.info-card.full {
  grid-column: 1 / -1;
}

.info-card h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.2;
}

.info-card p {
  margin: 0 0 11px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.info-card p:last-child {
  margin-bottom: 0;
}

.info-card a {
  color: var(--aqua-dark);
  font-weight: 900;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.resource-actions .button-link,
.resource-actions button {
  min-height: 40px;
}

.info-card a.resource-primary-link,
.resource-primary-link {
  background: var(--orange);
  color: #fff;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(245, 130, 32, .22);
}

.info-card a.resource-primary-link:hover,
.resource-primary-link:hover {
  background: var(--orange-dark);
  color: #fff;
}

.info-card ul {
  margin: 0 0 12px 20px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.guide-block {
  padding: 4px 0 0;
}

.guide-block.full {
  grid-column: 1 / -1;
}

.guide-block h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
}

.guide-block p {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
}

.guide-checklist,
.recommendation-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-checklist li,
.recommendation-list li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.guide-checklist li::before,
.recommendation-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(85, 199, 187, .14);
}

.route-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px 18px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.route-process li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 86px;
}

.route-process li > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 900;
}

.route-process strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

.route-process p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.recommendations-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.progress-weight-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.progress-weight-table th:nth-child(2),
.progress-weight-table td:nth-child(2) {
  width: 88px;
  text-align: center;
  color: var(--aqua-dark);
  font-weight: 900;
}

.section-guide {
  display: grid;
  gap: 10px;
  max-width: 1040px;
  margin: 0 0 18px;
}

.module-intro {
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.section-guide h3 {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 18px;
}

.section-guide p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.inline-purpose-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.inline-purpose-list li,
.note-line {
  border-left: 5px solid var(--aqua);
  border-radius: 8px;
  background: #f7fffe;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 800;
}

.compact-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px 16px;
  margin: 0;
  padding-left: 20px;
}

.compact-steps li {
  color: var(--muted);
  font-weight: 800;
  line-height: 1.4;
}

.status-overview {
  margin: 8px 0 18px;
}

.status-overview h3 {
  margin: 0 0 8px;
  font-size: 18px;
}


.difusion-card-form {
  display: grid;
  gap: 14px;
  margin: 14px 0 18px;
}

.difusion-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.difusion-public-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--aqua);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(31, 43, 63, .06);
}

.difusion-public-card.is-editing {
  border-left-color: var(--orange);
  background: #fffaf4;
}

.difusion-card-header {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.difusion-card-kicker {
  display: block;
  color: var(--aqua-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.difusion-card-header h4 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.difusion-field-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px 12px;
}

.difusion-public-card label,
.file-control {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.file-hint,
.evidence-mini label small,
.evidence-card-status small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 800;
}

.evidence-card-status.pending small {
  margin-top: 4px;
  color: #b42318;
}

.difusion-public-card input,
.difusion-public-card select,
.difusion-public-card textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
}

.difusion-public-card textarea {
  min-height: 76px;
  resize: vertical;
}


.difusion-public-card > label {
  min-width: 0;
}

.difusion-public-card > label textarea {
  min-height: 92px;
}

.difusion-evidence-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, .55fr);
  align-items: stretch;
  gap: 12px;
}

.evidence-card-status {
  border-radius: 8px;
  padding: 12px;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
}

.evidence-card-status strong,
.evidence-card-status span,
.evidence-card-status a {
  display: block;
}

.evidence-card-status.loaded {
  border: 1px solid #b9e7d0;
  background: #e7f7ef;
  color: #067647;
}

.evidence-card-status.loaded a {
  margin-top: 3px;
  color: #05603a;
  text-decoration: underline;
}

.evidence-card-status.pending {
  border: 1px solid #f4d0c7;
  background: #fff4f2;
  color: #b42318;
}

.difusion-card-actions {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.muted-text {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.status-footnote {
  max-width: 760px;
  margin: 10px 0 0;
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  background: #fff7ef;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.compact-table {
  max-width: 620px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-width: 92px;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.complete {
  background: #e7f7ef;
  color: #067647;
}

.status-pill.pending {
  background: #fff7d6;
  color: #a15c07;
}

.status-pill.missing-evidence {
  background: #fff1e6;
  color: #c2410c;
}

.status-pill.empty {
  background: #fff4f2;
  color: #b42318;
}

.lock-notice {
  border: 1px solid #f6c36f;
  border-left: 6px solid var(--orange);
  border-radius: 8px;
  background: #fff8ec;
  color: #7a3f07;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-weight: 900;
}

.semaforo-help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  max-width: 760px;
  margin: 0 0 18px;
}

.semaforo-help span {
  border-radius: 8px;
  padding: 11px 12px;
  font-weight: 900;
}

.semaforo-help .green {
  background: #e7f7ef;
  color: #067647;
}

.semaforo-help .yellow {
  background: #fff7d6;
  color: #a15c07;
}

.semaforo-help .red {
  background: #ffe8e5;
  color: #b42318;
}

.stack {
  display: grid;
  gap: 13px;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 13px;
  align-items: end;
  margin-bottom: 18px;
}


.form-wide {
  grid-column: 1 / -1;
}

.publico-participantes-fieldset {
  display: grid;
  gap: 10px;
}

.publico-participantes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.publico-participante-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}

.publico-participante-row.has-evidence {
  border-color: #b9e7d0;
  background: #f7fffb;
}

.publico-participante-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--aqua);
}

.publico-participante-row span {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.publico-participante-row input[type="number"] {
  width: 72px;
  min-height: 34px;
  padding: 6px 8px;
  text-align: right;
}

.publico-status {
  grid-column: 2 / -1;
  width: fit-content;
  border-radius: 999px;
  background: #fff4f2;
  color: #b42318;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  padding: 3px 8px;
  text-transform: uppercase;
}

.publico-status.loaded {
  background: #e7f7ef;
  color: #067647;
}

.tema-opciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.tema-opcion-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.tema-opcion-row:has(input:checked) {
  border-color: #b9e7d0;
  background: #f7fffb;
}

.tema-opcion-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--aqua);
}

.module-questionnaire {
  display: grid;
  grid-template-columns: minmax(0, 680px);
  gap: 15px;
  align-items: start;
  margin-bottom: 18px;
}

.confirmation-box,
.confirmation-action {
  max-width: 960px;
  border: 1px solid rgba(85, 199, 187, .45);
  border-left: 6px solid var(--aqua);
  border-radius: 8px;
  background: #f7fffe;
  padding: 16px;
}

.confirmation-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin: 20px 0 0;
}

.confirmation-action h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 20px;
}

.confirmation-action p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.confirmation-action textarea {
  max-width: 680px;
}

.confirmation-action button {
  width: fit-content;
}

@media (max-width: 880px) {
  .welcome-info-grid {
    grid-template-columns: 1fr;
  }
}


.acceptance-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0;
}

.acceptance-action .message {
  margin: 0;
}

.criteria-modal {
  width: min(900px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  text-align: left;
}

.criteria-modal h2 {
  padding-right: 36px;
}

.criteria-modal > p {
  max-width: 760px;
}

.criteria-modal .criteria-table-wrap {
  max-width: 100%;
}

.criteria-modal .status-footnote {
  max-width: none;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
}

legend {
  padding: 0 7px;
  font-size: 13px;
  font-weight: 900;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.resource-grid a {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.status-timeline {
  --completed: 0%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 148px;
  margin: 14px 0 24px;
  padding: 10px 4px;
  overflow-x: auto;
}

.status-timeline::before,
.status-timeline::after {
  content: "";
  position: absolute;
  left: 72px;
  right: 72px;
  top: 72px;
  height: 4px;
  border-radius: 999px;
}

.status-timeline::before {
  background: #dfe4ec;
}

.status-timeline::after {
  right: auto;
  width: var(--completed);
  background: var(--aqua);
}

.timeline-step {
  position: relative;
  flex: 1 0 190px;
  min-width: 190px;
  height: 136px;
  display: grid;
  grid-template-rows: 46px 28px 62px;
  justify-items: center;
  text-align: center;
  z-index: 1;
}

.timeline-meta {
  color: #98a2b3;
  font-size: 13px;
  font-weight: 800;
  align-self: start;
  padding-top: 8px;
}

.timeline-node {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--line);
  box-shadow: 0 0 0 5px #fff;
}

.timeline-step.good .timeline-node,
.timeline-step.active .timeline-node {
  background: var(--aqua);
  border-color: var(--aqua);
}

.timeline-step.good .timeline-node,
.timeline-step.active .timeline-node {
  box-shadow: 0 0 0 5px #fff, 0 0 0 9px rgba(85, 199, 187, .24);
}

.timeline-step.finished .timeline-node {
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 0 0 5px #fff, 0 0 0 9px rgba(246, 132, 45, .24);
}

.timeline-step.late .timeline-node {
  background: #b42318;
  border-color: #b42318;
  box-shadow: 0 0 0 5px #fff, 0 0 0 9px rgba(180, 35, 24, .14);
}

.timeline-step.pending .timeline-node {
  background: #f2f6f7;
  border-color: #dfe4ec;
}

.timeline-label {
  width: min(180px, 100%);
  padding-top: 4px;
}

.timeline-label strong,
.timeline-label small {
  display: block;
}

.timeline-label strong {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.18;
}

.timeline-label small {
  margin-top: 6px;
  color: #98a2b3;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-step.good .timeline-label small,
.timeline-step.active .timeline-label small {
  color: var(--aqua-dark);
}

.timeline-step.finished .timeline-label strong,
.timeline-step.finished .timeline-label small {
  color: var(--orange-dark);
}

.timeline-step.late .timeline-label small {
  color: #b42318;
}

.timeline-step.pending .timeline-label small {
  color: #98a2b3;
}

.resource-grid a {
  border-left: 5px solid var(--aqua);
}

.mini-file {
  min-width: 210px;
  max-width: 240px;
  padding: 7px;
  min-height: auto;
}

.evidence-mini {
  display: grid;
  grid-template-columns: minmax(180px, 260px);
  gap: 8px;
  align-items: end;
  min-width: 240px;
}

.evidence-mini label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.evidence-status {
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
}

.evidence-status strong,
.evidence-status a {
  display: block;
}

.evidence-status.loaded {
  background: #e7f7ef;
  color: #067647;
}

.evidence-status.loaded a {
  margin-top: 3px;
  color: #067647;
}

.evidence-status.pending {
  background: #fff4f2;
  color: #b42318;
}

.section-save {
  width: fit-content;
  margin: 18px;
}

.print-button {
  width: fit-content;
  margin-top: 18px;
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 22px rgba(245, 130, 32, .25);
}

.print-button:hover {
  background: var(--orange-dark);
}

.print-button:disabled {
  cursor: not-allowed;
  background: #eef2f7;
  color: #98a2b3;
  box-shadow: none;
}

.evidence-mini input[type="url"] {
  min-height: 34px;
  padding: 6px 8px;
}

.mini-action {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
}

.mini-action.danger {
  background: #b42318;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.module-questionnaire button {
  width: fit-content;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  font-size: 13px;
  vertical-align: top;
}

th {
  background: #f2fbfa;
  color: var(--ink);
  font-weight: 900;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 11px;
  margin-bottom: 16px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.action-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.button-link.small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.button-link.secondary-link {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}

.button-link.secondary-link:hover {
  background: #f2fbfa;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  background: linear-gradient(180deg, #fff 0%, #f8fffe 100%);
  border-top: 4px solid var(--aqua);
}

.metric strong {
  display: block;
  font-size: 27px;
  color: var(--orange);
}

.summary-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.summary-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  border-left: 5px solid var(--aqua);
}

.summary-panel.wide {
  grid-column: 1 / -1;
}

.summary-panel h3 {
  margin-bottom: 12px;
  color: var(--ink);
}

.bar-chart {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(150px, 34%) minmax(120px, 1fr) minmax(36px, max-content);
  gap: 14px;
  align-items: center;
}

.bar-row > * {
  min-width: 0;
}

.bar-row span {
  font-weight: 900;
}

.bar-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.bar-row div {
  height: 14px;
  border-radius: 999px;
  background: #edf2f7;
  overflow: hidden;
}

.bar-row i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--aqua);
}

.bar-row strong {
  text-align: right;
  color: var(--orange-dark);
  white-space: nowrap;
  justify-self: end;
  min-width: 0;
}


.progress-bar-chart .bar-row div {
  height: 16px;
  background: #e8f6f4;
}

.progress-bar-chart .bar-row strong {
  display: grid;
  gap: 2px;
  color: var(--ink);
}

.progress-bar-chart .bar-row strong small {
  color: var(--muted);
  font-size: 11px;
}

.summary-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.summary-chip-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #f2fbfa;
  border: 1px solid rgba(85, 199, 187, .28);
  padding: 9px 11px;
  font-weight: 900;
}

.summary-chip-list strong {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--aqua);
}

.pie-layout {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.pie-chart {
  width: 128px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid #fff;
  box-shadow: inset 0 0 0 1px var(--line), 0 6px 18px rgba(30, 41, 59, .08);
}

.pie-layout ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pie-layout li {
  display: flex;
  gap: 7px;
  align-items: center;
  font-weight: 800;
}

.pie-layout i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex: 0 0 auto;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.closure-banner,
.closure-actions {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  margin-bottom: 16px;
}

.closure-banner {
  display: grid;
  gap: 4px;
  border-left: 6px solid var(--aqua);
}

.closure-banner.closed {
  border-left-color: #067647;
  background: #f3fbf7;
}

.closure-banner.open {
  border-left-color: var(--orange);
  background: #fff8f1;
}

.closure-banner strong {
  font-size: 18px;
}

.closure-banner span {
  color: var(--muted);
  font-weight: 800;
}

.closure-actions {
  display: grid;
  gap: 18px;
  border-left: 6px solid var(--orange);
}

.closure-actions p {
  max-width: 980px;
}

.closure-comment {
  display: grid;
  gap: 8px;
  max-width: 860px;
}

.closure-actions textarea {
  max-width: 100%;
  min-height: 110px;
}

.closure-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.closure-buttons button,
.closure-buttons .print-button {
  min-height: 42px;
  padding: 11px 18px;
  font-size: 14px;
  margin-top: 0;
  align-self: center;
}

.closure-buttons .secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.closure-requirement {
  margin: -4px 0 0;
  max-width: 980px;
  padding: 12px 14px;
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  background: #fff8f1;
  color: var(--ink);
  font-weight: 900;
}

.process-closed .closed-disabled {
  cursor: not-allowed;
  opacity: .65;
}

.section-note {
  margin-top: -4px;
  color: var(--muted);
  font-weight: 700;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: #fff;
  border-left: 5px solid var(--aqua);
}

.item strong { color: var(--ink); }
.item a { color: var(--aqua-dark); font-weight: 800; }

.convocatoria-copy {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

.convocatoria-copy .eyebrow {
  width: fit-content;
  margin: 0;
  border-radius: 999px;
  background: rgba(245, 130, 32, .12);
  color: var(--orange-dark);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.convocatoria-copy h3 {
  font-size: 31px;
  color: var(--ink);
  margin-bottom: 0;
}

.convocatoria-copy h4 {
  font-size: 20px;
  color: var(--aqua-dark);
  margin: -8px 0 0;
  line-height: 1.35;
}

.convocatoria-copy h5 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--orange-dark);
}

.convocatoria-copy section {
  border-left: 5px solid var(--aqua);
  padding: 4px 0 4px 16px;
}

.convocatoria-copy p {
  margin: 0 0 10px;
}

.convocatoria-copy ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.convocatoria-copy li {
  margin: 5px 0;
  line-height: 1.45;
}

.objective-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.objective-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fffe;
}

.objective-grid strong {
  display: block;
  margin-bottom: 8px;
}

.optional-pdf {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.optional-pdf summary {
  cursor: pointer;
  padding: 13px 16px;
  font-weight: 900;
  color: var(--ink);
  background: #fff7ef;
}

.accordion {
  display: grid;
  gap: 14px;
}

.accordion-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(30, 41, 59, .04);
}

.accordion-panel + .accordion-panel {
  margin-top: 24px;
}

.accordion-panel summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: #f8fffe;
  border-left: 6px solid var(--aqua);
}

.accordion-panel:not([open]) summary {
  background: #fff;
}

.accordion-panel.section-locked summary {
  cursor: not-allowed;
  border-left-color: #cfd8dc;
  background: #f5f7f8;
}

.accordion-panel.section-locked summary span,
.accordion-panel.section-locked summary small {
  color: #7a8493;
}

.accordion-panel.section-locked summary::after {
  content: "\1f512";
  background: #d9e1e6;
  color: #667085;
  font-size: 15px;
}

.accordion-panel > .section-guide,
.accordion-panel > form,
.accordion-panel > .status-overview,
.accordion-panel > .table-wrap,
.accordion-panel > .section-table-block {
  margin: 18px;
}

.accordion-panel > .section-guide {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.accordion-panel > form.grid-form,
.accordion-panel > form.module-questionnaire {
  padding: 16px;
  border-radius: 8px;
  background: #fbfdff;
}

.accordion-panel summary::-webkit-details-marker {
  display: none;
}

.accordion-panel summary::after {
  content: "+";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--orange);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

.accordion-panel[open] summary::after {
  content: "-";
}

.accordion-panel summary span {
  display: block;
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
}

.accordion-panel summary small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.accordion-body {
  padding: 18px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
}

.resource-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(30, 41, 59, .07);
}

.resource-card-wide {
  grid-column: 1 / -1;
}

.resource-meta {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 6px;
}

.resource-meta h3 {
  margin: 0;
}

.resource-meta a {
  color: var(--aqua-dark);
  font-weight: 900;
}

.resource-tag {
  width: fit-content;
  border-radius: 999px;
  background: rgba(245, 130, 32, .12);
  color: var(--orange-dark);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-pdf {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
  background: #f8fafc;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  border: 0;
  display: block;
  background: #111827;
}

.pdf-frame {
  width: 100%;
  min-height: 68vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.inline-upload {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.inline-upload input { max-width: 420px; }

.category-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  display: grid;
  gap: 9px;
  background: #fff;
  border-top: 4px solid var(--orange);
}

.print-report-header {
  display: none;
}

.print-only {
  display: none;
}

@media print {
  @page {
    margin: 10mm;
  }

  body {
    background: #fff;
    color: #202636;
  }

  .topbar,
  .sidebar,
  .welcome-band,
  .print-button,
  .section-save,
  .row-actions,
  .grid-form,
  .module-questionnaire,
  .confirmation-action,
  .closure-actions,
  .evidence-mini input,
  .evidence-mini label,
  .accordion-panel summary::after {
    display: none !important;
  }

  .app-shell {
    display: block;
    width: 100%;
    margin: 0;
  }

  .workspace,
  .tab.active {
    display: block !important;
    width: 100%;
  }

  .tab {
    display: none !important;
  }

  .tab.active {
    border: 2px solid #dfe4ec;
    border-left: 8px solid var(--orange);
    border-radius: 8px;
    padding: 14px;
    box-shadow: none;
  }

  .print-report-header {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 14px;
    border-bottom: 3px solid var(--orange);
    padding-bottom: 12px;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .print-brand {
    display: flex;
    align-items: center;
    min-height: 58px;
    border-right: 1px solid #dfe4ec;
    padding-right: 14px;
  }

  .print-logo-educacion {
    display: block !important;
    width: 184px;
    height: auto;
    max-height: 58px;
    object-fit: contain;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .print-title p {
    margin: 0 0 4px;
    color: var(--orange-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .print-title h1 {
    margin: 0 0 8px;
    color: #202636;
    font-size: 24px;
  }

  .print-title dl {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) 135px;
    gap: 8px;
    margin: 0;
  }

  .print-title div {
    min-width: 0;
  }

  .print-title dt {
    color: #667085;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .print-title dd {
    margin: 2px 0 0;
    color: #202636;
    font-size: 11px;
    font-weight: 900;
  }

  .module-heading {
    border-bottom: 2px solid #dfe4ec;
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .module-heading h2 {
    font-size: 20px;
  }

  .status-timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 18px 0 6px;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .status-timeline::before,
  .status-timeline::after {
    top: 40px;
  }

  .timeline-step {
    min-width: 0;
    padding-top: 0;
  }

  .timeline-meta {
    font-size: 10px;
  }

  .timeline-label strong {
    font-size: 11px;
  }

  .timeline-label small {
    font-size: 9px;
  }

  .accordion-panel {
    border: 1px solid #dfe4ec;
    box-shadow: none;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-top: 14px;
  }

  .accordion-panel summary {
    border-left: 5px solid var(--orange);
    background: #fff7ef;
    padding: 12px 14px;
  }

  .accordion-panel > .section-guide {
    display: none;
  }

  .accordion-panel > .status-overview,
  .accordion-panel > .table-wrap,
  .accordion-panel > .print-summary {
    margin: 12px;
  }

  .print-only {
    display: block !important;
  }

  .print-summary {
    border: 1px solid #dfe4ec;
    border-left: 5px solid var(--aqua);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .print-summary h3 {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .print-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .print-summary-grid section {
    border: 1px solid #dfe4ec;
    border-radius: 8px;
    padding: 8px;
    background: #fbfdff;
  }

  .print-summary-grid strong {
    display: block;
    margin-bottom: 5px;
    font-size: 10px;
    text-transform: uppercase;
  }

  .print-summary-grid ul {
    margin: 0;
    padding-left: 16px;
  }

  .print-summary-grid p,
  .print-summary-grid li,
  .empty-print {
    margin: 0;
    font-size: 10px;
    line-height: 1.35;
  }

  .table-wrap {
    overflow: visible;
    border-color: #dfe4ec;
  }

  table {
    page-break-inside: auto;
  }

  tr {
    page-break-inside: avoid;
    break-inside: avoid;
  }

  th,
  td {
    font-size: 10px;
    padding: 6px;
  }

  th[data-label="Acciones"],
  td[data-label="Acciones"] {
    display: none !important;
  }

  .status-footnote {
    font-size: 10px;
    line-height: 1.35;
  }

  .evidence-status {
    border: 1px solid #dfe4ec;
    background: #fff !important;
    color: #202636 !important;
  }

  .evidence-status a::after {
    content: "";
  }

  .summary-dashboard {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .summary-panel {
    padding: 10px;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  .bar-row {
    grid-template-columns: minmax(130px, 30%) minmax(120px, 1fr) minmax(76px, max-content);
    gap: 7px;
  }

  .bar-row span,
  .pie-layout li {
    font-size: 10px;
  }

  .pie-layout {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .pie-chart {
    width: 88px;
    border-width: 5px;
  }
}

@media (max-width: 900px) {
  .route-process-compact {
    grid-template-columns: 1fr;
  }

  .public-header {
    padding: 16px 20px;
  }

  .summary-dashboard {
    grid-template-columns: 1fr;
  }

  .registration-page {
    grid-template-columns: 1fr;
  }

  .bar-row,
  .pie-layout {
    grid-template-columns: 1fr;
  }

  .bar-row strong {
    justify-self: start;
    text-align: left;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .login-hero {
    grid-template-columns: 1fr;
    padding: 42px 20px;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-rule {
    margin-left: 0;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: 40px;
  }

  .hero-copy p {
    margin-left: 0;
    font-size: 18px;
  }

  .hero-copy .hero-level {
    font-size: 24px;
  }

  .auth-column {
    width: min(100%, 560px);
  }
}

@media (max-width: 640px) {
  .public-header,
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-pill,
  .public-actions,
  .topbar button {
    width: 100%;
  }

  .public-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-form {
    grid-template-columns: 1fr;
  }

  .institution-brand {
    gap: 12px;
  }

  .hero-copy h1 {
    font-size: 32px;
  }

  .brand-logo-nl {
    width: 118px;
    height: 54px;
  }

  .brand-logo-educacion {
    width: 198px;
    height: 54px;
  }

  .nl-mark {
    font-size: 42px;
  }

  .brand-divider {
    height: 42px;
  }

  .institution-brand strong,
  .institution-brand span {
    font-size: 16px;
  }

  .inline-upload {
    display: grid;
  }

  .accordion-panel summary {
    align-items: flex-start;
  }

  .resource-pdf {
    height: 360px;
  }
}


@media (max-width: 1180px) {
  .difusion-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .difusion-public-card,
  .difusion-field-grid,
  .difusion-evidence-row {
    grid-template-columns: 1fr;
  }
}

.summary-note {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compact-table {
  margin-bottom: 18px;
}

.section-table-block h3 {
  margin: 0 0 12px;
  color: var(--ink);
}

.section-table-block .table-wrap {
  margin: 0;
}

.manual-list-block {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.manual-list-block > span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.manual-list {
  display: grid;
  gap: 8px;
}

.manual-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.manual-list-row input {
  min-width: 0;
}

.manual-list-row button,
.manual-add {
  min-height: 38px;
  padding: 8px 14px;
  border-color: var(--line);
}

.manual-add {
  justify-self: start;
}

@media (max-width: 700px) {
  .manual-list-row {
    grid-template-columns: 1fr;
  }
}

.muted-cell {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mini-action.warning {
  background: var(--orange);
  color: #fff;
}

.mini-action.warning:hover {
  background: var(--orange-dark);
}
