/* ============================================================
   Air Hostess · Matrículas — estilos
   Paleta oficial Manual Gráfico 2021 V.2
     · Azul Capri    Pantone 7462  #005490
     · Flame Scarlet Pantone 711   #d02e30
   Tipografía: Inria Sans
   Replica visual de los mockups standalone (Claude Design).
   ============================================================ */

:root {
  /* Surfaces */
  --bg:           #FFFFFF;
  --surface:      #FFFFFF;
  --surface-alt:  #F5F6F8;
  --border:       #E5E7EB;
  --border-soft:  #EEF0F3;

  /* Ink */
  --ink:    #111827;
  --ink-2:  #374151;
  --ink-3:  #6B7280;
  --ink-4:  #9AA3B2;

  /* Brand */
  --blue:       #005490;
  --blue-soft:  #E0ECF5;
  --blue-tint:  #F2F7FB;
  --red:        #d02e30;
  --red-dark:   #A52426;
  --red-soft:   #FBE4E5;

  /* States */
  --green:      #10B981;
  --green-soft: #D6F5E9;
  --amber:      #F59E0B;
  --amber-soft: #FEF3CF;

  --font: 'Inria Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

/* El atributo HTML `hidden` debe esconder el elemento siempre.
   Sin esta regla, cualquier selector posterior que defina `display: flex`
   (por ejemplo .modal-backdrop o .error-banner) gana en especificidad
   sobre el `display: none` que el navegador aplica al atributo `hidden`,
   y los modales/banners aparecen al cargar la página. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface-alt);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.45;
  min-height: 100vh;
}

button, a, input, select, textarea { font-family: inherit; color: inherit; font-size: inherit; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 700; }

/* ============================================================
   ACCESS HEADER (corp logo + "Escuela oficial / de auxiliares")
   ============================================================ */
.access-header {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.access-header img {
  height: 52px; width: auto;
  display: block;
  flex-shrink: 0;
}
.access-header.dark img {
  background: #fff;
  padding: 6px 10px;
  border-radius: 10px;
}
.access-header.scale-085 img { height: 44px; }
.access-header .baseline {
  line-height: 1.15;
  max-width: 210px;
}
.access-header .baseline-1 {
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.access-header .baseline-2 {
  font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 2px;
  opacity: .88;
}
.access-header.dark .baseline-1,
.access-header.dark .baseline-2 { color: rgba(255,255,255,.82); }
.access-header:not(.dark) .baseline-1,
.access-header:not(.dark) .baseline-2 { color: var(--blue); }

/* ============================================================
   SCREEN: LOGIN  (mockup 1)
   Layout: 1fr / 520px
   Left: panel azul corporativo · Right: card login
   ============================================================ */
.login-page {
  display: grid;
  grid-template-columns: 1fr 520px;
  min-height: 100vh;
  background: var(--surface);
}
@media (max-width: 900px) {
  .login-page { grid-template-columns: 1fr; }
  .login-left { min-height: 320px; }
}

.login-left {
  position: relative;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
  padding: 44px 56px;
  display: flex; flex-direction: column;
}
.login-left .av-routes,
.login-left .av-radar {
  position: absolute;
  pointer-events: none;
}
.login-left .av-routes { inset: 0; width: 100%; height: 100%; opacity: .14; }
.login-left .av-radar  { top: -140px; right: -140px; width: 480px; height: 480px; opacity: .08; }
.login-left .gradient-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 160px;
  background: linear-gradient(to bottom, rgba(0,84,144,0) 0%, rgba(0,40,72,.45) 100%);
  pointer-events: none;
}
.login-left .header-wrap { position: relative; }
.login-left .hero {
  position: relative; flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 560px; margin-top: 20px;
}
.login-left .hero .users-icon { opacity: .92; margin-bottom: 28px; }
.login-left .hero h2 {
  font-weight: 700; font-style: italic;
  font-size: 52px; letter-spacing: -0.02em;
  color: #fff; line-height: 1.05;
  margin: 0;
}
.login-left .hero p {
  margin: 22px 0 0;
  font-size: 16px; font-weight: 400; line-height: 1.55;
  color: rgba(255,255,255,.86); max-width: 460px;
}
.login-left .footer {
  position: relative;
  display: flex; justify-content: space-between;
  font-size: 11.5px; color: rgba(255,255,255,.72);
}
.login-left .footer .hashtag {
  font-style: italic; font-weight: 700; color: #fff;
}

.login-right {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 56px;
  background: var(--surface);
}
.login-right .inner {
  width: 100%; max-width: 380px;
}
.login-right .eyebrow {
  font-size: 11px; font-weight: 700; color: var(--blue);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 14px;
}
.login-right h1 {
  font-weight: 700; font-style: italic;
  font-size: 28px; letter-spacing: -0.02em;
  color: var(--ink); line-height: 1.15;
  margin: 0 0 12px;
}
.login-right .subtitle {
  margin: 0 0 32px;
  font-size: 14px; color: var(--ink-3); line-height: 1.5;
}
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 13px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  cursor: pointer;
  transition: background .12s, border-color .12s;
}
.google-btn:hover { background: var(--surface-alt); border-color: #CFD4DB; }
.google-btn[disabled] { opacity: .6; cursor: not-allowed; }

/* Wrapper donde GIS pinta su botón nativo. No restilamos el botón. */
.g-signin-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  margin: 4px 0 8px;
}

.info-box {
  margin-top: 14px; padding: 10px 12px;
  background: var(--blue-tint);
  border: 1px solid var(--blue-soft);
  border-radius: 6px;
  font-size: 11.5px; color: var(--ink-2); line-height: 1.5;
  display: flex; gap: 8px; align-items: flex-start;
}
.info-box svg { margin-top: 1px; flex-shrink: 0; color: var(--blue); }
.info-box code { font-family: ui-monospace, monospace; color: var(--blue); }

.login-right .version {
  margin-top: 40px; font-size: 11px; color: var(--ink-4);
}

.login-error {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--red-soft);
  border: 1px solid var(--red);
  border-radius: 6px;
  font-size: 12.5px; color: var(--red-dark); line-height: 1.5;
}

/* ============================================================
   SCREEN: SELECTOR DE SEDE (mockup 2)
   ============================================================ */
.selector-page {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column;
  background: var(--surface-alt);
  overflow: hidden;
}
.selector-page .av-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: .05;
}
.selector-topbar {
  position: relative;
  height: 60px;
  display: flex; align-items: center;
  padding: 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.selector-topbar .spacer { flex: 1; }
.user-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 14px 4px 4px; border-radius: 22px;
  border: 1px solid var(--border); background: var(--surface);
}
.user-pill .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.user-pill .name { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.15; }
.user-pill .role { font-size: 10.5px; color: var(--ink-3); line-height: 1.15; }
.btn-logout {
  margin-left: 12px;
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--border); border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  cursor: pointer;
}
.btn-logout:hover { background: var(--surface-alt); }

.selector-main {
  position: relative; flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 80px;
}
.selector-inner { max-width: 880px; width: 100%; }
.selector-title {
  text-align: center; margin-bottom: 36px;
}
.selector-title .eyebrow {
  font-size: 11px; font-weight: 700; color: var(--blue);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 12px;
}
.selector-title h1 {
  font-size: 36px; font-weight: 700; font-style: italic;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.1;
}
.selector-title p {
  margin: 12px 0 0;
  font-size: 14.5px; color: var(--ink-3); font-weight: 400;
}

.sede-grid {
  display: flex; gap: 24px;
}
@media (max-width: 720px) {
  .sede-grid { flex-direction: column; }
  .selector-main { padding: 32px 24px; }
}

.sede-card {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px 32px;
  display: flex; flex-direction: column;
  gap: 22px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(17,24,39,.04);
  transition: all .15s;
  min-height: 360px;
  position: relative;
  font: inherit; text-align: inherit; color: inherit;
}
.sede-card:hover, .sede-card:focus-visible {
  border: 2px solid var(--blue);
  box-shadow: 0 8px 24px rgba(0,84,144,.10);
  transform: translateY(-2px);
  padding: 35px 31px 31px; /* compensar el border 2px */
}
.sede-card .code-pill {
  position: absolute; top: 20px; right: 24px;
  padding: 4px 10px;
  background: var(--surface-alt);
  color: var(--ink-2);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  font-family: ui-monospace, monospace;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em;
  transition: all .15s;
}
.sede-card:hover .code-pill,
.sede-card:focus-visible .code-pill {
  background: var(--blue); color: #fff; border-color: var(--blue);
}
.sede-card .logo-wrap {
  display: flex; flex-direction: column; align-items: center;
  gap: 18px; margin-top: 10px;
}
.sede-card .logo-wrap img {
  height: 120px; width: auto;
}
.sede-card .city {
  font-size: 22px; font-weight: 700; font-style: italic;
  color: var(--ink); letter-spacing: -0.01em;
  text-align: center;
}
.sede-card .copy {
  font-size: 12.5px; color: var(--ink-3);
  margin-top: 4px; font-weight: 500;
  text-align: center;
}
.sede-card .spacer { flex: 1; }
.sede-card .cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px;
  background: var(--blue-soft); color: var(--blue);
  border-radius: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.02em;
  transition: all .15s;
}
.sede-card:hover .cta,
.sede-card:focus-visible .cta { background: var(--blue); color: #fff; }

.selector-footnote {
  margin-top: 28px; text-align: center;
  font-size: 12px; color: var(--ink-3); font-weight: 500;
}

/* ============================================================
   SCREEN: NUEVA MATRÍCULA (mockup 3)
   ============================================================ */

/* Top bar específico de matrículas */
.mat-header {
  height: 64px;
  display: flex; align-items: center; gap: 16px;
  padding: 0 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.mat-header .center-block {
  display: flex; align-items: center; gap: 12px;
}
.mat-header .center-logo {
  height: 44px; width: 44px;
  display: flex; align-items: center; justify-content: center;
}
.mat-header .center-logo img { height: 42px; width: auto; }
.mat-header .center-name {
  font-size: 14.5px; font-weight: 700; font-style: italic;
  color: var(--ink); letter-spacing: -0.01em;
}
.mat-header .center-meta {
  font-size: 11.5px; color: var(--ink-3); font-weight: 500;
  letter-spacing: 0.04em;
}
.mat-header .spacer { flex: 1; }

.mat-main {
  flex: 1; padding: 28px 64px 48px;
  display: flex; flex-direction: column; gap: 22px;
  max-width: 1100px; width: 100%; margin: 0 auto;
}
@media (max-width: 720px) {
  .mat-main { padding: 24px 16px 40px; }
}

.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-3); font-weight: 500;
  letter-spacing: 0.01em;
}
.breadcrumb .last { color: var(--ink-2); font-weight: 600; }
.breadcrumb svg { color: var(--ink-4); }

.title-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 12px; gap: 24px;
  flex-wrap: wrap;
}
.title-row h1 {
  font-size: 38px; font-weight: 700; font-style: italic;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.05;
}
.title-row .subtitle {
  margin-top: 8px; font-size: 14px; color: var(--ink-3); font-weight: 500;
}
.title-row .subtitle .center-name { color: var(--blue); font-weight: 700; }
.status-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 12px; color: var(--ink-2); font-weight: 600;
}
.status-pill .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
}

.error-banner {
  padding: 14px 18px;
  background: #FFF8F8;
  border: 1px solid var(--red);
  border-radius: 8px;
  display: flex; align-items: flex-start; gap: 12px;
}
.error-banner .icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}
.error-banner .title {
  font-size: 13.5px; font-weight: 700; color: var(--red-dark);
}
.error-banner .body {
  font-size: 12.5px; color: var(--ink-2); margin-top: 3px;
}

.success-banner {
  padding: 14px 18px;
  background: #F2FBF6;
  border: 1px solid var(--green);
  border-radius: 8px;
  display: flex; align-items: flex-start; gap: 12px;
}

/* Form section */
.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.form-section header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(180deg, #FAFBFC 0%, #FFFFFF 100%);
}
.form-section .number-bubble {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; font-style: italic;
  flex-shrink: 0;
}
.form-section h3 {
  font-size: 16px; font-weight: 700; font-style: italic;
  color: var(--ink); letter-spacing: -0.01em;
}
.form-section .hint {
  margin-top: 3px;
  font-size: 12.5px; color: var(--ink-3);
  font-weight: 400; font-style: normal;
}
.form-section .body {
  padding: 20px 22px 22px;
}

/* Form grid */
.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.grid-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
}
.grid-curso-modalidad {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px;
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-curso-modalidad { grid-template-columns: 1fr; }
}
.span-2 { grid-column: span 2; }
@media (max-width: 720px) { .span-2 { grid-column: span 1; } }

.field-label {
  display: block;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  letter-spacing: 0.01em; margin-bottom: 6px;
}
.field-label .req {
  color: var(--red); margin-left: 4px; font-weight: 700;
}

.input-wrap {
  position: relative;
  display: flex; align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color .12s, background .12s;
}
.input-wrap input,
.input-wrap textarea {
  flex: 1; min-width: 0;
  padding: 10px 12px;
  background: transparent; border: none; outline: none;
  font-size: 13.5px; color: var(--ink); font-weight: 500;
}
.input-wrap textarea { resize: vertical; line-height: 1.45; }
.input-wrap.monospace input { font-family: ui-monospace, monospace; letter-spacing: 0.02em; }
.input-wrap:focus-within { border-color: var(--blue); }

.input-wrap.error { border-color: var(--red); background: #FFF8F8; }
.input-wrap.valid { border-color: var(--blue-soft); }

.input-suffix {
  padding: 0 12px; font-size: 12.5px; color: var(--ink-3); font-weight: 500;
  border-left: 1px solid var(--border-soft);
  height: 100%; display: inline-flex; align-items: center;
}
.input-icon {
  padding-right: 10px; color: var(--ink-3);
  display: flex; align-items: center;
}

.field-error {
  margin-top: 5px; font-size: 11.5px; color: var(--red);
  font-weight: 500; line-height: 1.4;
  display: flex; align-items: center; gap: 5px;
}
.field-error .bang {
  display: inline-flex; align-items: center; justify-content: center;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-size: 9px; font-weight: 700;
}
.field-hint {
  margin-top: 5px; font-size: 11.5px; color: var(--ink-3); line-height: 1.4;
}

/* Radio group vertical */
.radio-group-vertical {
  display: flex; flex-direction: column; gap: 8px;
}
.radio-group-vertical label {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  cursor: pointer;
  transition: all .12s;
}
.radio-group-vertical label:hover { border-color: var(--blue-soft); background: var(--blue-tint); }
.radio-group-vertical input[type="radio"] { display: none; }
.radio-group-vertical .dot-outer {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.6px solid var(--ink-4);
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.radio-group-vertical .dot-inner {
  width: 8px; height: 8px; border-radius: 50%;
  background: transparent;
}
.radio-group-vertical .label-content {
  flex: 1;
}
.radio-group-vertical .lbl {
  font-size: 13px; font-weight: 500; color: var(--ink); letter-spacing: 0.01em;
}
.radio-group-vertical .sub {
  font-size: 11px; color: var(--ink-3); font-weight: 500; margin-top: 2px;
}
.radio-group-vertical input:checked + .dot-outer { border-color: var(--blue); }
.radio-group-vertical input:checked + .dot-outer .dot-inner { background: var(--blue); }
.radio-group-vertical input:checked ~ .label-content .lbl { color: var(--blue); font-weight: 700; }
.radio-group-vertical label:has(input:checked) {
  border-color: var(--blue); background: var(--blue-soft);
}

/* Radio horizontal segmented (estudios, idiomas) */
.radio-segmented {
  display: inline-flex; flex-wrap: wrap; gap: 6px;
  padding: 4px;
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}
.radio-segmented label {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; letter-spacing: 0.02em;
  transition: all .12s;
}
.radio-segmented input[type="radio"] { display: none; }
.radio-segmented label:has(input:checked) {
  background: var(--surface);
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(0,84,144,.08);
}

/* Toggle SI/NO */
.toggle-sino {
  display: inline-flex;
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: 6px; padding: 3px;
}
.toggle-sino input[type="radio"] { display: none; }
.toggle-sino label {
  padding: 6px 18px;
  background: transparent;
  color: var(--ink-3);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 4px; cursor: pointer;
  transition: all .12s;
}
.toggle-sino label:has(input[value="SÍ"]:checked) {
  background: var(--blue); color: #fff;
}
.toggle-sino label:has(input[value="NO"]:checked) {
  background: var(--surface); color: var(--ink);
}

/* Form footer (botonera) */
.form-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 6px; padding: 18px 22px;
  background: var(--surface); border-radius: 10px;
  border: 1px solid var(--border);
  gap: 16px; flex-wrap: wrap;
}
.form-footer .left, .form-footer .right {
  display: flex; align-items: center; gap: 14px;
}
.form-footer .meta { font-size: 12px; color: var(--ink-3); }
.form-footer .meta .errors { color: var(--red); font-weight: 700; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  background: var(--red); color: #fff;
  border: none; border-radius: 7px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(208,46,48,.18);
  transition: background .12s;
}
.btn-primary:hover:not([disabled]) { background: var(--red-dark); }
.btn-primary[disabled] { opacity: .6; cursor: not-allowed; }

.btn-secondary {
  padding: 11px 20px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 7px;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background .12s;
}
.btn-secondary:hover:not([disabled]) { background: var(--surface-alt); }
.btn-secondary.ghost { background: transparent; color: var(--ink-2); }

.app-footnote {
  text-align: center; font-size: 11px; color: var(--ink-4);
  margin-top: 4px; letter-spacing: 0.04em;
}

/* ============================================================
   MODAL DE CONFIRMACIÓN (mockup 4)
   ============================================================ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(17,24,39,.45);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .18s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  position: relative;
  width: 520px; max-width: calc(100vw - 32px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(17,24,39,.30);
  overflow: hidden;
  animation: pop .18s ease-out;
}
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-header {
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--border-soft);
  display: flex; align-items: center; gap: 14px;
}
.modal-header .icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--blue-soft); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-header h2 {
  font-size: 19px; font-weight: 700; font-style: italic;
  color: var(--ink); letter-spacing: -0.01em;
}
.modal-header .meta {
  font-size: 12px; color: var(--ink-3); margin-top: 2px;
}

.modal-body {
  padding: 20px 24px;
}
.modal-body .lead {
  font-size: 13px; color: var(--ink-2); line-height: 1.5; margin-bottom: 18px;
}
.summary {
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.summary .row {
  display: grid; grid-template-columns: 150px 1fr; gap: 16px;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--border-soft);
}
.summary .row:last-child { padding-bottom: 0; border-bottom: none; }
.summary .label {
  font-size: 11px; color: var(--ink-3); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.summary .value {
  font-size: 13.5px; color: var(--ink); font-weight: 600;
}

.modal-footer {
  padding: 16px 24px;
  background: var(--surface-alt);
  border-top: 1px solid var(--border-soft);
  display: flex; justify-content: flex-end; gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   PANTALLAS DE ESTADO (loading, error, denied) — overlay simple
   ============================================================ */
.fullscreen-state {
  position: fixed; inset: 0; z-index: 200;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
}
.fullscreen-state .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px 32px;
  text-align: center;
  max-width: 440px; width: calc(100vw - 32px);
  box-shadow: 0 8px 24px rgba(17,24,39,.06);
}
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--blue-soft);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 0 auto 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fullscreen-state h2 { font-size: 20px; color: var(--blue); margin: 8px 0 6px; font-style: italic; }
.fullscreen-state p { color: var(--ink-3); margin: 4px 0 16px; }
.fullscreen-state.error h2 { color: var(--red); }
