@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800;900&display=swap");

:root {
  --ink: #061632;
  --muted: #65748a;
  --blue: #0094ef;
  --blue-deep: #003fb8;
  --navy: #020a24;
  --cyan: #2bc8e6;
  --orange: #ff7a1a;
  --cream: #eef8ff;
  --surface: rgba(255, 255, 255, 0.86);
  --surface-solid: #ffffff;
  --line: rgba(6, 22, 50, 0.12);
  --soft: #edf6ff;
  --success: #16885a;
  --danger: #b73535;
  --shadow: 0 24px 70px rgba(0, 48, 145, 0.2);
  --campaign-line-art: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 920 420'%3E%3Cg fill='none' stroke='white' stroke-width='1.35' opacity='.2'%3E%3Ccircle cx='252' cy='140' r='78'/%3E%3Cpath d='M62 382 C188 176 296 452 438 232 C542 72 650 112 754 18'/%3E%3Cpath d='M704 124 L838 218 L770 326'/%3E%3Cpath d='M132 334 L192 286 L220 358 Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* 2027 family operations: repeated students stay readable on narrow screens. */
.student-list { display: grid; gap: 14px; margin: 18px 0; }
.student-row { padding: 16px; border: 1px solid rgba(6, 22, 50, .12); border-radius: 14px; background: rgba(255, 255, 255, .72); }
.student-row-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.student-row-heading strong { color: var(--ink, #061632); }
.student-match-note { display: block; margin-top: 8px; color: #65748a; }
.choice-group { display: grid; gap: 10px; margin: 16px 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 4px; color: #061632; font-weight: 800; }
.choice-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid rgba(6, 22, 50, .14); border-radius: 12px; background: #fff; cursor: pointer; }
.choice-card input { margin-top: 3px; }
.choice-card span { display: grid; gap: 3px; }
.choice-card small { color: #65748a; }
.choice-inline { display: flex; align-items: flex-start; gap: 10px; }
.reingreso-payment-note { display: grid; gap: 5px; margin: 18px 0; padding: 14px 16px; border-left: 3px solid #ffb347; background: #fff9ef; color: #4e3b1b; }
.reingreso-payment-note span { color: #6e5b36; font-size: .9rem; }
.slot-list { display: grid; gap: 10px; margin: 18px 0; }
.slot-list .appointment-time-card { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid rgba(6, 22, 50, .14); border-radius: 12px; background: #fff; cursor: pointer; }
.slot-list .appointment-time-card span { display: grid; gap: 3px; }
.slot-list .appointment-time-card small { color: #65748a; }

/* Admin operations workspace: compact, action-first presentation. */
.admin-page {
  color: #071529;
  background: #f3f6fa;
}

.admin-page .admin-shell {
  width: min(1380px, calc(100% - 40px));
  padding: 20px 0 40px;
}

.admin-page .admin-header {
  min-height: 76px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 38, 66, 0.06);
}

.admin-page .admin-title {
  gap: 12px;
}

.admin-page .admin-title img {
  width: 46px;
  height: 46px;
}

.admin-page .admin-title strong {
  font-size: 1.18rem;
  letter-spacing: 0;
}

.admin-page .admin-title small {
  font-size: 0.78rem;
  line-height: 1.25;
}

.admin-page .admin-title .admin-kicker {
  margin-bottom: 2px;
  color: var(--blue-deep);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-header-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.session-status,
.admin-header-link {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.session-status {
  padding-right: 8px;
  border-right: 1px solid var(--line);
}

.admin-header-link {
  padding: 8px 4px;
  color: var(--blue-deep);
  text-decoration: none;
}

.admin-header-link:hover {
  text-decoration: underline;
}

.admin-page .admin-board {
  gap: 16px;
}

.admin-page .admin-tabs {
  width: 100%;
  gap: 4px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #dce4ee;
  border-radius: 0;
  background: transparent;
}

.admin-page .admin-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px 10px 0 0;
  color: #657489;
  font-size: 0.86rem;
}

.admin-page .admin-tabs button:hover {
  color: var(--blue-deep);
  background: #eaf2fa;
}

.admin-page .admin-tabs button.active {
  color: var(--blue-deep);
  background: #fff;
  box-shadow: inset 0 -3px 0 var(--blue);
}

.tab-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  color: #63748b;
  background: #edf2f7;
  font-size: 0.7rem;
  font-weight: 900;
}

.admin-tabs button.active .tab-count {
  color: #fff;
  background: var(--blue-deep);
}

.admin-page .admin-overview {
  gap: 8px;
}

.admin-page .overview-card {
  min-height: 84px;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #dfe7f0;
  border-radius: 12px;
  box-shadow: none;
}

.admin-page .overview-card small {
  font-size: 0.66rem;
  letter-spacing: 0.05em;
}

.admin-page .overview-card strong {
  font-size: 1.55rem;
}

.admin-page .overview-card span {
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-page .overview-card.attention {
  border-color: #f0d79f;
  background: #fffaf0;
}

.admin-page .overview-card.clear {
  border-color: #cfe8dc;
  background: #f7fcf9;
}

.admin-page .admin-section-heading {
  align-items: center;
  padding: 18px 20px;
  border: 1px solid #dfe7f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

.admin-page .admin-section-heading span,
.panel-kicker {
  margin-bottom: 6px;
  color: var(--blue-deep);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
}

.admin-page .admin-section-heading h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1;
}

.admin-page .admin-section-heading p {
  max-width: 380px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.admin-page .ops-summary {
  display: block;
}

.ops-strip {
  display: grid;
  grid-template-columns: auto minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid #dfe7f0;
  border-radius: 12px;
  background: #fff;
}

.ops-strip.attention {
  border-color: #f0d79f;
  background: #fffaf0;
}

.ops-strip.success {
  border-color: #cfe8dc;
  background: #f7fcf9;
}

.ops-strip-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-strip strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.ops-strip > span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.priority-queue,
.capacity-panel,
.availability-panel,
.table-section {
  display: grid;
  gap: 12px;
}

.priority-queue,
.capacity-panel,
.availability-panel {
  padding: 14px;
  border: 1px solid #dfe7f0;
  border-radius: 16px;
  background: #fff;
}

.priority-heading,
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.priority-heading h3,
.panel-heading h3 {
  margin: 0;
  font-size: 1.08rem;
}

.priority-heading > strong {
  color: var(--blue-deep);
  font-size: 0.82rem;
}

.priority-empty-label {
  padding: 6px 9px;
  border-radius: 999px;
  color: #0e6b45;
  background: #e7f7f0;
  font-size: 0.72rem;
  font-weight: 900;
}

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

.priority-date-group {
  display: grid;
  gap: 7px;
}

.priority-date-group h4 {
  margin: 4px 2px 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.priority-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #e1e8f0;
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: #fbfdff;
}

.priority-item.today,
.priority-item.urgent,
.priority-item.unassigned {
  border-left-color: #d99b18;
  background: #fffdf7;
}

.priority-item.expired {
  border-left-color: #a74a4a;
}

.priority-item-main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.priority-item-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.priority-deadline {
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 900;
}

.priority-deadline.today,
.priority-deadline.urgent {
  color: #8a5a00;
}

.priority-deadline.expired {
  color: #8f2424;
}

.priority-student {
  color: var(--ink);
  font-size: 1rem;
}

.priority-context,
.priority-item-main small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.priority-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.priority-actions .inline-assignment {
  width: auto;
}

.priority-actions button,
.priority-actions .row-action-link {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 0.76rem;
}

.priority-actions .secondary-action {
  opacity: 0.78;
}

.priority-empty {
  padding: 12px;
  border-radius: 9px;
  color: var(--muted);
  background: #f7f9fc;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-page .capacity-panel,
.admin-page .availability-panel {
  padding: 0;
  overflow: hidden;
}

.capacity-panel > summary,
.availability-panel > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.capacity-panel > summary::-webkit-details-marker,
.availability-panel > summary::-webkit-details-marker {
  display: none;
}

.capacity-panel > summary::after,
.availability-panel > summary::after {
  content: '+';
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #dfe7f0;
  border-radius: 50%;
  color: var(--blue-deep);
  font-weight: 900;
}

.capacity-panel[open] > summary::after,
.availability-panel[open] > summary::after {
  content: '−';
}

.capacity-panel > summary > span:first-child,
.availability-panel > summary > span:first-child {
  display: grid;
  gap: 3px;
}

.capacity-panel summary strong,
.availability-panel summary strong {
  font-size: 0.92rem;
}

.capacity-panel summary small,
.availability-panel summary small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.panel-summary-meta {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.capacity-panel > .summary-grid,
.availability-panel > .admin-split {
  padding: 0 14px 14px;
}

.admin-page .summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.admin-page [data-tab-panel="nuevo-ingreso"] .filters {
  width: min(100%, 1080px);
  max-width: none;
  grid-template-columns: minmax(170px, 1fr) minmax(190px, 1.1fr) minmax(170px, 1fr) minmax(170px, 1fr) minmax(240px, 1.4fr);
}

.admin-page .filters select,
.admin-page .filters input {
  min-width: 0;
}

.admin-page .quota-card {
  padding: 12px;
  border-radius: 10px;
  box-shadow: none;
}

.admin-page .quota-card h3 {
  margin-bottom: 10px;
  font-size: 0.88rem;
}

.admin-page .quota-meter {
  height: 7px;
}

.admin-page .quota-stats {
  gap: 5px;
  margin-top: 10px;
  font-size: 0.7rem;
}

.admin-page .quota-stats strong {
  font-size: 1rem;
}

.panel-heading {
  padding: 0 2px;
}

.panel-heading p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.admin-page .table-section .table-wrap {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(22, 38, 66, 0.045);
}

.admin-page .table-section th,
.admin-page .table-section td {
  padding: 12px 11px;
}

.admin-page .table-section th {
  font-size: 0.68rem;
}

.admin-page .table-section td {
  font-size: 0.84rem;
}

.admin-page .history-row.is-closed {
  opacity: 0.72;
}

.admin-page .history-row.is-closed:hover {
  opacity: 1;
}

.admin-page .history-row.is-open {
  background: #fffdf7;
}

.admin-page .admin-split {
  gap: 12px;
}

.admin-page .admin-card,
.admin-page .admin-agenda {
  border-radius: 12px;
  box-shadow: none;
}

.admin-page .admin-card {
  padding: 16px;
}

.admin-page .admin-card h2 {
  font-size: 1.2rem;
}

.admin-page .admin-card p {
  font-size: 0.82rem;
  line-height: 1.5;
}

.admin-page .admin-agenda {
  padding: 12px;
}

.admin-page .agenda-day-grid {
  max-height: 460px;
}

.admin-page .empty-state {
  padding: 24px 16px;
  border-radius: 9px;
  background: #f7f9fc;
  font-size: 0.82rem;
}

.admin-page button:focus-visible,
.admin-page a:focus-visible,
.admin-page input:focus-visible,
.admin-page select:focus-visible,
.admin-page textarea:focus-visible,
.admin-page summary:focus-visible {
  outline: 3px solid rgba(0, 115, 230, 0.32);
  outline-offset: 2px;
}

@media (max-width: 1300px) and (min-width: 1101px) {
  .admin-page .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-page [data-tab-panel="nuevo-ingreso"] .filters {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    width: 100%;
  }
}

@media (max-width: 1100px) and (min-width: 981px) {
  .admin-page .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page [data-tab-panel="nuevo-ingreso"] .filters {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    width: 100%;
  }
}

@media (max-width: 980px) {
  .admin-page .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page [data-tab-panel="nuevo-ingreso"] .filters {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    width: 100%;
  }

  .admin-page .admin-shell {
    width: min(100% - 28px, 1380px);
  }

  .admin-header-tools {
    gap: 6px;
  }

  .session-status {
    width: 100%;
    padding: 0 0 5px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .priority-item {
    grid-template-columns: 1fr;
  }

  .priority-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .admin-page .summary-grid,
  .admin-page [data-tab-panel="nuevo-ingreso"] .filters {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-shell {
    width: min(100% - 18px, 1380px);
    padding-top: 10px;
  }

  .admin-page .admin-header {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .admin-header-tools {
    justify-content: flex-start;
  }

  .admin-header-link {
    padding: 7px 2px;
  }

  .admin-page .admin-tabs button {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
  }

  .admin-page .admin-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page .admin-overview .overview-card:last-child {
    grid-column: span 2;
  }

  .admin-page .admin-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .admin-page .admin-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page .admin-actions {
    width: 100%;
  }

  .admin-page .admin-actions button {
    flex: 1;
  }

  .ops-strip {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .priority-heading,
  .panel-heading,
  .capacity-panel > summary,
  .availability-panel > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-heading p {
    max-width: none;
    text-align: left;
  }

  .panel-summary-meta {
    margin-left: 0;
  }

  .capacity-panel > summary::after,
  .availability-panel > summary::after {
    position: absolute;
    right: 14px;
    margin-top: -26px;
  }

  .priority-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .priority-actions .inline-assignment,
  .priority-actions .row-action-link {
    width: 100%;
  }

  .priority-actions .row-action-link {
    justify-content: center;
  }
}

/* Final cascade for the approved public-form direction. */
.reingreso-page { background: #f5f8fc; }
.reingreso-page .page-shell { width: min(1180px, calc(100% - 48px)); padding: 24px 0 36px; }
.reingreso-page .reingreso-welcome { display:flex; align-items:center; min-height:0 !important; height:auto !important; aspect-ratio:auto !important; padding:12px 18px; border:1px solid #d9e4f0; border-radius:18px; color:#fff; background:#071d49; box-shadow:0 12px 28px rgba(7,29,73,.12); }
.reingreso-page .reingreso-welcome::before,.reingreso-page .reingreso-welcome-photo,.reingreso-page .reingreso-welcome h1,.reingreso-page .reingreso-welcome .lead,.reingreso-page .reingreso-welcome .primary-button { display:none; }
.reingreso-page .reingreso-welcome-copy { position:static; display:flex; align-items:center; gap:16px; width:100%; text-shadow:none; }
.reingreso-page .reingreso-wordmark { flex:0 0 auto; margin:0; padding:7px 10px; border:1px solid rgba(255,255,255,.18); border-radius:10px; background:rgba(255,255,255,.06); filter:none; }
.reingreso-page .reingreso-wordmark img { width:108px; height:auto; }
.reingreso-page .reingreso-kicker { margin:0; color:#b8d8ff; font-size:.72rem; letter-spacing:.12em; }
.reingreso-page .reingreso-onboarding,.reingreso-page .result-panel { width:100%; margin:0; }
.reingreso-page .reingreso-progress-header { position:static; grid-template-columns:150px minmax(0,1fr); min-height:82px; padding:14px 22px; border:1px solid #dbe4ef; border-radius:16px; box-shadow:0 8px 24px rgba(7,29,73,.06); backdrop-filter:none; }
.reingreso-page .reingreso-progress { grid-template-columns:repeat(4,minmax(0,1fr)); }
.reingreso-page .reingreso-progress-step { color:#8b9ab0; }
.reingreso-page .reingreso-progress-step i { width:26px; height:26px; border-color:#cbd8e8; }
.reingreso-page .reingreso-progress-step.is-active,.reingreso-page .reingreso-progress-step.is-complete { color:#0758c9; }
.reingreso-page .reingreso-progress-step.is-active i,.reingreso-page .reingreso-progress-step.is-complete i { border-color:#0758c9; background:#0758c9; }
.reingreso-page .reingreso-progress-step:not(:last-child)::after { background:#cbd8e8; }
.reingreso-page .reingreso-scene { min-height:0; margin-top:12px; padding:34px 42px 30px; border:1px solid #dbe4ef; border-radius:18px; box-shadow:0 10px 28px rgba(7,29,73,.06); animation:none; }
.reingreso-page .reingreso-scene-heading { gap:7px; max-width:760px; margin-bottom:24px; }
.reingreso-page .reingreso-scene-heading p { color:#0758c9; font-size:.68rem; letter-spacing:.11em; }
.reingreso-page .reingreso-scene-heading h2 { color:#0a2350; font-size:clamp(1.75rem,3.2vw,2.65rem); line-height:1.08; }
.reingreso-page .reingreso-scene-heading span { color:#687a95; font-size:.86rem; line-height:1.45; }
.reingreso-page .reingreso-scene > label,.reingreso-page .reingreso-grade-grid,.reingreso-page .reingreso-whatsapp-choice,.reingreso-page .reingreso-review,.reingreso-page .reingreso-payment-note,.reingreso-page .reingreso-scene-actions { width:100%; }
.reingreso-page .reingreso-scene > label + label { margin-top:14px; }
.reingreso-page label { color:#0a2350; font-size:.78rem; font-weight:800; }
.reingreso-page input,.reingreso-page select,.reingreso-page textarea { min-height:46px; border:1px solid #dbe4ef; border-radius:9px; color:#0a2350; background:#fff; font-size:.84rem; }
.reingreso-page textarea { min-height:82px; }
.reingreso-page input:focus,.reingreso-page select:focus,.reingreso-page textarea:focus { border-color:#6aa8f0; box-shadow:0 0 0 3px rgba(7,88,201,.1); }
.reingreso-page .student-list { gap:10px; margin:14px 0; }
.reingreso-page .student-row { padding:16px; border:1px solid #dbe4ef; border-radius:12px; background:#fbfdff; }
.reingreso-page .student-row-heading { margin-bottom:14px; }
.reingreso-page .student-row-heading strong { color:#0a2350; font-size:.86rem; }
.reingreso-page .student-match-note,.reingreso-page .form-helper { color:#687a95; font-size:.72rem; }
.reingreso-page .choice-group { gap:8px; margin:18px 0; }
.reingreso-page .choice-group legend { color:#0a2350; font-size:.78rem; }
.reingreso-page .choice-card { min-height:50px; align-items:center; padding:10px 12px; border-color:#dbe4ef; border-radius:9px; color:#0a2350; background:#fff; font-size:.8rem; }
.reingreso-page .choice-card:hover { border-color:#8bb9ef; background:#f8fbff; }
.reingreso-page .choice-card input { min-height:0; accent-color:#0758c9; }
.reingreso-page .choice-card small { color:#687a95; font-size:.72rem; line-height:1.35; }
.nuevo-ingreso-page .choice-group:not(.compact) { grid-template-columns:repeat(2,minmax(0,1fr)); }
.reingreso-page .reingreso-payment-note { margin-top:14px; padding:13px 15px; border:1px solid #cfe0f3; border-left:3px solid #f1a638; border-radius:10px; color:#0a2350; background:#f5f9ff; }
.reingreso-page .reingreso-payment-note span { color:#687a95; font-size:.76rem; }
.reingreso-page .reingreso-scene-actions { margin-top:24px; }
.reingreso-page .reingreso-scene-actions button { min-height:42px; border-radius:8px; font-size:.78rem; }
.reingreso-page .primary-button { background:#0758c9; box-shadow:0 6px 14px rgba(7,88,201,.16); }
.reingreso-page .secondary-button,.reingreso-page .ghost-button { border-color:#bfd0e4; color:#0758c9; background:#fff; }
@media (max-width:680px) {
  .reingreso-page .page-shell { width:min(100% - 20px,560px); padding-top:10px; }
  .reingreso-page .reingreso-welcome { min-height:62px; padding:9px 12px; }
  .reingreso-page .reingreso-welcome-copy { gap:10px; }
  .reingreso-page .reingreso-wordmark { padding:6px 8px; }
  .reingreso-page .reingreso-wordmark img { width:86px; }
  .reingreso-page .reingreso-kicker { font-size:.61rem; }
  .reingreso-page .reingreso-progress-header { grid-template-columns:1fr; gap:8px; min-height:76px; padding:10px 12px; }
  .reingreso-page .reingreso-progress-meta { display:flex; justify-content:space-between; align-items:center; }
  .reingreso-page .reingreso-progress-step { min-width:0; font-size:.57rem; }
  .reingreso-page .reingreso-progress-step i { width:23px; height:23px; }
  .reingreso-page .reingreso-progress-step:not(:last-child)::after { top:11px; left:calc(50% + 18px); width:calc(100% - 36px); }
  .reingreso-page .reingreso-scene { padding:26px 18px 22px; }
  .reingreso-page .reingreso-scene-heading h2 { font-size:1.82rem; }
  .nuevo-ingreso-page .choice-group:not(.compact) { grid-template-columns:1fr; }
}

/* Public forms: compact field rhythm and controls aligned with the approved reference. */
.reingreso-page .reingreso-onboarding,
.reingreso-page .result-panel { width:min(820px,calc(100% - 32px)); margin:0 auto; }
.reingreso-page .field-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; width:min(100%,720px); }
.reingreso-page .field-grid > label { width:100%; margin:0; }
.reingreso-page .field-full { grid-column:1 / -1; }
.reingreso-page .field-compact { width:min(100%,420px) !important; }
.reingreso-page .field-grid + .reingreso-whatsapp-choice { width:min(100%,720px); margin-top:14px; }
.nuevo-ingreso-page .reingreso-scene[data-step="1"] > label { display:inline-grid; vertical-align:top; margin:0 14px 14px 0; }
.nuevo-ingreso-page .reingreso-scene[data-step="1"] > label.field-full { display:grid; width:100%; margin-right:0; }
.nuevo-ingreso-page .reingreso-scene[data-step="1"] > label.field-half { width:calc(50% - 10px); }
.nuevo-ingreso-page .reingreso-scene[data-step="1"] > label.field-compact { width:min(100%,420px); }
.reingreso-page .choice-group { width:min(100%,720px); }
.reingreso-page .choice-card { min-height:54px; align-items:center; }
.reingreso-page .choice-card > span { font-size:.8rem; line-height:1.25; }
.reingreso-page .choice-card small { font-weight:500; }
.reingreso-page input:focus,
.reingreso-page select:focus,
.reingreso-page textarea:focus { border-color:#75a8e8; box-shadow:0 0 0 3px rgba(7,88,201,.10); outline:0; }
@media (max-width:680px) {
  .reingreso-page .reingreso-onboarding,
  .reingreso-page .result-panel { width:100%; }
  .reingreso-page .field-grid { grid-template-columns:1fr; width:100%; }
  .reingreso-page .field-full,
  .reingreso-page .field-half,
  .reingreso-page .field-compact { grid-column:1; width:100% !important; }
  .nuevo-ingreso-page .reingreso-scene[data-step="1"] > label.field-half,
  .nuevo-ingreso-page .reingreso-scene[data-step="1"] > label.field-compact { width:100%; margin-right:0; }
}

/* Final hero restoration: keep the approved student photography visible above the form. */
.reingreso-page .reingreso-welcome {
  min-height: clamp(330px, 33vw, 470px);
  padding: clamp(34px, 5vw, 64px) clamp(28px, 6vw, 78px);
  border: 0;
  border-radius: 24px;
  background: #061a45;
  box-shadow: 0 24px 70px rgba(0, 48, 145, 0.18);
}
.reingreso-page .reingreso-welcome::before {
  display: block;
  background: linear-gradient(90deg, rgba(2, 12, 40, 0.92) 0%, rgba(2, 18, 58, 0.72) 38%, rgba(3, 32, 91, 0.2) 70%, rgba(3, 32, 91, 0.05) 100%);
}
.reingreso-page .reingreso-welcome-photo {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}
.reingreso-page .reingreso-welcome-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}
.reingreso-page .reingreso-welcome-copy {
  position: relative;
  z-index: 2;
  display: block;
  width: min(58%, 680px);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}
.reingreso-page .reingreso-wordmark {
  margin-bottom: 20px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}
.reingreso-page .reingreso-wordmark img { width: 142px; }
.reingreso-page .reingreso-welcome .reingreso-kicker {
  display: block;
  margin: 0 0 14px;
  color: #8ed7ff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.reingreso-page .reingreso-welcome h1 {
  display: block;
  max-width: 610px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.8rem, 5.2vw, 5.5rem);
  line-height: 0.98;
}
.reingreso-page .reingreso-welcome .lead {
  display: block;
  max-width: 520px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.6;
}
.reingreso-page .reingreso-welcome .primary-button { display: inline-flex; }
@media (max-width: 680px) {
  .reingreso-page .reingreso-welcome { min-height: 470px; padding: 30px 22px 0; }
  .reingreso-page .reingreso-welcome-copy { width: 100%; }
  .reingreso-page .reingreso-welcome h1 { font-size: clamp(2.7rem, 13vw, 4.3rem); }
  .reingreso-page .reingreso-welcome-photo { inset: auto 0 0; height: 190px; }
  .reingreso-page .reingreso-welcome-photo img { object-position: 62% center; }
  .reingreso-page .reingreso-welcome::before { background: linear-gradient(180deg, rgba(2, 12, 40, 0.94) 0%, rgba(2, 18, 58, 0.74) 48%, rgba(3, 32, 91, 0.1) 100%); }
}

/* Restore the approved photographic welcome hero; the form redesign starts below it. */
.reingreso-page .reingreso-welcome {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(330px, 33vw, 470px);
  height: auto;
  padding: clamp(34px, 5vw, 64px) clamp(28px, 6vw, 78px);
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  color: #fff;
  background: #061a45;
  box-shadow: 0 24px 70px rgba(0, 48, 145, 0.18);
}

.reingreso-page .reingreso-welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 12, 40, 0.92) 0%, rgba(2, 18, 58, 0.72) 38%, rgba(3, 32, 91, 0.2) 70%, rgba(3, 32, 91, 0.05) 100%);
}

.reingreso-page .reingreso-welcome-copy {
  position: relative;
  z-index: 2;
  display: block;
  width: min(58%, 680px);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.reingreso-page .reingreso-welcome-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  margin: 0;
}

.reingreso-page .reingreso-welcome-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.reingreso-page .reingreso-wordmark {
  width: max-content;
  margin-bottom: 20px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.reingreso-page .reingreso-wordmark img {
  display: block;
  width: 142px;
  height: auto;
}

.reingreso-page .reingreso-welcome .reingreso-kicker {
  display: block;
  margin: 0 0 14px;
  color: #8ed7ff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reingreso-page .reingreso-welcome h1 {
  display: block;
  max-width: 610px;
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(2.8rem, 5.2vw, 5.5rem);
  line-height: 0.98;
}

.reingreso-page .reingreso-welcome .lead {
  display: block;
  max-width: 520px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.6;
}

.reingreso-page .reingreso-welcome .primary-button {
  display: inline-flex;
  position: relative;
  z-index: 2;
}

@media (max-width: 680px) {
  .reingreso-page .reingreso-welcome {
    display: block;
    min-height: 470px;
    padding: 30px 22px 0;
  }

  .reingreso-page .reingreso-welcome-copy {
    width: 100%;
  }

  .reingreso-page .reingreso-welcome h1 {
    font-size: clamp(2.7rem, 13vw, 4.3rem);
  }

  .reingreso-page .reingreso-welcome-photo {
    inset: auto 0 0;
    height: 190px;
  }

  .reingreso-page .reingreso-welcome-photo img {
    object-position: 62% center;
  }

  .reingreso-page .reingreso-welcome::before {
    background: linear-gradient(180deg, rgba(2, 12, 40, 0.94) 0%, rgba(2, 18, 58, 0.74) 48%, rgba(3, 32, 91, 0.1) 100%);
  }
}

/* 2027 approved visual direction: compact family forms, official wordmark, and calm hand-drawn-inspired controls. */
.reingreso-page {
  --form-ink: #0a2350;
  --form-blue: #0758c9;
  --form-muted: #687a95;
  --form-line: #dbe4ef;
  --form-bg: #f5f8fc;
  background: var(--form-bg);
}

.reingreso-page .page-shell {
  width: min(1180px, calc(100% - 48px));
  padding: 24px 0 36px;
}

.reingreso-page main { gap: 16px; }

.reingreso-page .reingreso-welcome {
  display: flex;
  align-items: center;
  min-height: 72px;
  height: auto;
  padding: 12px 18px;
  border: 1px solid #d9e4f0;
  border-radius: 18px;
  color: #fff;
  background: #071d49;
  box-shadow: 0 12px 28px rgba(7, 29, 73, .12);
}

.reingreso-page .reingreso-welcome::before,
.reingreso-page .reingreso-welcome-photo,
.reingreso-page .reingreso-welcome h1,
.reingreso-page .reingreso-welcome .lead,
.reingreso-page .reingreso-welcome .primary-button { display: none; }

.reingreso-page .reingreso-welcome-copy {
  position: static;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-shadow: none;
}

.reingreso-page .reingreso-wordmark {
  flex: 0 0 auto;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  filter: none;
}

.reingreso-page .reingreso-wordmark img {
  width: 108px;
  height: auto;
}

.reingreso-page .reingreso-kicker {
  margin: 0;
  color: #b8d8ff;
  font-size: .72rem;
  letter-spacing: .12em;
}

.reingreso-page .reingreso-onboarding,
.reingreso-page .result-panel {
  width: 100%;
  margin: 0;
}

.reingreso-page .reingreso-progress-header {
  position: static;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 82px;
  padding: 14px 22px;
  border: 1px solid var(--form-line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(7, 29, 73, .06);
  backdrop-filter: none;
}

.reingreso-page .reingreso-progress-meta span { color: var(--form-muted); }
.reingreso-page .reingreso-progress-meta strong { color: var(--form-ink); }
.reingreso-page .reingreso-progress { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.reingreso-page .reingreso-progress-step { color: #8b9ab0; }
.reingreso-page .reingreso-progress-step i { width: 26px; height: 26px; border-color: #cbd8e8; }
.reingreso-page .reingreso-progress-step.is-active i,
.reingreso-page .reingreso-progress-step.is-complete i { border-color: var(--form-blue); background: var(--form-blue); }
.reingreso-page .reingreso-progress-step.is-active,
.reingreso-page .reingreso-progress-step.is-complete { color: var(--form-blue); }
.reingreso-page .reingreso-progress-step:not(:last-child)::after { background: #cbd8e8; }

.reingreso-page .reingreso-scene {
  min-height: 0;
  margin-top: 12px;
  padding: 34px 42px 30px;
  border: 1px solid var(--form-line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(7, 29, 73, .06);
  animation: none;
}

.reingreso-page .reingreso-scene-heading {
  gap: 7px;
  max-width: 760px;
  margin-bottom: 24px;
}

.reingreso-page .reingreso-scene-heading p {
  color: var(--form-blue);
  font-size: .68rem;
  letter-spacing: .11em;
}

.reingreso-page .reingreso-scene-heading h2 {
  color: var(--form-ink);
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  line-height: 1.08;
}

.reingreso-page .reingreso-scene-heading span {
  color: var(--form-muted);
  font-size: .86rem;
  line-height: 1.45;
}

.reingreso-page .reingreso-scene > label,
.reingreso-page .reingreso-grade-grid,
.reingreso-page .reingreso-whatsapp-choice,
.reingreso-page .reingreso-review,
.reingreso-page .reingreso-payment-note,
.reingreso-page .reingreso-scene-actions { width: 100%; }

.reingreso-page .reingreso-scene > label + label { margin-top: 14px; }
.reingreso-page label { color: var(--form-ink); font-size: .78rem; font-weight: 800; }
.reingreso-page input,
.reingreso-page select,
.reingreso-page textarea {
  min-height: 46px;
  border: 1px solid var(--form-line);
  border-radius: 9px;
  color: var(--form-ink);
  background: #fff;
  font-size: .84rem;
}
.reingreso-page textarea { min-height: 82px; }
.reingreso-page input::placeholder { color: #9aa9bc; }
.reingreso-page input:focus,
.reingreso-page select:focus,
.reingreso-page textarea:focus { border-color: #6aa8f0; box-shadow: 0 0 0 3px rgba(7, 88, 201, .10); }

.reingreso-page .student-list { gap: 10px; margin: 14px 0; }
.reingreso-page .student-row {
  padding: 16px;
  border: 1px solid var(--form-line);
  border-radius: 12px;
  background: #fbfdff;
}
.reingreso-page .student-row-heading { margin-bottom: 14px; }
.reingreso-page .student-row-heading strong { color: var(--form-ink); font-size: .86rem; }
.reingreso-page .student-match-note { color: var(--form-muted); font-size: .72rem; }

.reingreso-page .choice-group { gap: 8px; margin: 18px 0; }
.reingreso-page .choice-group legend { color: var(--form-ink); font-size: .78rem; }
.reingreso-page .choice-card {
  min-height: 50px;
  align-items: center;
  padding: 10px 12px;
  border-color: var(--form-line);
  border-radius: 9px;
  color: var(--form-ink);
  background: #fff;
  font-size: .8rem;
}
.reingreso-page .choice-card:hover { border-color: #8bb9ef; background: #f8fbff; }
.reingreso-page .choice-card input { min-height: 0; accent-color: var(--form-blue); }
.nuevo-ingreso-page .choice-group:not(.compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.reingreso-page .choice-card span { gap: 2px; }
.reingreso-page .choice-card small { color: var(--form-muted); font-size: .72rem; line-height: 1.35; }

.reingreso-page .reingreso-payment-note {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #cfe0f3;
  border-left: 3px solid #f1a638;
  border-radius: 10px;
  color: var(--form-ink);
  background: #f5f9ff;
}
.reingreso-page .reingreso-payment-note span { color: var(--form-muted); font-size: .76rem; }
.reingreso-page .reingreso-scene-actions { margin-top: 24px; }
.reingreso-page .reingreso-scene-actions button { min-height: 42px; border-radius: 8px; font-size: .78rem; }
.reingreso-page .primary-button { background: var(--form-blue); box-shadow: 0 6px 14px rgba(7, 88, 201, .16); }
.reingreso-page .secondary-button,
.reingreso-page .ghost-button { border-color: #bfd0e4; color: var(--form-blue); background: #fff; }
.reingreso-page .form-helper { color: var(--form-muted); font-size: .72rem; }
.reingreso-page .simple-footer { color: var(--form-muted); font-size: .72rem; }

@media (max-width: 680px) {
  .reingreso-page .page-shell { width: min(100% - 20px, 560px); padding-top: 10px; }
  .reingreso-page .reingreso-welcome { min-height: 62px; padding: 9px 12px; }
  .reingreso-page .reingreso-welcome-copy { gap: 10px; }
  .reingreso-page .reingreso-wordmark { padding: 6px 8px; }
  .reingreso-page .reingreso-wordmark img { width: 86px; }
  .reingreso-page .reingreso-kicker { font-size: .61rem; }
  .reingreso-page .reingreso-progress-header { grid-template-columns: 1fr; gap: 8px; min-height: 76px; padding: 10px 12px; }
  .reingreso-page .reingreso-progress-meta { display: flex; justify-content: space-between; align-items: center; }
  .reingreso-page .reingreso-progress-step { min-width: 0; font-size: .57rem; }
  .reingreso-page .reingreso-progress-step i { width: 23px; height: 23px; }
  .reingreso-page .reingreso-progress-step:not(:last-child)::after { top: 11px; left: calc(50% + 18px); width: calc(100% - 36px); }
  .reingreso-page .reingreso-scene { padding: 26px 18px 22px; }
  .reingreso-page .reingreso-scene-heading h2 { font-size: 1.82rem; }
  .nuevo-ingreso-page .choice-group:not(.compact) { grid-template-columns: 1fr; }
}

/* Nuevo ingreso comparte la misma entrada editorial, con copy de admisión legible sobre la imagen. */
.nuevo-ingreso-page .reingreso-welcome {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: clamp(500px, 42vw, 600px);
  padding: 64px 76px;
  border-radius: 32px;
  color: #fff;
  background: #061a45;
  box-shadow: 0 24px 70px rgba(0, 48, 145, 0.18);
}

.nuevo-ingreso-page .reingreso-welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 12, 40, 0.9) 0%, rgba(2, 18, 58, 0.7) 38%, rgba(3, 32, 91, 0.18) 68%, rgba(3, 32, 91, 0.04) 100%);
}

.nuevo-ingreso-page .reingreso-welcome-copy { position: relative; z-index: 2; width: min(54%, 650px); text-shadow: 0 10px 28px rgba(0, 0, 0, 0.24); }
.nuevo-ingreso-page .reingreso-welcome-photo { position: absolute; inset: 0; z-index: 0; margin: 0; }
.nuevo-ingreso-page .reingreso-welcome-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 68% center; }
.nuevo-ingreso-page .reingreso-wordmark { width: max-content; margin-bottom: 22px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18)); }
.nuevo-ingreso-page .reingreso-wordmark img { display: block; width: 142px; height: auto; }
.nuevo-ingreso-page .reingreso-kicker { margin-bottom: 14px; color: #8ed7ff; font-size: 0.8rem; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; }
.nuevo-ingreso-page .reingreso-welcome h1 { max-width: 610px; margin-bottom: 20px; color: #fff; font-size: clamp(3.5rem, 5.8vw, 5.8rem); line-height: 0.98; }
.nuevo-ingreso-page .reingreso-welcome .lead { max-width: 520px; margin-bottom: 24px; color: rgba(255, 255, 255, 0.88); font-size: 1.05rem; line-height: 1.6; }

@media (max-width: 760px) {
  .nuevo-ingreso-page .reingreso-welcome { display: block; height: auto; min-height: 560px; padding: 42px 24px 0; border-radius: 24px; }
  .nuevo-ingreso-page .reingreso-welcome-copy { width: 100%; }
  .nuevo-ingreso-page .reingreso-welcome h1 { font-size: clamp(3rem, 14vw, 4.7rem); }
  .nuevo-ingreso-page .reingreso-welcome-photo { position: relative; height: 260px; margin: 28px -24px 0; }
  .nuevo-ingreso-page .reingreso-welcome-photo img { object-position: 60% center; }
}

.nuevo-ingreso-page .reingreso-onboarding,
.nuevo-ingreso-page .result-panel { width: min(1000px, calc(100% - 40px)); margin: 8px auto 0; }
.nuevo-ingreso-page .reingreso-progress-header { position: sticky; top: 10px; z-index: 10; display: grid; grid-template-columns: minmax(150px, .48fr) minmax(0, 1.52fr); align-items: center; gap: 24px; min-height: 74px; padding: 13px 20px; border: 1px solid rgba(6,22,50,.1); border-radius: 18px; background: rgba(255,255,255,.96); box-shadow: 0 14px 38px rgba(7,21,41,.08); }
.nuevo-ingreso-page .reingreso-progress-meta { display: grid; gap: 2px; }
.nuevo-ingreso-page .reingreso-progress-meta span { color: var(--muted); font-size: .74rem; font-weight: 800; }
.nuevo-ingreso-page .reingreso-progress-meta strong { font-size: .9rem; }
.nuevo-ingreso-page .reingreso-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nuevo-ingreso-page .reingreso-progress-step { position: relative; display: grid; justify-items: center; gap: 4px; min-width: 72px; color: #8a96a8; font-size: .68rem; font-weight: 800; text-align: center; }
.nuevo-ingreso-page .reingreso-progress-step i { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #d2dbe6; border-radius: 50%; color: #7b8798; background: #fff; font-size: .72rem; font-style: normal; }
.nuevo-ingreso-page .reingreso-progress-step.is-active,
.nuevo-ingreso-page .reingreso-progress-step.is-complete { color: var(--blue-deep); }
.nuevo-ingreso-page .reingreso-progress-step.is-active i,
.nuevo-ingreso-page .reingreso-progress-step.is-complete i { border-color: var(--blue-deep); color: #fff; background: var(--blue-deep); }
.nuevo-ingreso-page .reservation-form { display: block; padding: 0; border: 0; background: transparent; box-shadow: none; }
.nuevo-ingreso-page .reingreso-scene { min-height: 540px; margin-top: 14px; padding: 62px 90px 48px; border: 1px solid rgba(6,22,50,.08); border-radius: 26px; background: #fff; box-shadow: 0 18px 52px rgba(7,21,41,.07); }
.nuevo-ingreso-page .reingreso-scene-heading { display: grid; gap: 10px; max-width: 720px; margin-bottom: 34px; }
.nuevo-ingreso-page .reingreso-scene-heading p { margin: 0; color: var(--blue-deep); font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.nuevo-ingreso-page .reingreso-scene-heading h2 { margin: 0; font-size: clamp(2.15rem, 4vw, 3.25rem); line-height: 1.05; }
.nuevo-ingreso-page .reingreso-scene-heading span { color: var(--muted); font-size: .98rem; line-height: 1.6; }
.nuevo-ingreso-page .reingreso-scene-actions { display: flex; justify-content: flex-end; gap: 10px; width: min(100%, 720px); margin-top: 28px; }

@media (max-width: 760px) {
  .nuevo-ingreso-page .reingreso-onboarding, .nuevo-ingreso-page .result-panel { width: min(100%, calc(100% - 20px)); }
  .nuevo-ingreso-page .reingreso-progress-header { position: static; grid-template-columns: 1fr; gap: 12px; padding: 14px; }
  .nuevo-ingreso-page .reingreso-progress { gap: 4px; }
  .nuevo-ingreso-page .reingreso-progress-step { min-width: 0; font-size: .6rem; }
  .nuevo-ingreso-page .reingreso-progress-step i { width: 24px; height: 24px; }
  .nuevo-ingreso-page .reingreso-scene { min-height: 0; padding: 32px 20px 26px; border-radius: 20px; }
  .nuevo-ingreso-page .reingreso-scene-actions { flex-direction: column-reverse; }
  .nuevo-ingreso-page .reingreso-scene-actions button { width: 100%; }
}

/* Admin agenda: weekly workspace composition. */
.admin-page .agenda-section {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(6, 22, 50, 0.09);
  border-radius: 16px;
  background: #fbfdff;
}

.admin-page .agenda-section-heading,
.admin-page .agenda-active-day-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-page .agenda-section-heading h3,
.admin-page .agenda-active-day-header h3 {
  margin: 3px 0 4px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.15;
}

.admin-page .agenda-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.admin-page .agenda-section-heading .primary-button {
  flex: 0 0 auto;
}

.admin-page .agenda-week-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.admin-page .agenda-week-toolbar strong {
  color: var(--ink);
  font-size: 0.9rem;
  text-align: center;
  white-space: nowrap;
}

.admin-page .agenda-week-toolbar button:last-child {
  justify-self: end;
}

.admin-page .agenda-week-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.admin-page .agenda-week-day {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
  min-height: 116px;
  padding: 12px;
  border: 1px solid rgba(6, 22, 50, 0.1);
  border-radius: 12px;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.admin-page .agenda-week-day:hover {
  border-color: rgba(0, 115, 230, 0.35);
  transform: translateY(-1px);
}

.admin-page .agenda-week-day.active {
  border-color: var(--blue);
  background: #eef7ff;
  box-shadow: inset 0 0 0 1px rgba(0, 115, 230, 0.14);
}

.admin-page .agenda-week-day > span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-page .agenda-week-day > strong {
  color: var(--ink);
  font-size: 1.65rem;
  line-height: 1;
}

.admin-page .agenda-week-day > small,
.admin-page .agenda-week-day > em {
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 800;
}

.admin-page .agenda-week-day > em {
  margin-top: 4px;
  color: var(--ink);
}

.admin-page .agenda-week-day > i {
  display: inline-flex;
  align-self: start;
  margin-top: 4px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #176b49;
  background: #e9f7ef;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
}

.admin-page .agenda-week-day.partial > i { color: #8a5b00; background: #fff5d8; }
.admin-page .agenda-week-day.closed > i { color: #8f2424; background: #fff0f0; }
.admin-page .agenda-week-day.reserved > i { color: #176b49; background: #e9f7ef; }
.admin-page .agenda-week-day.empty > i { color: var(--muted); background: #eef1f5; }

.admin-page #nuevo-slots-body.admin-agenda {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-page #nuevo-slots-body .agenda-overview {
  margin: 0;
}

.admin-page .agenda-active-day {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(6, 22, 50, 0.1);
  border-radius: 14px;
  background: #fff;
}

.admin-page .agenda-active-day-header {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(6, 22, 50, 0.08);
}

.admin-page .agenda-active-day-header h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.admin-page .agenda-day-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
}

.admin-page .agenda-day-status.open { color: #176b49; background: #e9f7ef; }
.admin-page .agenda-day-status.partial { color: #8a5b00; background: #fff5d8; }
.admin-page .agenda-day-status.reserved { color: #176b49; background: #e9f7ef; }
.admin-page .agenda-day-status.closed { color: #8f2424; background: #fff0f0; }
.admin-page .agenda-day-status.empty { color: var(--muted); background: #eef1f5; }

.admin-page .agenda-active-day-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-page .agenda-context-menu {
  position: absolute;
  z-index: 3;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  min-width: 210px;
  padding: 6px;
  border: 1px solid rgba(6, 22, 50, 0.12);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(22, 38, 66, 0.14);
}

.admin-page .agenda-context-menu button {
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: left;
}

.admin-page .agenda-context-menu button:hover {
  background: #f1f6fb;
}

.admin-page .agenda-context-menu .danger-action {
  color: #8f2424;
}

.admin-page .agenda-slot-list {
  display: grid;
  gap: 0;
}

.admin-page .agenda-slot-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(6, 22, 50, 0.08);
}

.admin-page .agenda-slot-row:last-child {
  border-bottom: 0;
}

.admin-page .agenda-slot-row .slot-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-page .agenda-slot-row .slot-main > strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.admin-page .agenda-slot-row .slot-main small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-page .agenda-slot-row .slot-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.admin-page .slot-inline-action {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(0, 115, 230, 0.22);
  border-radius: 8px;
  color: var(--blue-deep);
  background: #fff;
  cursor: pointer;
  font-size: 0.73rem;
  font-weight: 900;
}

.admin-page .slot-context {
  position: relative;
}

.admin-page .slot-context > summary {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid rgba(6, 22, 50, 0.12);
  border-radius: 8px;
  color: var(--blue-deep);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  list-style: none;
}

.admin-page .slot-context > summary::-webkit-details-marker {
  display: none;
}

.admin-page .slot-context-menu {
  position: absolute;
  z-index: 2;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 8px;
  border: 1px solid rgba(6, 22, 50, 0.12);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(22, 38, 66, 0.12);
}

.admin-page .slot-context-menu .inline-assignment {
  display: flex;
}

.admin-page .slot-context-menu button {
  min-height: 32px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 0.72rem;
}

.admin-page .agenda-empty-state {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 34px 20px;
  border: 1px dashed rgba(0, 115, 230, 0.25);
  border-radius: 12px;
  color: var(--muted);
  background: #f7fbff;
}

.admin-page .agenda-empty-state strong {
  color: var(--ink);
}

.admin-page .agenda-empty-state span {
  max-width: 520px;
  font-size: 0.8rem;
}

.admin-page .availability-drawer {
  width: min(440px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(6, 22, 50, 0.1);
  border-radius: 0;
  background: #fff;
  box-shadow: -18px 0 42px rgba(22, 38, 66, 0.13);
}

.admin-page .availability-drawer::backdrop {
  background: rgba(11, 24, 45, 0.32);
}

.admin-page .availability-drawer > form {
  display: grid;
  align-content: start;
  gap: 18px;
  min-height: 100%;
  padding: 28px 24px 24px;
  overflow-y: auto;
}

.admin-page .drawer-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 4px;
}

.admin-page .drawer-header h2 {
  margin: 3px 0 5px;
  color: var(--ink);
  font-size: 1.35rem;
}

.admin-page .drawer-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.admin-page .icon-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(6, 22, 50, 0.12);
  border-radius: 8px;
  color: var(--blue-deep);
  background: #fff;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
}

.admin-page .availability-drawer-note {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.admin-page .drawer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 8px;
}

@media (max-width: 1024px) and (min-width: 721px) {
  .admin-page .agenda-week-day {
    min-height: 102px;
    padding: 9px;
  }

  .admin-page .agenda-week-day > em,
  .admin-page .agenda-week-day > i {
    font-size: 0.62rem;
  }
}

@media (max-width: 720px) {
  .admin-page .agenda-section {
    padding: 14px;
  }

  .admin-page .agenda-section-heading {
    display: grid;
  }

  .admin-page .agenda-section-heading .primary-button {
    width: 100%;
  }

  .admin-page .agenda-week-toolbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
  }

  .admin-page .agenda-week-toolbar button {
    min-height: 34px;
    padding: 0 8px;
    font-size: 0.68rem;
  }

  .admin-page .agenda-week-toolbar strong {
    font-size: 0.75rem;
  }

  .admin-page .agenda-week-days {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 6px;
    scrollbar-width: thin;
  }

  .admin-page .agenda-week-day {
    flex: 0 0 92px;
    min-height: 104px;
  }

  .admin-page .agenda-active-day {
    padding: 14px;
  }

  .admin-page .agenda-active-day-header {
    align-items: flex-start;
    display: grid;
  }

  .admin-page .agenda-active-day-tools {
    justify-content: flex-start;
  }

  .admin-page .agenda-context-menu {
    right: auto;
    left: 0;
  }

  .admin-page .agenda-slot-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-page .agenda-slot-row .slot-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .admin-page .availability-drawer {
    width: 100vw;
    border-left: 0;
  }

  .admin-page .availability-drawer > form {
    padding: 22px 16px 18px;
  }

  .admin-page .drawer-actions {
    position: sticky;
    bottom: 0;
    margin: 0 -16px -18px;
    padding: 12px 16px 18px;
    background: rgba(255, 255, 255, 0.96);
  }

  .admin-page .drawer-actions button {
    flex: 1 1 0;
  }
}

@media (max-width: 520px) {
  .admin-page .admin-overview {
    grid-template-columns: 1fr;
  }

  .admin-page .admin-overview .overview-card:last-child {
    grid-column: auto;
  }

  .admin-header-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .session-status {
    grid-column: 1 / -1;
  }

  .admin-header-link {
    text-align: center;
  }

  .admin-header-tools button {
    width: 100%;
  }

  .priority-actions {
    grid-template-columns: 1fr;
  }

  .admin-page .filters input,
  .admin-page .filters select,
  .admin-page .admin-actions button {
    width: 100%;
  }
}

/* Reingreso payment reservation states and admin dialogs. */
.reingreso-page .deadline-box {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
  border: 1px solid rgba(0, 148, 239, 0.18);
  border-radius: 22px;
  background: #f1f9ff;
}

.reingreso-page .deadline-box small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reingreso-page .deadline-box strong {
  color: var(--blue-deep);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.2;
}

.reingreso-page .deadline-box p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-dialog {
  width: min(560px, calc(100% - 32px));
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: var(--ink);
  box-shadow: 0 28px 90px rgba(0, 28, 84, 0.24);
}

.admin-dialog::backdrop {
  background: rgba(7, 21, 41, 0.46);
  backdrop-filter: blur(3px);
}

.admin-dialog-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: #fff;
}

.admin-dialog-header {
  display: grid;
  gap: 8px;
}

.admin-dialog-header > span {
  color: var(--blue-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-dialog-header h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.05;
}

.admin-dialog-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-dialog-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

.admin-dialog-form input,
.admin-dialog-form select,
.admin-dialog-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.admin-dialog-form textarea {
  resize: vertical;
}

.admin-dialog-form input:focus,
.admin-dialog-form select:focus,
.admin-dialog-form textarea:focus {
  outline: 3px solid rgba(0, 148, 239, 0.14);
  border-color: var(--blue-deep);
}

.optional-label,
.admin-dialog-form label small,
.dialog-quick-actions > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.dialog-quick-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dialog-quick-actions > span {
  width: 100%;
}

.dialog-quick-actions .ghost-button {
  min-height: 36px;
  padding: 0 11px;
  font-size: 0.82rem;
}

.dialog-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  color: #8f2424;
  background: #fff0f0;
  font-weight: 800;
  line-height: 1.45;
}

.admin-dialog-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.admin-dialog-actions button {
  min-height: 44px;
}

.slot-action-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .admin-dialog-form {
    padding: 22px 18px;
  }

  .admin-dialog-actions > button {
    flex: 1 1 140px;
  }
}

/* Reingreso 2027: guided three-step experience. */

.reingreso-page {
  background: #f4f8fd;
}

.reingreso-page main {
  gap: 10px;
}

.reingreso-page .reingreso-welcome {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  height: clamp(500px, 42vw, 600px);
  padding: 64px 76px;
  border-radius: 32px;
  color: #fff;
  background: #061a45;
  box-shadow: 0 24px 70px rgba(0, 48, 145, 0.18);
}

.reingreso-page .reingreso-welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(2, 12, 40, 0.9) 0%,
    rgba(2, 18, 58, 0.7) 38%,
    rgba(3, 32, 91, 0.18) 68%,
    rgba(3, 32, 91, 0.04) 100%
  );
}

.reingreso-page .reingreso-welcome-copy {
  position: relative;
  z-index: 2;
  width: min(54%, 650px);
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.reingreso-page .reingreso-welcome-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.reingreso-page .reingreso-welcome-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.reingreso-page .reingreso-wordmark {
  width: max-content;
  margin-bottom: 22px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.reingreso-page .reingreso-wordmark img {
  display: block;
  width: 142px;
  height: auto;
}

.reingreso-page .reingreso-kicker {
  margin-bottom: 14px;
  color: #8ed7ff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reingreso-page .reingreso-welcome h1 {
  max-width: 610px;
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(3.5rem, 5.8vw, 5.8rem);
  line-height: 0.98;
}

.reingreso-page .reingreso-welcome .lead {
  max-width: 520px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.reingreso-page .reingreso-welcome .primary-button {
  min-height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  color: #071529;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  text-shadow: none;
}

.reingreso-page .reingreso-onboarding,
.reingreso-page .result-panel {
  width: min(1000px, calc(100% - 40px));
  margin: 8px auto 0;
  scroll-margin-top: 12px;
}

.reingreso-page .reingreso-progress-header {
  position: sticky;
  top: 10px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(150px, 0.48fr) minmax(0, 1.52fr);
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 13px 20px;
  border: 1px solid rgba(6, 22, 50, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 38px rgba(7, 21, 41, 0.08);
  backdrop-filter: blur(14px);
}

.reingreso-page .reingreso-progress-meta {
  display: grid;
  gap: 2px;
}

.reingreso-page .reingreso-progress-meta span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.reingreso-page .reingreso-progress-meta strong {
  font-size: 0.9rem;
}

.reingreso-page .reingreso-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reingreso-page .reingreso-progress-step {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 72px;
  color: #8a96a8;
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.reingreso-page .reingreso-progress-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px;
  left: calc(50% + 22px);
  width: calc(100% - 44px);
  height: 1px;
  background: #d9e1eb;
}

.reingreso-page .reingreso-progress-step i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #d2dbe6;
  border-radius: 50%;
  color: #7b8798;
  background: #fff;
  font-size: 0.72rem;
  font-style: normal;
}

.reingreso-page .reingreso-progress-step.is-active,
.reingreso-page .reingreso-progress-step.is-complete {
  color: var(--blue-deep);
}

.reingreso-page .reingreso-progress-step.is-active i,
.reingreso-page .reingreso-progress-step.is-complete i {
  border-color: var(--blue-deep);
  color: #fff;
  background: var(--blue-deep);
}

.reingreso-page .reingreso-progress-step.is-complete i {
  font-size: 0;
}

.reingreso-page .reservation-form {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.reingreso-page .reingreso-scene {
  min-height: 540px;
  margin-top: 14px;
  padding: 62px 90px 48px;
  border: 1px solid rgba(6, 22, 50, 0.08);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(7, 21, 41, 0.07);
  animation: reingreso-scene-in 180ms ease both;
}

@keyframes reingreso-scene-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.reingreso-page .reingreso-scene-heading {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin-bottom: 34px;
}

.reingreso-page .reingreso-scene-heading p {
  margin: 0;
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reingreso-page .reingreso-scene-heading h2 {
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.25rem);
  line-height: 1.05;
}

.reingreso-page .reingreso-scene-heading span {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.reingreso-page .reingreso-scene > label,
.reingreso-page .reingreso-grade-grid,
.reingreso-page .reingreso-whatsapp-choice,
.reingreso-page .reingreso-review,
.reingreso-page .reingreso-payment-note,
.reingreso-page .reingreso-scene-actions {
  width: min(100%, 720px);
}

.reingreso-page .reingreso-scene > label + label {
  margin-top: 18px;
}

.reingreso-page label {
  color: var(--ink);
  font-size: 0.86rem;
}

.reingreso-page input,
.reingreso-page select {
  min-height: 56px;
  border-color: rgba(6, 22, 50, 0.12);
  border-radius: 13px;
  background: #fbfcfe;
  box-shadow: none;
}

.reingreso-page input[aria-invalid="true"],
.reingreso-page select[aria-invalid="true"] {
  border-color: rgba(183, 53, 53, 0.58);
  box-shadow: 0 0 0 3px rgba(183, 53, 53, 0.08);
}

.reingreso-page .field-error {
  color: #9f2f2f;
  font-size: 0.76rem;
  font-weight: 800;
}

.reingreso-page .reingreso-whatsapp-choice {
  display: block;
  margin-top: 18px;
  cursor: pointer;
}

.reingreso-page .reingreso-whatsapp-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  opacity: 0;
}

.reingreso-page .reingreso-whatsapp-choice > span {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 12px;
  padding: 16px 18px;
  border: 1px solid rgba(0, 148, 239, 0.2);
  border-radius: 15px;
  background: #f4faff;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.reingreso-page .reingreso-whatsapp-choice i {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 63, 184, 0.3);
  border-radius: 7px;
  background: #fff;
  font-style: normal;
}

.reingreso-page .reingreso-whatsapp-choice small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.45;
}

.reingreso-page .reingreso-whatsapp-choice input:checked + span {
  border-color: rgba(0, 63, 184, 0.5);
  background: #edf7ff;
  box-shadow: 0 0 0 3px rgba(0, 148, 239, 0.09);
}

.reingreso-page .reingreso-whatsapp-choice input:checked + span i {
  border-color: var(--blue-deep);
  color: #fff;
  background: var(--blue-deep);
}

.reingreso-page .reingreso-whatsapp-choice input:checked + span i::after {
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
}

.reingreso-page .reingreso-grade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.reingreso-page .reingreso-scene-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 30px;
}

.reingreso-page .reingreso-scene-actions button {
  min-width: 138px;
}

.reingreso-page .reingreso-review {
  overflow: hidden;
  border: 1px solid rgba(6, 22, 50, 0.1);
  border-radius: 18px;
  background: #fbfcfe;
}

.reingreso-page .reingreso-review-primary {
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #0044bc, #007edc);
}

.reingreso-page .reingreso-review-primary small,
.reingreso-page .reingreso-review-primary strong {
  display: block;
}

.reingreso-page .reingreso-review-primary small {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reingreso-page .reingreso-review-primary strong {
  font-size: 1.35rem;
}

.reingreso-page .reingreso-review dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.reingreso-page .reingreso-review dl div {
  padding: 15px 20px;
  border-bottom: 1px solid rgba(6, 22, 50, 0.08);
}

.reingreso-page .reingreso-review dl div:nth-child(odd) {
  border-right: 1px solid rgba(6, 22, 50, 0.08);
}

.reingreso-page .reingreso-review dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reingreso-page .reingreso-review dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
}

.reingreso-page .reingreso-payment-note {
  display: grid;
  grid-template-columns: minmax(170px, 0.5fr) minmax(0, 1.5fr);
  align-items: center;
  gap: 20px;
  margin-top: 16px;
  padding: 15px 18px;
  border-radius: 14px;
  color: var(--ink);
  background: #eef7ff;
}

.reingreso-page .reingreso-payment-note small,
.reingreso-page .reingreso-payment-note strong {
  display: block;
}

.reingreso-page .reingreso-payment-note small {
  margin-bottom: 3px;
  color: var(--blue-deep);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reingreso-page .reingreso-payment-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.reingreso-page .result-panel {
  padding: 0;
}

.reingreso-page .result-card {
  padding: 58px 70px;
  border-radius: 26px;
  box-shadow: 0 18px 52px rgba(7, 21, 41, 0.08);
}

.reingreso-page .result-heading .reingreso-result-check {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--success);
  font-size: 1.3rem;
  letter-spacing: 0;
}

.reingreso-page .reingreso-timer-box {
  color: var(--ink);
  background: #edf7ff;
}

.reingreso-page .reingreso-timer-box p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.reingreso-page .reingreso-result-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.reingreso-page .reingreso-code-summary {
  grid-column: 1 / -1;
  padding-top: 14px;
  padding-bottom: 14px;
  background: #f7f9fc;
}

.reingreso-page .reingreso-code-summary strong {
  display: inline-block;
  margin-right: 12px;
  color: var(--muted);
  font-size: 0.94rem;
}

.reingreso-page .reingreso-code-summary span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .reingreso-page .reingreso-welcome {
    height: 560px;
    padding: 54px;
  }

  .reingreso-page .reingreso-welcome-copy {
    width: min(62%, 560px);
  }

  .reingreso-page .reingreso-welcome h1 {
    font-size: 4rem;
  }

  .reingreso-page .reingreso-scene {
    padding: 54px 60px 44px;
  }
}

@media (max-width: 640px) {
  .reingreso-page .page-shell {
    width: min(100% - 18px, 1180px);
  }

  .reingreso-page .reingreso-welcome {
    align-items: flex-start;
    height: clamp(460px, calc(100svh - 90px), 500px);
    padding: 24px 22px 26px;
    border-radius: 24px;
  }

  .reingreso-page .reingreso-welcome::before {
    background: linear-gradient(
      90deg,
      rgba(2, 12, 40, 0.93) 0%,
      rgba(2, 18, 58, 0.78) 46%,
      rgba(3, 32, 91, 0.25) 72%,
      rgba(3, 32, 91, 0.08) 100%
    );
  }

  .reingreso-page .reingreso-welcome-copy {
    width: 100%;
  }

  .reingreso-page .reingreso-welcome-photo img {
    object-position: 55% center;
  }

  .reingreso-page .reingreso-wordmark {
    margin-bottom: 14px;
  }

  .reingreso-page .reingreso-wordmark img {
    width: 102px;
  }

  .reingreso-page .reingreso-kicker {
    margin-bottom: 9px;
    font-size: 0.68rem;
  }

  .reingreso-page .reingreso-welcome h1 {
    max-width: 230px;
    margin-bottom: 13px;
    font-size: 2.3rem;
    line-height: 1.02;
  }

  .reingreso-page .reingreso-welcome .lead {
    max-width: 225px;
    margin-bottom: 18px;
    font-size: 0.86rem;
    line-height: 1.5;
  }

  .reingreso-page .reingreso-welcome .primary-button {
    min-height: 39px;
    padding: 0 16px;
    font-size: 0.8rem;
  }

  .reingreso-page .reingreso-onboarding,
  .reingreso-page .result-panel {
    width: min(100% - 2px, 560px);
    margin-top: 8px;
  }

  .reingreso-page .reingreso-progress-header {
    grid-template-columns: 1fr;
    gap: 6px;
    min-height: 82px;
    padding: 10px;
  }

  .reingreso-page .reingreso-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .reingreso-page .reingreso-progress-step {
    min-width: 56px;
    font-size: 0.6rem;
  }

  .reingreso-page .reingreso-progress-step i {
    width: 24px;
    height: 24px;
  }

  .reingreso-page .reingreso-progress-step:not(:last-child)::after {
    top: 12px;
    left: calc(50% + 19px);
    width: calc(100% - 38px);
  }

  .reingreso-page .reingreso-scene {
    min-height: 0;
    margin-top: 10px;
    padding: 34px 20px 26px;
    border-radius: 22px;
  }

  .reingreso-page .reingreso-scene-heading {
    margin-bottom: 26px;
  }

  .reingreso-page .reingreso-scene-heading h2 {
    font-size: 2rem;
  }

  .reingreso-page .reingreso-grade-grid,
  .reingreso-page .reingreso-review dl,
  .reingreso-page .reingreso-payment-note,
  .reingreso-page .reingreso-result-summary {
    grid-template-columns: 1fr;
  }

  .reingreso-page .reingreso-review dl div:nth-child(odd) {
    border-right: 0;
  }

  .reingreso-page .reingreso-review-primary {
    padding: 16px;
  }

  .reingreso-page .reingreso-review dl div {
    padding: 12px 16px;
  }

  .reingreso-page .reingreso-payment-note {
    gap: 8px;
  }

  .reingreso-page .reingreso-scene-actions {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
  }

  .reingreso-page .reingreso-scene-actions button:only-child {
    grid-column: 1 / -1;
  }

  .reingreso-page .reingreso-scene-actions button {
    min-width: 0;
    width: 100%;
  }

  .reingreso-page .result-card {
    padding: 34px 22px;
  }

  .reingreso-page .reingreso-timer-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 148, 239, 0.2) 0%, transparent 34%),
    linear-gradient(180deg, #f7fbff 0%, #eaf4ff 100%);
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1420px, calc(100% - 20px));
  margin: 0 auto;
  padding: 14px 0 28px;
}

main {
  display: grid;
  gap: 22px;
}

.hero-section {
  display: block;
  aspect-ratio: 16 / 7;
  min-height: unset;
  margin-top: 0;
  max-height: 620px;
  padding: clamp(34px, 4.2vw, 50px);
  overflow: hidden;
  position: relative;
  border-radius: 36px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(2, 10, 36, 0.9) 0%, rgba(0, 38, 132, 0.62) 48%, rgba(0, 148, 239, 0.08) 100%),
    url("./assets/hero-formulario-inscripcion-2027.jpg") center/cover;
  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  max-width: 760px;
  text-shadow: 0 10px 34px rgba(0, 0, 0, 0.34);
}

.hero-wordmark {
  display: block;
  margin-bottom: clamp(18px, 2.6vw, 28px);
}

.hero-wordmark img {
  display: block;
  width: clamp(148px, 14vw, 220px);
  height: auto;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 46px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(3.7rem, 7.4vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
  font-weight: 900;
}

h1 span {
  display: block;
}

h1 .title-year {
  margin-top: 0.12em;
}

h1 em {
  font-style: italic;
  font-weight: 900;
}

.lead {
  max-width: 650px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.6;
}

.lead em {
  font-style: italic;
  font-weight: 900;
}

.nuevo-ingreso-hero h1 {
  max-width: 900px;
  font-size: clamp(3.4rem, 6.8vw, 7rem);
}

.process-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
}

.process-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding-top: 58px;
  color: #fff;
  text-align: center;
}

.process-step span {
  position: absolute;
  top: 0;
  left: 50%;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  transform: translateX(-50%);
}

.process-step strong,
.process-step small {
  display: block;
}

.process-step strong {
  font-size: clamp(1.4rem, 3.2vw, 3rem);
  line-height: 0.95;
  font-weight: 900;
}

.process-step small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 800;
}

.status-strip {
  display: block;
}

.status-card,
.campaign-message {
  padding: 28px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 18px 58px rgba(0, 48, 145, 0.1);
}

.status-card h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

.status-card p {
  color: var(--muted);
  line-height: 1.7;
}

.campaign-message {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(460px, 1fr);
  align-content: center;
  align-items: center;
  gap: 24px;
  min-height: 188px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 148, 239, 0.96), rgba(0, 30, 122, 0.98));
}

.campaign-message::after {
  content: "";
  position: absolute;
  inset: -36px;
  background-image: var(--campaign-line-art);
  background-repeat: no-repeat;
  background-position: right -80px center;
  background-size: 620px auto;
  opacity: 0.62;
  pointer-events: none;
}

.campaign-message > * {
  position: relative;
  z-index: 1;
}

.campaign-message .process-timeline {
  width: 100%;
}

.campaign-message strong {
  font-size: clamp(1.9rem, 3.6vw, 3.2rem);
  line-height: 0.98;
  font-weight: 900;
}

.campaign-message > div:first-child > span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 800;
}

.quota-note {
  display: block;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #edf7ff;
}

.quota-note p {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
}

.form-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) minmax(430px, 1.26fr);
  align-items: start;
  gap: clamp(22px, 3vw, 34px);
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 34px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(0, 13, 48, 0.98) 0%, rgba(0, 54, 167, 0.94) 58%, rgba(0, 148, 239, 0.82) 100%);
  box-shadow: 0 24px 70px rgba(0, 48, 145, 0.2);
  backdrop-filter: blur(18px);
}

.form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 0 54%, rgba(255, 255, 255, 0.08) 54% 65%, transparent 65%),
    linear-gradient(180deg, transparent 0%, rgba(1, 5, 24, 0.2) 100%);
  pointer-events: none;
}

.form-section::after {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: 0;
  background-image: var(--campaign-line-art);
  background-repeat: no-repeat;
  background-position: right -120px top -36px;
  background-size: 760px auto;
  opacity: 0.52;
  pointer-events: none;
}

.section-copy {
  position: relative;
  z-index: 1;
  align-self: start;
  padding-top: 4px;
}

.section-copy h2 {
  max-width: 600px;
  margin-bottom: 16px;
  font-size: clamp(2rem, 4.2vw, 4.05rem);
  line-height: 1.02;
  color: #fff;
  font-weight: 900;
}

.section-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 700;
}

.reservation-form {
  display: grid;
  position: relative;
  z-index: 1;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 28px 70px rgba(0, 9, 36, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.admissions-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  padding: 7px;
  border: 1px solid rgba(0, 148, 239, 0.14);
  border-radius: 22px;
  background: rgba(244, 251, 255, 0.74);
}

.admissions-guide article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.admissions-guide span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  font-size: 0.78rem;
  font-weight: 900;
}

.admissions-guide strong {
  color: var(--ink);
  font-size: 0.88rem;
  line-height: 1.1;
}

.admissions-guide small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 900;
}

fieldset {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 2px;
  color: var(--blue-deep);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admission-step {
  padding: 16px;
  border: 1px solid rgba(0, 148, 239, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
}

.admission-step legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.admission-step legend span {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: #eaf6ff;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
}

input,
select {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid rgba(26, 13, 48, 0.16);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

input:focus,
select:focus {
  border-color: rgba(0, 148, 239, 0.58);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 148, 239, 0.14);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(0, 148, 239, 0.16);
  border-radius: 18px;
  background: rgba(244, 251, 255, 0.72);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.check-row input {
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
  accent-color: var(--blue);
}

.inline-fieldset {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(0, 148, 239, 0.16);
  border-radius: 18px;
  background: rgba(244, 251, 255, 0.72);
}

.inline-fieldset legend {
  flex-basis: 100%;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: none;
}

.radio-row,
.slot-card {
  cursor: pointer;
}

.radio-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 900;
}

.radio-row input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}

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

.slot-list {
  display: grid;
  gap: 10px;
}

.slot-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(0, 148, 239, 0.18);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.68);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.slot-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 148, 239, 0.36);
}

.slot-card input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--blue);
}

.slot-card span {
  display: grid;
  gap: 3px;
}

.slot-card strong {
  text-transform: capitalize;
}

.slot-card small,
.slot-card em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 800;
}

.slot-card:has(input:checked) {
  border-color: rgba(0, 148, 239, 0.56);
  box-shadow: 0 0 0 4px rgba(0, 148, 239, 0.12);
}

.appointment-picker {
  display: grid;
  gap: 12px;
  max-width: 420px;
  margin-inline: auto;
}

.appointment-calendar-card,
.appointment-times-panel,
.appointment-empty-selection {
  border: 1px solid rgba(6, 22, 50, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 12px 26px rgba(0, 28, 84, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.appointment-calendar-card {
  padding: 14px;
}

.appointment-calendar-header {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.appointment-calendar-header strong {
  text-align: center;
  text-transform: capitalize;
  font-size: 0.98rem;
}

.appointment-calendar-header button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(6, 22, 50, 0.1);
  border-radius: 50%;
  color: var(--blue-deep);
  background: #fff;
  cursor: pointer;
  font-size: 1.18rem;
  font-weight: 900;
}

.appointment-calendar-header button:disabled {
  cursor: not-allowed;
  opacity: 0.32;
}

.appointment-weekdays,
.appointment-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.appointment-weekdays {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.appointment-calendar-day {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: 0;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.appointment-calendar-day:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 148, 239, 0.28);
}

.appointment-calendar-day.outside,
.appointment-calendar-day:disabled {
  color: rgba(101, 116, 138, 0.34);
  cursor: not-allowed;
}

.appointment-calendar-day.weekend:not(.available) {
  color: rgba(101, 116, 138, 0.24);
}

.appointment-calendar-day.available {
  color: var(--blue-deep);
  background: #edf8ff;
}

.appointment-calendar-day.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 10px 20px rgba(0, 76, 180, 0.2);
}

.appointment-calendar-day small {
  position: absolute;
  right: 2px;
  bottom: 1px;
  display: inline-grid;
  place-items: center;
  min-width: 14px;
  height: 14px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 0.52rem;
  line-height: 1;
}

.appointment-calendar-day.active small {
  color: var(--blue-deep);
  background: #fff;
}

.appointment-times-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
}

.appointment-time-header {
  display: grid;
  gap: 4px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(6, 22, 50, 0.1);
}

.appointment-time-header span {
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.appointment-time-header strong {
  text-transform: capitalize;
  font-size: 0.98rem;
}

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

.appointment-time-group {
  display: grid;
  gap: 10px;
}

.appointment-time-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.appointment-time-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.appointment-time-card input {
  position: absolute;
  inset: 0;
  width: 100%;
  min-height: 100%;
  opacity: 0;
  cursor: pointer;
}

.appointment-time-card span {
  display: grid;
  gap: 4px;
  min-height: 42px;
  place-items: center;
  padding: 9px 10px;
  border: 1px solid rgba(6, 22, 50, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.appointment-time-card:hover span {
  transform: translateY(-1px);
  border-color: rgba(0, 148, 239, 0.34);
}

.appointment-time-card input:checked + span {
  color: #fff;
  border-color: rgba(0, 148, 239, 0.62);
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 12px 24px rgba(0, 76, 180, 0.2);
}

.appointment-time-card strong {
  font-size: 0.96rem;
}

.appointment-time-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.appointment-time-card input:checked + span small {
  color: rgba(255, 255, 255, 0.78);
}

.interview-summary {
  display: grid;
  gap: 4px;
  margin-top: 2px;
  padding: 14px;
  border: 1px solid rgba(0, 148, 239, 0.14);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(237, 248, 255, 0.8);
}

.interview-summary.ready {
  border-color: rgba(22, 136, 90, 0.2);
  background: linear-gradient(135deg, rgba(232, 250, 242, 0.96), rgba(237, 248, 255, 0.9));
}

.interview-summary small {
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interview-summary strong {
  text-transform: capitalize;
}

.interview-summary span {
  color: var(--muted);
  font-weight: 900;
}

.interview-summary.ready span {
  color: var(--success);
}

.appointment-empty-selection {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px 12px;
  padding: 14px;
  color: var(--ink);
  background: rgba(244, 251, 255, 0.72);
}

.appointment-empty-selection span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 148, 239, 0.22);
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.appointment-empty-selection strong {
  font-size: 0.94rem;
}

.appointment-empty-selection p {
  grid-column: 2;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, #0094ef, #003fb8);
  box-shadow: 0 18px 34px rgba(0, 118, 220, 0.28);
}

.secondary-button {
  color: var(--ink);
  background: var(--cream);
  border: 1px solid rgba(0, 148, 239, 0.24);
  white-space: normal;
  text-align: center;
}

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

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

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover {
  transform: translateY(-2px);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.form-helper {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.reservation-note {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(0, 148, 239, 0.18);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(237, 247, 255, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.55;
}

.payment-placeholder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px dashed rgba(0, 148, 239, 0.32);
  border-radius: 22px;
  background: rgba(244, 251, 255, 0.74);
}

.payment-placeholder .secondary-button {
  min-width: 190px;
}

.payment-placeholder small {
  display: block;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-placeholder strong {
  display: block;
  margin-top: 5px;
  font-size: 1.05rem;
  font-weight: 900;
}

.payment-placeholder p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.result-panel {
  padding: 0;
}

.result-card {
  display: grid;
  gap: 20px;
  padding: 34px;
  border-radius: 34px;
  background: #fff;
  box-shadow: var(--shadow);
}

.result-card.success {
  border: 1px solid rgba(22, 136, 90, 0.22);
}

.result-card.warn {
  border: 1px solid rgba(212, 160, 23, 0.32);
}

.result-card.danger {
  border: 1px solid rgba(183, 53, 53, 0.22);
}

.result-heading {
  display: grid;
  gap: 8px;
}

.result-heading span {
  width: max-content;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink);
  background: #dff4ff;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 4.4rem);
  line-height: 1;
}

.result-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.reservation-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.summary-item {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fafbff;
}

.summary-item small,
.timer-box small {
  display: block;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.15rem;
}

.timer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue-deep));
}

.timer-box strong {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.simple-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 20px 4px 0;
  color: var(--muted);
  font-weight: 800;
}

.simple-footer a {
  color: var(--blue-deep);
  text-decoration: none;
}

.admin-page {
  background: #f5f7fb;
}

.admin-shell {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(26, 13, 48, 0.07);
}

.admin-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-title img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-title strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
}

.admin-title small {
  color: var(--muted);
  font-weight: 800;
}

.login-panel {
  width: min(520px, 100%);
  margin: 86px auto 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-panel h1 {
  margin-bottom: 12px;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}

.login-panel p {
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.7;
}

.admin-board {
  display: grid;
  gap: 20px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  width: max-content;
  max-width: 100%;
}

.admin-tabs button {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-weight: 900;
}

.admin-tabs button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  box-shadow: 0 12px 28px rgba(0, 85, 190, 0.22);
}

.admin-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.overview-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 108px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(26, 13, 48, 0.045);
}

.overview-card.attention {
  border-color: rgba(255, 122, 26, 0.28);
  background: #fffaf4;
}

.overview-card.attention.clear {
  border-color: rgba(22, 136, 90, 0.2);
  background: #f6fcf9;
}

.overview-card small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.overview-card strong {
  color: var(--ink);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1;
}

.overview-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.admin-tab-panel {
  display: grid;
  gap: 20px;
}

.admin-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 255, 0.88));
  box-shadow: 0 18px 48px rgba(0, 48, 145, 0.08);
}

.admin-section-heading span {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 0.98;
}

.admin-section-heading p {
  max-width: 460px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 800;
}

.ops-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ops-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 15px;
  border: 1px solid rgba(0, 148, 239, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(0, 28, 84, 0.07);
}

.ops-card.attention {
  border-color: rgba(255, 122, 26, 0.24);
  background: linear-gradient(135deg, #fff, #fff5ed);
}

.ops-card.success {
  border-color: rgba(22, 136, 90, 0.18);
  background: linear-gradient(135deg, #fff, #eefbf5);
}

.ops-card.muted {
  opacity: 0.76;
}

.ops-card small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-card strong {
  color: var(--ink);
  font-size: clamp(1.24rem, 2.4vw, 2rem);
  line-height: 1.05;
}

.ops-card span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 800;
}

.admin-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.9);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  width: min(760px, 100%);
}

.filters input,
.filters select {
  min-height: 48px;
  border-radius: 14px;
}

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

.admin-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.68fr) minmax(520px, 1.32fr);
  gap: 18px;
  align-items: start;
}

.admin-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(26, 13, 48, 0.06);
}

.admin-card h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.admin-card p {
  color: var(--muted);
  line-height: 1.65;
}

.compact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.compact-form input,
.compact-form select {
  min-height: 50px;
  border-radius: 14px;
}

.admin-agenda {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 42px rgba(26, 13, 48, 0.06);
}

.agenda-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.agenda-stat {
  padding: 14px;
  border: 1px solid rgba(0, 148, 239, 0.14);
  border-radius: 18px;
  background: linear-gradient(135deg, #fff, #f0f8ff);
}

.agenda-stat small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agenda-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.8rem;
  line-height: 1;
}

.agenda-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  max-height: 540px;
  overflow: auto;
  padding-right: 2px;
}

.agenda-day-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(6, 22, 50, 0.1);
  border-radius: 22px;
  background: rgba(250, 253, 255, 0.82);
}

.agenda-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(6, 22, 50, 0.08);
}

.agenda-day-header span {
  font-weight: 900;
  line-height: 1.25;
}

.agenda-day-header strong {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: #e8f5ff;
  font-size: 0.72rem;
  font-weight: 900;
}

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

.admin-slot-chip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 11px 4px;
  border-bottom: 1px solid rgba(6, 22, 50, 0.1);
  background: transparent;
}

.admin-slot-chip.available {
  border-color: rgba(0, 148, 239, 0.18);
}

.admin-slot-chip.reserved {
  border-color: rgba(22, 136, 90, 0.2);
  background: transparent;
}

.admin-slot-chip.closed {
  opacity: 0.72;
  background: transparent;
}

.slot-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
}

.admin-slot-chip.available .slot-status-dot {
  background: var(--blue);
}

.admin-slot-chip.reserved .slot-status-dot {
  background: var(--success);
}

.admin-slot-chip strong,
.admin-slot-chip small {
  display: block;
}

.admin-slot-chip .slot-main {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}

.admin-slot-chip .slot-status-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-slot-chip small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.admin-slot-chip .slot-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.admin-slot-chip button {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(0, 148, 239, 0.2);
  border-radius: 999px;
  color: var(--blue-deep);
  background: #fff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.admin-slot-chip:last-child {
  border-bottom: 0;
}

.admin-slot-chip .danger-action {
  border-color: rgba(143, 36, 36, 0.18);
  color: #8f2424;
  background: #fff8f8;
}

.slot-action-note {
  align-self: center;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: right;
}

.admin-slot-chip button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.quota-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(26, 13, 48, 0.07);
}

.quota-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.quota-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf0f6;
}

.quota-meter span {
  display: block;
  height: 100%;
  width: var(--fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--blue-deep));
}

.quota-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.quota-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.12rem;
}

.table-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(26, 13, 48, 0.07);
}

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

th,
td {
  padding: 16px 14px;
  border-bottom: 1px solid rgba(26, 13, 48, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fafbff;
}

td {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status-pill.pendiente_pago {
  color: #7a5600;
  background: #fff1c5;
}

.status-pill.confirmado {
  color: #0e6b45;
  background: #dff7ed;
}

.status-pill.vencido {
  color: #7a4a0b;
  background: #f4e8d5;
}

.status-pill.cancelado {
  color: #8f2424;
  background: #fbe4e4;
}

.status-pill.cita_agendada {
  color: #174f8e;
  background: #dff0ff;
}

.status-pill.contactado {
  color: #5f4a00;
  background: #fff3bf;
}

.status-pill.atendido {
  color: #0e6b45;
  background: #dff7ed;
}

.assignment-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.assignment-pill.assigned {
  color: #0b5b41;
  background: #e7f7f0;
}

.assignment-pill.unassigned {
  color: #895025;
  background: #fff0df;
}

.inline-assignment {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  width: max-content;
  max-width: 100%;
}

.inline-assignment button {
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(0, 148, 239, 0.2);
  border-radius: 10px;
  color: var(--blue-deep);
  background: #fff;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 900;
}

.inline-assignment button.active {
  color: #fff;
  border-color: var(--blue-deep);
  background: var(--blue-deep);
}

.inline-assignment.compact {
  width: 100%;
}

.admin-page .request-student strong {
  display: inline-block;
  color: #071529;
  font-size: 1.03rem;
}

.admin-page .request-contact strong,
.admin-page .request-interview strong,
.admin-page .request-assignment .assignment-pill {
  font-weight: 900;
}

.admin-page .request-interview strong {
  color: var(--blue-deep);
}

.admin-page .status-pill {
  text-transform: none;
}

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

.row-actions button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: #fff;
  font-weight: 900;
}

.row-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(22, 136, 90, 0.2);
  border-radius: 12px;
  color: #0e6b45;
  background: #f2fbf6;
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.admin-page .row-actions .danger-action {
  border-color: rgba(143, 36, 36, 0.18);
  color: #8f2424;
  background: #fff8f8;
}

.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 18px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 18px 40px rgba(0, 48, 145, 0.22);
  font-weight: 800;
}

.toast.error {
  background: var(--danger);
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) and (min-width: 981px) {
  h1 {
    font-size: clamp(3.8rem, 6.4vw, 5.5rem);
    line-height: 0.9;
  }

  .hero-wordmark img {
    width: clamp(132px, 13vw, 170px);
  }

  .lead {
    max-width: 560px;
    font-size: 1.05rem;
  }
}

@media (max-width: 980px) {
  .hero-section,
  .form-section,
  .status-strip,
  .campaign-message {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
    padding: 34px 24px;
  }

  .status-card {
    align-self: auto;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-split {
    grid-template-columns: 1fr;
  }

  .reservation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    overflow-x: auto;
  }

  table {
    min-width: 920px;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .admin-shell {
    width: min(100% - 18px, 1180px);
    padding-top: 10px;
  }

  .admin-header {
    border-radius: 24px;
  }

  .admin-page .admin-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page .admin-header .admin-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-page .admin-header .admin-actions a {
    justify-content: center;
    min-width: 0;
    padding: 0 10px;
    text-align: center;
  }

  .hero-section {
    border-radius: 28px;
    background: url("./assets/hero-formulario-inscripcion-2027.jpg") 62% center/cover;
  }

  h1 {
    margin-bottom: 20px;
    font-size: clamp(2.75rem, 13vw, 3.6rem);
    line-height: 0.98;
  }

  .lead {
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .process-timeline {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .process-step {
    min-height: 68px;
    padding-left: 44px;
    padding-top: 0;
    position: relative;
    justify-items: start;
    text-align: left;
  }

  .process-step span {
    position: absolute;
    left: 0;
    top: 2px;
    transform: none;
  }

  .form-grid,
  .summary-grid,
  .reservation-summary,
  .agenda-overview,
  .ops-summary,
  .admissions-guide {
    grid-template-columns: 1fr;
  }

  .appointment-time-grid,
  .agenda-day-grid {
    grid-template-columns: 1fr;
  }

  .appointment-time-header {
    display: grid;
  }

  .appointment-time-header strong {
    max-width: none;
    text-align: left;
  }

  .admin-slot-chip {
    grid-template-columns: auto 1fr;
  }

  .admin-slot-chip .slot-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-slot-chip .slot-actions button {
    width: 100%;
  }

  .admin-slot-chip .slot-action-note {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .form-section,
  .reservation-form,
  .result-card,
  .login-panel {
    padding: 22px;
    border-radius: 26px;
  }

  .simple-footer,
  .admin-controls,
  .payment-placeholder {
    flex-direction: column;
    align-items: flex-start;
  }

  .payment-placeholder .secondary-button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .admin-page .admin-overview {
    grid-template-columns: 1fr;
  }

  .admin-page .table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .admin-page .table-wrap table {
    min-width: 0;
  }

  .admin-page .table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .admin-page .table-wrap tbody,
  .admin-page .table-wrap tr,
  .admin-page .table-wrap td {
    display: block;
    width: 100%;
  }

  .admin-page .table-wrap tbody tr {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(26, 13, 48, 0.045);
  }

  .admin-page .table-wrap td {
    display: grid;
    grid-template-columns: minmax(6.25rem, 0.42fr) minmax(0, 1fr);
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(26, 13, 48, 0.08);
  }

  .admin-page .table-wrap td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .admin-page .table-wrap td:last-child {
    border-bottom: 0;
  }

  .admin-page .table-wrap td[colspan] {
    display: block;
    padding: 18px;
  }

  .admin-page .table-wrap td[colspan]::before {
    display: none;
  }

  .admin-page .table-wrap .row-actions {
    gap: 6px;
  }

  .admin-page .table-wrap .row-actions button {
    width: 100%;
  }
}


/* Nuevo Ingreso visual language. Reingreso/Admin styles stay in the shared sections above. */

.nuevo-ingreso-page {
  color: #071529;
  background: #fbfdff;
}

.nuevo-ingreso-page main {
  display: block;
}

.nuevo-ingreso-page .page-shell {
  width: min(1240px, calc(100% - 48px));
  padding: 24px 0 48px;
}

.nuevo-ingreso-page .admissions-welcome {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: 68px;
  min-height: calc(100svh - 10px);
  padding: 80px 0 96px;
}

.nuevo-ingreso-page .welcome-copy {
  display: grid;
  justify-items: start;
  gap: 0;
}

.nuevo-ingreso-page .welcome-wordmark {
  display: inline-flex;
  align-items: center;
  margin: 0 0 38px;
  padding: 15px 22px;
  border-radius: 10px;
  background: #071529;
  box-shadow: none;
}

.nuevo-ingreso-page .welcome-wordmark img {
  width: 136px;
}

.nuevo-ingreso-page .welcome-kicker,
.nuevo-ingreso-page .section-marker {
  margin: 0;
  color: var(--blue-deep);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nuevo-ingreso-page .welcome-kicker {
  margin-bottom: 20px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
}

.nuevo-ingreso-page .admissions-welcome h1 {
  max-width: 620px;
  margin-bottom: 26px;
  font-size: clamp(3.35rem, 4.5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.nuevo-ingreso-page .admissions-welcome .lead {
  max-width: 550px;
  margin-bottom: 36px;
  color: #526178;
  font-size: 1.08rem;
  line-height: 1.8;
}

.nuevo-ingreso-page .welcome-copy .primary-button {
  min-width: 0;
  min-height: auto;
  padding: 0 0 8px;
  border-bottom: 2px solid currentColor;
  border-radius: 0;
  color: var(--blue-deep);
  background: transparent;
  box-shadow: none;
  font-size: 0.96rem;
}

.nuevo-ingreso-page .welcome-copy .primary-button:hover {
  transform: translateX(4px);
  box-shadow: none;
}

.nuevo-ingreso-page .welcome-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #e8f4ff;
  height: auto;
  min-height: 0;
  aspect-ratio: 1.28 / 1;
  border-radius: 0 54px 54px 0;
}

.nuevo-ingreso-page .welcome-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 30%);
}

.nuevo-ingreso-page .welcome-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 0;
  object-position: 58% center;
}

.nuevo-ingreso-page .admissions-intro {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.64fr);
  gap: 64px;
  padding: 112px 0 48px;
  border-top: 0;
  border-bottom: 1px solid rgba(6, 22, 50, 0.1);
}

.nuevo-ingreso-page .admissions-intro h2 {
  max-width: 720px;
  margin-top: 16px;
  font-size: clamp(2.65rem, 4vw, 3.65rem);
  line-height: 1.06;
}

.nuevo-ingreso-page .admissions-intro > p {
  max-width: 380px;
  margin: 0 0 4px;
  color: #65748a;
  font-size: 0.96rem;
  line-height: 1.75;
  font-weight: 600;
}

.nuevo-ingreso-page .admissions-process {
  display: grid;
  align-items: start;
  grid-template-columns: 192px minmax(0, 1fr);
  gap: 64px;
  padding-top: 34px;
}

.nuevo-ingreso-page .admissions-flow {
  display: grid;
  gap: 0;
}

.nuevo-ingreso-page .journey-rail {
  position: sticky;
  display: grid;
  top: 26px;
  gap: 12px;
  padding: 24px 0 0 20px;
  border-left: 1px solid rgba(6, 22, 50, 0.12);
}

.nuevo-ingreso-page .journey-rail a {
  display: grid;
  align-items: center;
  text-decoration: none;
  grid-template-columns: 32px 1fr;
  gap: 9px;
  min-height: 50px;
  color: #6a778b;
  font-size: 0.8rem;
  font-weight: 700;
}

.nuevo-ingreso-page .journey-rail span {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
  width: 30px;
  height: 30px;
  border-color: rgba(0, 63, 184, 0.2);
  color: var(--blue-deep);
  background: #fff;
  font-size: 0.66rem;
}

.nuevo-ingreso-page .admission-scene {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  padding: 82px 0 96px;
  border-top: 1px solid rgba(6, 22, 50, 0.1);
}

.nuevo-ingreso-page .admission-scene:last-child {
  border-bottom: 1px solid rgba(6, 22, 50, 0.1);
}

.nuevo-ingreso-page .scene-heading {
  display: grid;
  align-content: start;
  gap: 16px;
}

.nuevo-ingreso-page .scene-heading > span {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
  width: 38px;
  height: 38px;
  border-color: rgba(0, 63, 184, 0.2);
  background: transparent;
  font-size: 0.72rem;
}

.nuevo-ingreso-page .scene-heading p {
  margin-bottom: 10px;
  color: #7a8799;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.nuevo-ingreso-page .scene-heading h3 {
  margin: 0;
  color: #071529;
  font-weight: 900;
  max-width: 370px;
  font-size: clamp(1.95rem, 2.8vw, 2.7rem);
  line-height: 1.08;
}

.nuevo-ingreso-page .scene-fields {
  display: grid;
  gap: 26px;
}

.nuevo-ingreso-page .scene-intro {
  max-width: 560px;
  margin: 0 0 4px;
  color: #65748a;
  font-size: 0.98rem;
  line-height: 1.75;
}

.nuevo-ingreso-page label {
  gap: 10px;
  color: #526178;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.nuevo-ingreso-page .form-grid {
  gap: 30px;
}

.nuevo-ingreso-page input,
.nuevo-ingreso-page select {
  min-height: 58px;
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(6, 22, 50, 0.18);
  border-radius: 0;
  color: #071529;
  background: transparent;
  box-shadow: none;
}

.nuevo-ingreso-page input::placeholder {
  color: #a1adbc;
}

.nuevo-ingreso-page input:focus,
.nuevo-ingreso-page select:focus {
  border-color: var(--blue-deep);
  box-shadow: none;
}

.nuevo-ingreso-page .inline-fieldset {
  gap: 16px;
  padding: 4px 0 0;
}

.nuevo-ingreso-page .inline-fieldset legend {
  margin-bottom: 2px;
  color: #526178;
  font-size: 0.82rem;
  font-weight: 700;
}

.nuevo-ingreso-page .radio-row {
  min-height: 38px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #071529;
  background: transparent;
  font-weight: 700;
}

.nuevo-ingreso-page .booking-copy {
  display: grid;
  gap: 6px;
  grid-column: 2;
  max-width: 620px;
  margin: 0;
}

.nuevo-ingreso-page .booking-copy strong {
  color: #071529;
  font-size: 1.12rem;
}

.nuevo-ingreso-page .booking-copy p,
.nuevo-ingreso-page .confirmation-copy p {
  color: #65748a;
  font-size: 0.98rem;
  line-height: 1.75;
  font-weight: 600;
}

.nuevo-ingreso-page .booking-stage {
  grid-column: 1 / -1;
  margin-top: 18px;
}

.nuevo-ingreso-page .appointment-picker {
  grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
  align-items: stretch;
  gap: 48px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.nuevo-ingreso-page .appointment-calendar-card,
.nuevo-ingreso-page .appointment-times-panel {
  border: 0;
  border-top: 1px solid rgba(6, 22, 50, 0.12);
  border-bottom: 1px solid rgba(6, 22, 50, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nuevo-ingreso-page .appointment-calendar-card {
  padding: 32px 0 36px;
}

.nuevo-ingreso-page .appointment-calendar-header {
  grid-template-columns: 42px 1fr 42px;
  margin-bottom: 28px;
}

.nuevo-ingreso-page .appointment-calendar-header strong {
  color: #071529;
  font-size: 1.28rem;
  text-transform: none;
}

.nuevo-ingreso-page .appointment-calendar-header button {
  border: 0;
  color: var(--blue-deep);
  background: transparent;
}

.nuevo-ingreso-page .appointment-weekdays,
.nuevo-ingreso-page .appointment-calendar-grid {
  gap: 10px;
}

.nuevo-ingreso-page .appointment-weekdays {
  margin-bottom: 14px;
  color: #8793a3;
  font-size: 0.72rem;
}

.nuevo-ingreso-page .appointment-calendar-day {
  border-radius: 50%;
  color: #526178;
  background: transparent;
  font-size: 0.95rem;
}

.nuevo-ingreso-page .appointment-calendar-day.available {
  color: var(--blue-deep);
  background: #f2f9ff;
}

.nuevo-ingreso-page .appointment-calendar-day.active {
  color: #fff;
  background: var(--blue-deep);
  box-shadow: 0 12px 24px rgba(0, 63, 184, 0.18);
}

.nuevo-ingreso-page .appointment-times-panel {
  display: grid;
  align-content: start;
  gap: 22px;
  padding: 32px 0 36px 42px;
  border-top: 0;
  border-bottom: 0;
  border-left: 1px solid rgba(6, 22, 50, 0.12);
}

.nuevo-ingreso-page .appointment-time-header {
  gap: 8px;
  padding-bottom: 8px;
}

.nuevo-ingreso-page .appointment-time-header span {
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

.nuevo-ingreso-page .appointment-time-header strong {
  color: #071529;
  font-size: 1.18rem;
  text-transform: none;
}

.nuevo-ingreso-page .appointment-time-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.nuevo-ingreso-page .appointment-time-group {
  gap: 12px;
}

.nuevo-ingreso-page .appointment-time-group h3 {
  color: #7a8799;
  font-size: 0.78rem;
  font-weight: 800;
}

.nuevo-ingreso-page .appointment-time-card span {
  min-height: 48px;
  border: 1px solid rgba(6, 22, 50, 0.14);
  border-radius: 12px;
  color: #071529;
  background: #fff;
}

.nuevo-ingreso-page .appointment-time-card input:checked + span {
  border-color: var(--blue-deep);
  color: #fff;
  background: var(--blue-deep);
  box-shadow: 0 10px 22px rgba(0, 63, 184, 0.14);
}

.nuevo-ingreso-page .interview-summary {
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid rgba(0, 63, 184, 0.2);
  border-radius: 0;
  background: transparent;
}

.nuevo-ingreso-page .appointment-empty-selection {
  align-self: start;
  padding: 32px 0;
  border: 0;
  border-top: 1px solid rgba(6, 22, 50, 0.12);
  border-bottom: 1px solid rgba(6, 22, 50, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nuevo-ingreso-page .confirmation-scene {
  align-items: center;
  padding-top: 96px;
}

.nuevo-ingreso-page .confirmation-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.nuevo-ingreso-page .confirmation-kicker {
  color: var(--blue-deep);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nuevo-ingreso-page .confirmation-copy .primary-button {
  min-width: 168px;
}

.nuevo-ingreso-page .optional-field > span {
  color: #7a8799;
}

.nuevo-ingreso-page .result-card.success .reservation-summary {
  grid-template-columns: minmax(220px, 1.35fr) repeat(2, minmax(150px, 0.8fr)) minmax(180px, 0.85fr);
}

.nuevo-ingreso-page .result-card.success .student-summary strong {
  font-size: 1.25rem;
}

.nuevo-ingreso-page .result-card.success .code-summary {
  border-style: dashed;
  background: transparent;
}

.nuevo-ingreso-page .result-card.success .code-summary strong {
  color: #526178;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
}

.nuevo-ingreso-page .action-stack {
  display: grid;
  justify-items: start;
  gap: 7px;
}

.nuevo-ingreso-page .action-stack small {
  max-width: 250px;
  color: #65748a;
  font-size: 0.76rem;
  line-height: 1.4;
}

@media (max-width: 980px) {
  .nuevo-ingreso-page .result-card.success .reservation-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nuevo-ingreso-page .page-shell {
    width: min(100% - 32px, 760px);
  }

  .nuevo-ingreso-page .admissions-welcome,
  .nuevo-ingreso-page .admissions-intro,
  .nuevo-ingreso-page .admissions-process,
  .nuevo-ingreso-page .admission-scene {
    grid-template-columns: 1fr;
  }

  .nuevo-ingreso-page .admissions-welcome {
    gap: 56px;
    min-height: auto;
    padding: 48px 0 72px;
  }

  .nuevo-ingreso-page .welcome-photo {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1.35 / 1;
    border-radius: 0 40px 40px 0;
  }

  .nuevo-ingreso-page .welcome-photo img {
    min-height: 0;
  }

  .nuevo-ingreso-page .admissions-intro {
    gap: 26px;
    padding: 78px 0 36px;
  }

  .nuevo-ingreso-page .admissions-process {
    gap: 28px;
    padding-top: 26px;
  }

  .nuevo-ingreso-page .journey-rail {
    position: static;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
    border-left: 0;
    border-bottom: 1px solid rgba(6, 22, 50, 0.12);
  }

  .nuevo-ingreso-page .journey-rail a {
    grid-template-columns: 1fr;
    justify-items: start;
    min-width: 112px;
    min-height: auto;
    padding: 0 10px 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
  }

  .nuevo-ingreso-page .admission-scene {
    gap: 28px;
    padding: 62px 0 72px;
  }

  .nuevo-ingreso-page .booking-copy {
    grid-column: auto;
  }

  .nuevo-ingreso-page .appointment-picker {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nuevo-ingreso-page .appointment-times-panel {
    padding: 28px 0 34px;
    border-top: 1px solid rgba(6, 22, 50, 0.12);
    border-bottom: 1px solid rgba(6, 22, 50, 0.12);
    border-left: 0;
  }
}

@media (max-width: 640px) {
  .nuevo-ingreso-page .page-shell {
    width: min(100% - 20px, 560px);
    padding-top: 12px;
  }

  .nuevo-ingreso-page .admissions-welcome {
    gap: 38px;
    padding: 32px 0 58px;
  }

  .nuevo-ingreso-page .welcome-wordmark {
    margin-bottom: 30px;
  }

  .nuevo-ingreso-page .welcome-wordmark img {
    width: 118px;
  }

  .nuevo-ingreso-page .admissions-welcome h1 {
    font-size: 2.8rem;
    line-height: 1.04;
  }

  .nuevo-ingreso-page .admissions-welcome .lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .nuevo-ingreso-page .welcome-photo {
    aspect-ratio: 1.2 / 1;
    border-radius: 0 28px 28px 0;
  }

  .nuevo-ingreso-page .admissions-intro {
    padding: 60px 0 30px;
  }

  .nuevo-ingreso-page .admissions-intro h2 {
    font-size: 2.35rem;
  }

  .nuevo-ingreso-page .admission-scene {
    gap: 24px;
    padding: 52px 0 60px;
  }

  .nuevo-ingreso-page .scene-heading h3 {
    font-size: 1.85rem;
  }

  .nuevo-ingreso-page .scene-fields,
  .nuevo-ingreso-page .form-grid {
    gap: 20px;
  }

  .nuevo-ingreso-page .appointment-calendar-card,
  .nuevo-ingreso-page .appointment-times-panel {
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .nuevo-ingreso-page .appointment-weekdays,
  .nuevo-ingreso-page .appointment-calendar-grid {
    gap: 4px;
  }

  .nuevo-ingreso-page .appointment-calendar-day {
    font-size: 0.82rem;
  }

  .nuevo-ingreso-page .appointment-time-grid {
    grid-template-columns: 1fr;
  }

  .nuevo-ingreso-page .confirmation-scene {
    padding-top: 76px;
  }

  .nuevo-ingreso-page .result-card.success .reservation-summary {
    grid-template-columns: 1fr;
  }

  .nuevo-ingreso-page .action-stack {
    width: 100%;
  }

  .nuevo-ingreso-page .action-stack .secondary-button {
    width: 100%;
  }
}

/* Nuevo Ingreso V3: final cascade for the single-scene onboarding flow. */

.nuevo-ingreso-page {
  background: #f5f8fc;
}

.nuevo-ingreso-page .admissions-welcome {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  align-items: center;
  gap: 64px;
  min-height: calc(100svh - 48px);
  margin: 0;
  padding: 72px;
  border-radius: 32px;
  color: #fff;
  background: #071529;
}

.nuevo-ingreso-page .welcome-copy,
.nuevo-ingreso-page .welcome-photo {
  position: relative;
  z-index: 1;
}

.nuevo-ingreso-page .welcome-wordmark {
  margin-bottom: 32px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.nuevo-ingreso-page .welcome-kicker {
  color: #8ed7ff;
}

.nuevo-ingreso-page .admissions-welcome h1 {
  max-width: 600px;
  margin-bottom: 24px;
  color: #fff;
  font-size: 4.35rem;
  line-height: 0.99;
}

.nuevo-ingreso-page .admissions-welcome .lead {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.76);
}

.nuevo-ingreso-page .welcome-copy .primary-button {
  min-width: 0;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  color: #071529;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  font-weight: 900;
}

.nuevo-ingreso-page .welcome-copy .primary-button:hover {
  transform: translateY(-2px);
}

.nuevo-ingreso-page .welcome-photo {
  width: 100%;
  aspect-ratio: 1.08 / 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  background: #0c2c58;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.22);
}

.nuevo-ingreso-page .welcome-photo img {
  object-position: 58% center;
}

.nuevo-ingreso-page .onboarding-shell {
  width: min(940px, calc(100% - 32px));
  min-height: calc(100svh - 18px);
  margin: 18px auto 0;
  padding: 24px 0 56px;
  scroll-margin-top: 16px;
}

.nuevo-ingreso-page .onboarding-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(150px, 0.7fr) minmax(360px, 1.3fr);
  align-items: center;
  gap: 20px;
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid rgba(6, 22, 50, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 38px rgba(7, 21, 41, 0.08);
}

.nuevo-ingreso-page .onboarding-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #071529;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.nuevo-ingreso-page .onboarding-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.nuevo-ingreso-page .onboarding-progress-meta {
  display: grid;
  gap: 2px;
  color: #526178;
  font-size: 0.76rem;
  line-height: 1.25;
}

.nuevo-ingreso-page .onboarding-progress-meta strong {
  color: #071529;
  font-size: 0.8rem;
}

.nuevo-ingreso-page .onboarding-progress {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nuevo-ingreso-page .progress-step {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 48px;
  color: #8793a3;
  font-size: 0.62rem;
  font-weight: 800;
  white-space: nowrap;
}

.nuevo-ingreso-page .progress-step i {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(6, 22, 50, 0.16);
  border-radius: 50%;
  color: #8793a3;
  background: #fff;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 900;
}

.nuevo-ingreso-page .progress-step.is-active {
  color: var(--blue-deep);
}

.nuevo-ingreso-page .progress-step.is-active i {
  border-color: var(--blue-deep);
  color: #fff;
  background: var(--blue-deep);
}

.nuevo-ingreso-page .progress-step.is-complete i {
  border-color: #16885a;
  color: #fff;
  background: #16885a;
  font-size: 0;
}

.nuevo-ingreso-page .progress-step.is-complete i::after {
  content: "✓";
  font-size: 0.75rem;
}

.nuevo-ingreso-page .progress-line {
  flex: 1;
  height: 1px;
  min-width: 12px;
  background: rgba(6, 22, 50, 0.14);
}

.nuevo-ingreso-page .progress-line.is-complete {
  background: #16885a;
}

.nuevo-ingreso-page .admissions-flow {
  display: block;
  margin-top: 18px;
}

.nuevo-ingreso-page .admission-scene {
  display: none;
  grid-template-columns: 1fr;
  gap: 28px;
  min-height: calc(100svh - 150px);
  padding: 68px 72px 52px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 21, 41, 0.06);
}

.nuevo-ingreso-page .admission-scene[hidden] {
  display: none !important;
}

.nuevo-ingreso-page .admission-scene.is-active {
  display: grid;
  animation: onboarding-scene-in 180ms ease-out both;
}

.nuevo-ingreso-page .scene-heading {
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.nuevo-ingreso-page .scene-heading > span {
  width: 32px;
  height: 32px;
  color: var(--blue-deep);
  background: #eef7ff;
}

.nuevo-ingreso-page .scene-heading p {
  margin-bottom: 8px;
  color: var(--blue-deep);
  font-size: 0.68rem;
}

.nuevo-ingreso-page .scene-heading h3 {
  max-width: 600px;
  font-size: 2.7rem;
  line-height: 1.04;
}

.nuevo-ingreso-page .scene-fields {
  width: min(100%, 650px);
  margin: 0 auto;
  gap: 20px;
}

.nuevo-ingreso-page .scene-intro {
  max-width: 540px;
  margin: 0 auto 4px;
  text-align: center;
}

.nuevo-ingreso-page .scene-fields > label:not(.choice-field),
.nuevo-ingreso-page .scene-fields > .form-grid,
.nuevo-ingreso-page .scene-fields > .inline-fieldset {
  width: 100%;
}

.nuevo-ingreso-page .choice-field {
  display: grid;
  gap: 12px;
}

.nuevo-ingreso-page .choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.nuevo-ingreso-page .source-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nuevo-ingreso-page .choice-card {
  min-height: 54px;
  padding: 10px 12px;
  border: 1px solid rgba(6, 22, 50, 0.14);
  border-radius: 14px;
  color: #526178;
  background: #fff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.nuevo-ingreso-page .choice-card:hover {
  border-color: rgba(0, 63, 184, 0.5);
  transform: translateY(-1px);
}

.nuevo-ingreso-page .choice-card.is-selected {
  border-color: var(--blue-deep);
  color: #fff;
  background: var(--blue-deep);
}

.nuevo-ingreso-page .choice-grid.is-invalid {
  padding: 6px;
  border: 1px solid #b73535;
  border-radius: 16px;
}

.nuevo-ingreso-page .choice-source {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  opacity: 0;
}

.nuevo-ingreso-page .choice-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.nuevo-ingreso-page .choice-fieldset legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

/* Admissions confirmation support: private information stays in the flow and never in public receipts. */
.nuevo-ingreso-page .student-support-fieldset {
  row-gap: 12px;
}

.nuevo-ingreso-page .student-support-fieldset .field-support-copy {
  grid-column: 1 / -1;
  margin: -2px 0 2px;
  color: #65748a;
  font-size: 0.9rem;
  line-height: 1.55;
}

.nuevo-ingreso-page #condicion-detalle-row textarea {
  min-height: 130px;
  resize: vertical;
}

.nuevo-ingreso-page .character-counter {
  display: block;
  margin-top: 7px;
  color: #738096;
  font-size: 0.78rem;
  text-align: right;
}

.nuevo-ingreso-page .receipt-email-status,
.reingreso-page .receipt-email-status {
  margin: 18px 0 0;
  color: #65748a;
  font-size: 0.88rem;
  line-height: 1.5;
}

.nuevo-ingreso-page .receipt-email-status[data-email-state="sent"],
.reingreso-page .receipt-email-status[data-email-state="sent"] {
  color: #176b48;
}

.nuevo-ingreso-page .receipt-email-status[data-email-state="error"],
.reingreso-page .receipt-email-status[data-email-state="error"] {
  color: #8a5a12;
}

.reingreso-page .reingreso-scene > label .form-helper {
  display: block;
  margin-top: 7px;
  font-size: 0.8rem;
  line-height: 1.45;
}

.admin-page .admin-private-detail {
  margin-top: 8px;
  border: 1px solid #d9e3f0;
  border-radius: 6px;
  background: #f8fbff;
}

.admin-page .admin-private-detail summary {
  padding: 7px 9px;
  color: #153f82;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.admin-page .admin-private-detail p {
  margin: 0;
  padding: 0 9px 9px;
  color: #334155;
  font-size: 0.8rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.nuevo-ingreso-page .choice-option {
  position: relative;
  display: block;
  min-height: 54px;
  padding: 0;
}

.nuevo-ingreso-page .choice-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.nuevo-ingreso-page .choice-option span {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 54px;
  border: 1px solid rgba(6, 22, 50, 0.14);
  border-radius: 14px;
  color: #526178;
  background: #fff;
  font-weight: 900;
}

.nuevo-ingreso-page .choice-option input:checked + span {
  border-color: var(--blue-deep);
  color: #fff;
  background: var(--blue-deep);
}

.nuevo-ingreso-page .scene-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 650px);
  margin: auto auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(6, 22, 50, 0.08);
}

.nuevo-ingreso-page .scene-actions .primary-button,
.nuevo-ingreso-page .scene-actions .secondary-button {
  min-width: 132px;
  min-height: 46px;
}

.nuevo-ingreso-page .scene-actions .primary-button {
  color: #fff;
  background: var(--blue-deep);
}

.nuevo-ingreso-page .scene-actions .secondary-button {
  color: #526178;
  background: #f5f8fc;
}

.nuevo-ingreso-page .scene-feedback {
  color: #16885a;
  font-size: 0.78rem;
  font-weight: 900;
}

.nuevo-ingreso-page .interview-scene .booking-copy,
.nuevo-ingreso-page .interview-scene .booking-stage {
  grid-column: auto;
  width: 100%;
  max-width: none;
}

.nuevo-ingreso-page .interview-scene .booking-copy {
  text-align: center;
}

.nuevo-ingreso-page .interview-scene .booking-copy p {
  max-width: 560px;
  margin: 0 auto;
}

.nuevo-ingreso-page .interview-scene .appointment-picker {
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 32px;
}

.nuevo-ingreso-page .confirmation-scene .confirmation-copy {
  width: min(100%, 560px);
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 980px) {
  .nuevo-ingreso-page .admissions-welcome {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .nuevo-ingreso-page .welcome-photo {
    width: min(100%, 680px);
    margin: 0 auto;
  }

  .nuevo-ingreso-page .onboarding-header {
    grid-template-columns: auto 1fr;
  }

  .nuevo-ingreso-page .onboarding-progress {
    grid-column: 1 / -1;
  }

  .nuevo-ingreso-page .admission-scene {
    min-height: calc(100svh - 210px);
  }
}

@media (max-width: 640px) {
  .nuevo-ingreso-page .admissions-welcome {
    gap: 28px;
    padding: 30px 22px 34px;
    border-radius: 24px;
  }

  .nuevo-ingreso-page .welcome-photo {
    order: -1;
    aspect-ratio: 1.35 / 1;
  }

  .nuevo-ingreso-page .admissions-welcome h1 {
    margin-bottom: 18px;
    font-size: 2.55rem;
  }

  .nuevo-ingreso-page .admissions-welcome .lead {
    margin-bottom: 24px;
    line-height: 1.6;
  }

  .nuevo-ingreso-page .onboarding-shell {
    width: min(100% - 20px, 560px);
    padding-top: 12px;
  }

  .nuevo-ingreso-page .onboarding-header {
    top: 8px;
    gap: 10px;
    padding: 10px;
  }

  .nuevo-ingreso-page .onboarding-brand span {
    display: none;
  }

  .nuevo-ingreso-page .onboarding-progress-meta {
    justify-items: end;
  }

  .nuevo-ingreso-page .onboarding-progress {
    gap: 2px;
  }

  .nuevo-ingreso-page .progress-step {
    min-width: 38px;
  }

  .nuevo-ingreso-page .progress-step small {
    max-width: 54px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nuevo-ingreso-page .progress-line {
    min-width: 4px;
  }

  .nuevo-ingreso-page .admission-scene {
    min-height: calc(100svh - 184px);
    padding: 34px 18px 28px;
    border-radius: 22px;
  }

  .nuevo-ingreso-page .scene-heading h3 {
    font-size: 2rem;
  }

  .nuevo-ingreso-page .choice-grid,
  .nuevo-ingreso-page .source-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nuevo-ingreso-page .scene-actions {
    align-items: stretch;
  }

  .nuevo-ingreso-page .scene-actions .primary-button,
.nuevo-ingreso-page .scene-actions .secondary-button {
    min-width: 0;
    flex: 1;
  }
}

/* Nuevo Ingreso V3.1: controlled UX polish. */

.nuevo-ingreso-page .booking-note {
  display: block;
  margin-top: 2px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.nuevo-ingreso-page .appointment-calendar-card {
  padding-top: 24px;
  padding-bottom: 28px;
}

.nuevo-ingreso-page .appointment-calendar-header strong,
.nuevo-ingreso-page .appointment-time-header strong,
.nuevo-ingreso-page .interview-summary strong {
  text-transform: none;
}

.nuevo-ingreso-page .appointment-calendar-header {
  margin-bottom: 20px;
}

.nuevo-ingreso-page .appointment-weekdays,
.nuevo-ingreso-page .appointment-calendar-grid {
  gap: 8px;
}

.nuevo-ingreso-page .appointment-calendar-day {
  font-size: 0.88rem;
}

.nuevo-ingreso-page .appointment-times-panel {
  gap: 18px;
  padding: 24px 0 28px 30px;
}

.nuevo-ingreso-page .appointment-time-card span {
  min-height: 44px;
}

.nuevo-ingreso-page .result-heading .result-check {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 50%;
  color: #16885a;
  background: #e7f7ef;
  font-size: 1.5rem;
  letter-spacing: 0;
  text-transform: none;
  animation: confirmation-check-in 360ms ease-out both;
}

@keyframes confirmation-check-in {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  .nuevo-ingreso-page .appointment-times-panel {
    padding: 24px 0 28px;
  }
}

@media (max-width: 640px) {
  .nuevo-ingreso-page .appointment-calendar-card {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .nuevo-ingreso-page .appointment-times-panel {
    padding: 20px 0 24px;
  }
}

/* Nuevo Ingreso V3.2: keep confirmation inside the onboarding language. */

.nuevo-ingreso-page .result-panel {
  width: min(940px, calc(100% - 32px));
  margin: 18px auto 0;
}

.nuevo-ingreso-page .result-card.success {
  gap: 28px;
  padding: 68px 72px 52px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 21, 41, 0.06);
  animation: confirmation-panel-in 420ms ease-out both;
}

.nuevo-ingreso-page .result-card.success .result-heading {
  gap: 12px;
}

.nuevo-ingreso-page .result-card.success .result-heading > span:not(.result-check),
.nuevo-ingreso-page .result-card.success .result-heading h2,
.nuevo-ingreso-page .result-card.success .result-heading p {
  animation: confirmation-copy-in 360ms ease-out 80ms both;
}

.nuevo-ingreso-page .result-card.success .result-heading h2 {
  max-width: 660px;
  color: #071529;
  font-size: 2.7rem;
  line-height: 1.04;
}

.nuevo-ingreso-page .result-card.success .result-heading p {
  max-width: 560px;
}

.nuevo-ingreso-page .result-card.success .reservation-summary {
  gap: 10px;
}

@keyframes confirmation-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes confirmation-copy-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .nuevo-ingreso-page .result-panel {
    width: min(100% - 20px, 560px);
  }

  .nuevo-ingreso-page .result-card.success {
    gap: 22px;
    padding: 42px 22px 30px;
    border-radius: 22px;
  }

  .nuevo-ingreso-page .result-card.success .result-heading h2 {
    font-size: 2rem;
  }
}

/* Nuevo Ingreso V3.3: final campaign art direction. */

.nuevo-ingreso-page .admissions-welcome {
  display: flex;
  align-items: center;
  aspect-ratio: 1420 / 760;
  min-height: 0;
  padding: 72px 82px;
  border-radius: 32px;
  background: #071529;
}

.nuevo-ingreso-page .admissions-welcome::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(7, 21, 41, 0.16);
}

.nuevo-ingreso-page .admissions-welcome::after {
  display: none;
}

.nuevo-ingreso-page .welcome-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
}

.nuevo-ingreso-page .welcome-photo::before {
  display: none;
}

.nuevo-ingreso-page .welcome-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.nuevo-ingreso-page .welcome-copy {
  z-index: 2;
  width: min(52%, 620px);
  color: #fff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.nuevo-ingreso-page .welcome-wordmark {
  display: block;
  width: max-content;
  margin-bottom: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.nuevo-ingreso-page .welcome-wordmark img {
  display: block;
  width: 150px;
}

.nuevo-ingreso-page .admissions-welcome h1 {
  max-width: 620px;
  margin-bottom: 24px;
  color: #fff;
  font-size: 4.35rem;
  line-height: 0.99;
}

.nuevo-ingreso-page .admissions-welcome .lead {
  max-width: 510px;
  color: rgba(255, 255, 255, 0.84);
}

.nuevo-ingreso-page .welcome-copy .primary-button {
  text-shadow: none;
}

.nuevo-ingreso-page .onboarding-shell,
.nuevo-ingreso-page .result-panel {
  width: min(1100px, calc(100% - 48px));
}

.nuevo-ingreso-page .onboarding-shell {
  margin-top: 10px;
}

.nuevo-ingreso-page .onboarding-header {
  grid-template-columns: minmax(170px, 0.5fr) minmax(0, 1.5fr);
  min-height: 76px;
  padding: 14px 20px;
}

.nuevo-ingreso-page .onboarding-progress-meta {
  align-content: center;
}

.nuevo-ingreso-page .onboarding-progress {
  grid-column: auto;
}

.nuevo-ingreso-page .onboarding-brand img {
  width: 36px;
  height: 36px;
}

.nuevo-ingreso-page .progress-step {
  min-width: 56px;
  font-size: 0.68rem;
}

.nuevo-ingreso-page .progress-step i {
  width: 28px;
  height: 28px;
  font-size: 0.72rem;
}

.nuevo-ingreso-page .progress-step.is-complete i::after {
  font-size: 0.82rem;
}

.nuevo-ingreso-page .admission-scene {
  padding: 72px 112px 56px;
}

.nuevo-ingreso-page .scene-heading h3 {
  font-size: 2.9rem;
}

.nuevo-ingreso-page .scene-fields,
.nuevo-ingreso-page .scene-actions {
  width: min(100%, 760px);
}

.nuevo-ingreso-page .scene-fields {
  gap: 24px;
}

.nuevo-ingreso-page label,
.nuevo-ingreso-page .choice-fieldset legend {
  font-size: 0.86rem;
}

.nuevo-ingreso-page .result-panel {
  margin-top: 10px;
}

.nuevo-ingreso-page .result-card.success {
  padding-right: 112px;
  padding-left: 112px;
}

@media (max-width: 980px) {
  .nuevo-ingreso-page .admissions-welcome {
    aspect-ratio: auto;
    min-height: 620px;
    padding: 64px;
  }

  .nuevo-ingreso-page .welcome-copy {
    width: min(100%, 620px);
  }

  .nuevo-ingreso-page .onboarding-header {
    grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1.5fr);
  }

  .nuevo-ingreso-page .onboarding-progress {
    grid-column: auto;
  }

  .nuevo-ingreso-page .onboarding-shell,
  .nuevo-ingreso-page .result-panel {
    width: min(100% - 32px, 900px);
  }

  .nuevo-ingreso-page .admission-scene {
    padding: 62px 72px 52px;
  }

  .nuevo-ingreso-page .scene-fields,
  .nuevo-ingreso-page .scene-actions {
    width: min(100%, 720px);
  }

  .nuevo-ingreso-page .result-card.success {
    padding-right: 72px;
    padding-left: 72px;
  }
}

@media (max-width: 640px) {
  .nuevo-ingreso-page .admissions-welcome {
    align-items: flex-start;
    height: clamp(488px, calc(100svh - 80px), 520px);
    min-height: 0;
    padding: 24px 22px 28px;
    border-radius: 24px;
  }

  .nuevo-ingreso-page .admissions-welcome::before {
    background: linear-gradient(
      90deg,
      rgba(7, 21, 41, 0.92) 0%,
      rgba(7, 21, 41, 0.76) 44%,
      rgba(7, 21, 41, 0.24) 70%,
      rgba(7, 21, 41, 0.08) 100%
    );
  }

  .nuevo-ingreso-page .welcome-photo img {
    object-fit: cover;
    object-position: 70% center;
  }

  .nuevo-ingreso-page .welcome-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: 100%;
  }

  .nuevo-ingreso-page .welcome-wordmark {
    margin-bottom: 16px;
  }

  .nuevo-ingreso-page .welcome-wordmark img {
    width: 104px;
  }

  .nuevo-ingreso-page .welcome-kicker {
    margin-bottom: 10px;
  }

  .nuevo-ingreso-page .admissions-welcome h1 {
    max-width: 220px;
    margin-bottom: 14px;
    font-size: 2.08rem;
    line-height: 1.02;
  }

  .nuevo-ingreso-page .admissions-welcome .lead {
    max-width: 220px;
    margin-bottom: 0;
    font-size: 0.94rem;
  }

  .nuevo-ingreso-page .welcome-copy .primary-button {
    margin-top: 18px;
    min-height: 38px;
    padding-right: 16px;
    padding-left: 16px;
    font-size: 0.82rem;
  }

  .nuevo-ingreso-page .onboarding-shell,
  .nuevo-ingreso-page .result-panel {
    width: min(100% - 20px, 560px);
  }

  .nuevo-ingreso-page .onboarding-shell {
    margin-top: 8px;
    padding-top: 0;
  }

  .nuevo-ingreso-page .onboarding-header {
    grid-template-columns: 1fr;
    min-height: 68px;
    padding: 10px;
  }

  .nuevo-ingreso-page .onboarding-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    grid-column: 1;
  }

  .nuevo-ingreso-page .onboarding-progress {
    grid-column: 1;
    width: 100%;
  }

  .nuevo-ingreso-page .progress-step {
    min-width: 38px;
    font-size: 0.6rem;
  }

  .nuevo-ingreso-page .progress-step i {
    width: 24px;
    height: 24px;
    font-size: 0.66rem;
  }

  .nuevo-ingreso-page .admission-scene {
    padding: 34px 18px 28px;
  }

  .nuevo-ingreso-page .scene-heading h3 {
    font-size: 2rem;
  }

  .nuevo-ingreso-page .result-card.success {
    padding-right: 22px;
    padding-left: 22px;
  }
}

/* Reingreso layout alignment with the approved Nuevo Ingreso proportions. */

@media (min-width: 641px) {
  .reingreso-page main {
    display: block;
  }

  .reingreso-page .page-shell {
    width: min(1240px, calc(100% - 48px));
    padding: 24px 0 48px;
  }

  .reingreso-page .reingreso-welcome {
    height: auto;
    min-height: 0;
    aspect-ratio: 1420 / 760;
    padding: 72px 82px;
    border-radius: 32px;
  }

  .reingreso-page .reingreso-welcome-photo img {
    object-fit: contain;
    object-position: center;
  }

  .reingreso-page .reingreso-welcome-copy {
    width: min(52%, 620px);
  }

  .reingreso-page .reingreso-wordmark img {
    width: 150px;
  }

  .reingreso-page .reingreso-welcome h1 {
    max-width: 620px;
    font-size: 4.35rem;
    line-height: 0.99;
  }

  .reingreso-page .reingreso-welcome .lead {
    max-width: 510px;
  }

  .reingreso-page .reingreso-welcome .primary-button {
    min-height: 54px;
    padding: 0 18px;
  }

  .reingreso-page .reingreso-onboarding,
  .reingreso-page .result-panel {
    width: min(1100px, calc(100% - 48px));
    margin-top: 10px;
  }

  .reingreso-page .reingreso-onboarding {
    padding: 24px 0 56px;
  }

  .reingreso-page .reingreso-progress-header {
    top: 12px;
    grid-template-columns: minmax(170px, 0.5fr) minmax(0, 1.5fr);
    min-height: 76px;
    padding: 14px 20px;
  }

  .reingreso-page .reingreso-scene {
    display: grid;
    gap: 28px;
    min-height: calc(100svh - 150px);
    margin-top: 18px;
    padding: 72px 112px 56px;
    border: 0;
    border-radius: 28px;
  }

  .reingreso-page .reingreso-scene-heading {
    margin-bottom: 0;
  }

  .reingreso-page .reingreso-scene-heading h2 {
    font-size: 2.9rem;
    line-height: 1.04;
  }

  .reingreso-page .reingreso-scene > label,
  .reingreso-page .reingreso-grade-grid,
  .reingreso-page .reingreso-whatsapp-choice,
  .reingreso-page .reingreso-review,
  .reingreso-page .reingreso-payment-note,
  .reingreso-page .reingreso-scene-actions {
    width: min(100%, 760px);
  }

  .reingreso-page .reingreso-scene > label + label,
  .reingreso-page .reingreso-whatsapp-choice,
  .reingreso-page .reingreso-grade-grid,
  .reingreso-page .reingreso-scene-actions {
    margin-top: 0;
  }
}

@media (min-width: 641px) and (max-width: 980px) {
  .reingreso-page .page-shell {
    width: min(calc(100% - 32px), 760px);
  }

  .reingreso-page .reingreso-welcome {
    aspect-ratio: auto;
    min-height: 620px;
    padding: 64px;
  }

  .reingreso-page .reingreso-welcome-copy {
    width: min(100%, 620px);
  }

  .reingreso-page .reingreso-onboarding,
  .reingreso-page .result-panel {
    width: min(calc(100% - 32px), 900px);
  }

  .reingreso-page .reingreso-progress-header {
    grid-template-columns: minmax(150px, 0.5fr) minmax(0, 1.5fr);
  }

  .reingreso-page .reingreso-scene {
    min-height: calc(100svh - 210px);
    padding: 62px 72px 52px;
  }
}

/* Admin Nuevo Ingreso: grouped agenda and availability controls. */
.admin-page [data-tab-panel="nuevo-ingreso"] .filters {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
}

.admin-page [data-tab-panel="nuevo-ingreso"] .filters select,
.admin-page [data-tab-panel="nuevo-ingreso"] .filters input {
  width: 100%;
  min-width: 0;
  max-width: none;
  text-overflow: clip;
}

.admin-page [data-tab-panel="nuevo-ingreso"] .filters select {
  padding-right: 30px;
}

.admin-page .availability-choice-group {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.admin-page .availability-choice-group legend {
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
}

.admin-page .availability-choice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.admin-page .availability-choice-grid.hours {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-page .availability-choice-grid label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 6px 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-page .availability-choice-grid input {
  accent-color: var(--blue);
}

.admin-page .availability-preview {
  display: grid;
  gap: 3px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(0, 148, 239, 0.16);
  border-radius: 9px;
  background: #f7fbff;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.admin-page .availability-preview strong {
  color: var(--ink);
}

.admin-page .availability-preview-warning {
  color: #8a5b00;
}

.admin-page #nuevo-slots-body.admin-agenda {
  align-content: start;
  min-width: 0;
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
}

.admin-page #nuevo-slots-body .agenda-overview {
  margin-bottom: 12px;
}

.admin-page #nuevo-slots-body .agenda-day-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding: 0;
}

.admin-page #nuevo-slots-body .agenda-day-card {
  display: block;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(6, 22, 50, 0.1);
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
}

.admin-page #nuevo-slots-body .agenda-day-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 13px 15px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.admin-page #nuevo-slots-body .agenda-day-summary::-webkit-details-marker {
  display: none;
}

.admin-page #nuevo-slots-body .agenda-day-summary::after {
  flex: 0 0 auto;
  content: '+';
  color: var(--blue-deep);
  font-size: 1.25rem;
  font-weight: 500;
}

.admin-page #nuevo-slots-body .agenda-day-card[open] .agenda-day-summary::after {
  content: '−';
}

.admin-page .agenda-day-summary-main,
.admin-page .agenda-day-summary-side {
  display: flex;
  align-items: center;
  min-width: 0;
}

.admin-page .agenda-day-summary-main {
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.admin-page .agenda-day-summary-main strong {
  font-size: 0.95rem;
  line-height: 1.25;
}

.admin-page .agenda-day-summary-main span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.admin-page .agenda-day-summary-side {
  flex: 0 0 auto;
  gap: 8px;
}

.admin-page .agenda-day-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-page .agenda-day-status.open { color: #176b49; background: #e9f7ef; }
.admin-page .agenda-day-status.partial { color: #8a5b00; background: #fff5d8; }
.admin-page .agenda-day-status.reserved { color: #176b49; background: #e9f7ef; }
.admin-page .agenda-day-status.closed { color: #6d7482; background: #eef1f5; }

.admin-page .agenda-day-edit {
  color: var(--blue-deep);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-page .agenda-day-detail {
  display: grid;
  gap: 10px;
  padding: 0 15px 14px;
  border-top: 1px solid rgba(6, 22, 50, 0.08);
}

.admin-page .agenda-day-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 10px;
}

.admin-page .agenda-day-actions button,
.admin-page .agenda-more-button {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.73rem;
}

.admin-page .agenda-day-note {
  padding-top: 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.admin-page #nuevo-slots-body .admin-slot-list {
  display: grid;
  gap: 0;
}

.admin-page #nuevo-slots-body .admin-slot-chip {
  grid-template-columns: auto minmax(0, 1fr) minmax(130px, auto);
  padding: 10px 0;
  border-bottom: 1px solid rgba(6, 22, 50, 0.08);
}

.admin-page #nuevo-slots-body .admin-slot-chip:last-child {
  border-bottom: 0;
}

.admin-page #nuevo-slots-body .admin-slot-chip .slot-actions {
  min-width: 0;
}

.admin-page .agenda-more-button {
  width: 100%;
  margin-top: 10px;
  border: 1px solid rgba(0, 148, 239, 0.2);
  color: var(--blue-deep);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
}

.admin-page .agenda-past-days {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}

.admin-page .agenda-past-days > summary {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 2px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  list-style: none;
}

.admin-page .agenda-past-days > summary::-webkit-details-marker {
  display: none;
}

.admin-page .agenda-past-days > summary span {
  color: var(--blue-deep);
}

.admin-page .agenda-day-grid-past {
  padding-top: 4px;
}

@media (max-width: 1300px) and (min-width: 721px) {
  .admin-page [data-tab-panel="nuevo-ingreso"] .filters {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-page [data-tab-panel="nuevo-ingreso"] .filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-page .availability-choice-grid,
  .admin-page .availability-choice-grid.hours {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-page #nuevo-slots-body .agenda-day-summary {
    align-items: flex-start;
    min-height: 0;
    padding: 12px;
  }

  .admin-page .agenda-day-summary-side {
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
  }

  .admin-page .agenda-day-edit {
    font-size: 0.68rem;
  }

  .admin-page #nuevo-slots-body .admin-slot-chip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .admin-page #nuevo-slots-body .admin-slot-chip .slot-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    padding-left: 20px;
  }
}

/* Admin Nuevo Ingreso: safe availability drawer final pass. */
.admin-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-page #availability-configuration {
  display: grid;
  gap: 24px;
}

.admin-page .availability-step {
  display: grid;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(6, 22, 50, 0.09);
}

.admin-page .availability-step-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.admin-page .availability-step-heading > span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--blue-deep);
  background: #eaf5ff;
  font-size: 0.68rem;
  font-weight: 900;
}

.admin-page .availability-step-heading h3 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 0.92rem;
}

.admin-page .availability-step-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.admin-page .availability-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-left: 32px;
}

.admin-page .text-button {
  min-height: 28px;
  padding: 0;
  border: 0;
  color: var(--blue-deep);
  background: transparent;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.admin-page .text-button:hover {
  color: var(--blue);
}

.admin-page .text-button:focus-visible,
.admin-page .availability-choice-grid label:has(input:focus-visible) {
  outline: 3px solid rgba(0, 115, 230, 0.25);
  outline-offset: 2px;
}

.admin-page .availability-choice-grid {
  gap: 7px;
}

.admin-page .availability-choice-grid label {
  position: relative;
  min-height: 38px;
  border-color: rgba(6, 22, 50, 0.1);
  background: #fbfdff;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.admin-page .availability-choice-grid label:has(input:checked) {
  border-color: rgba(0, 115, 230, 0.34);
  color: var(--blue-deep);
  background: #eaf5ff;
}

.admin-page .availability-choice-grid input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.admin-page .availability-preview {
  gap: 7px;
  min-height: 0;
  padding: 14px;
  border-color: rgba(0, 115, 230, 0.13);
  border-radius: 12px;
  background: #f6fbff;
}

.admin-page .availability-preview-kicker {
  color: var(--blue-deep);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-page .availability-preview-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-page .availability-preview-counts span {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

.admin-page .availability-preview-counts b {
  color: var(--ink);
}

.admin-page .availability-confirmation {
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 100%;
  padding: 6px 0;
}

.admin-page .availability-confirmation h3 {
  margin: -6px 0 0;
  color: var(--ink);
  font-size: 1.15rem;
}

.admin-page .availability-confirmation p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.admin-page .availability-confirmation-summary,
.admin-page .agenda-action-summary {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 12px;
  color: var(--muted);
  background: #f6fbff;
  font-size: 0.78rem;
}

.admin-page .availability-confirmation-summary strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.admin-page .availability-confirmation-note,
.admin-page .agenda-action-note {
  padding-left: 12px;
  border-left: 2px solid #8ccfff;
}

.admin-page .agenda-action-dialog .admin-dialog-form {
  gap: 16px;
}

.admin-page .agenda-action-summary {
  color: var(--ink);
}

.admin-page .dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-page .agenda-context-menu button {
  display: flex;
  align-items: center;
  width: 100%;
}

@media (max-width: 720px) {
  .admin-page #availability-configuration {
    gap: 20px;
  }

  .admin-page .availability-step {
    gap: 11px;
    padding-bottom: 18px;
  }

  .admin-page .availability-quick-actions {
    margin-left: 0;
  }

  .admin-page .availability-choice-grid,
  .admin-page .availability-choice-grid.hours {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-page .availability-choice-grid label {
    min-height: 40px;
  }

  .admin-page .dialog-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* End-of-file override keeps the approved public form direction above legacy cascades. */
.reingreso-page .reingreso-welcome { position:relative; display:flex; align-items:center; min-height:clamp(330px,33vw,470px); height:auto; padding:clamp(34px,5vw,64px) clamp(28px,6vw,78px); overflow:hidden; border:0; border-radius:24px; color:#fff; background:#061a45; box-shadow:0 24px 70px rgba(0,48,145,.18); }
.reingreso-page .reingreso-welcome::before { content:""; position:absolute; inset:0; z-index:1; display:block; pointer-events:none; background:linear-gradient(90deg,rgba(2,12,40,.92) 0%,rgba(2,18,58,.72) 38%,rgba(3,32,91,.2) 70%,rgba(3,32,91,.05) 100%); }
.reingreso-page .reingreso-welcome-photo { position:absolute; inset:0; z-index:0; display:block; margin:0; }
.reingreso-page .reingreso-welcome-photo img { display:block; width:100%; height:100%; object-fit:cover; object-position:68% center; }
.reingreso-page .reingreso-welcome-copy { position:relative; z-index:2; display:block; width:min(58%,680px); text-shadow:0 10px 28px rgba(0,0,0,.24); }
.reingreso-page .reingreso-wordmark { width:max-content; margin-bottom:20px; padding:8px 10px; border:1px solid rgba(255,255,255,.2); border-radius:10px; background:rgba(255,255,255,.06); filter:drop-shadow(0 8px 18px rgba(0,0,0,.18)); }
.reingreso-page .reingreso-wordmark img { width:142px; height:auto; }
.reingreso-page .reingreso-kicker { margin:0 0 14px; color:#8ed7ff; font-size:.8rem; letter-spacing:.14em; text-transform:uppercase; }
.reingreso-page .reingreso-welcome h1,.reingreso-page .reingreso-welcome .lead,.reingreso-page .reingreso-welcome .primary-button { display:block; }
.reingreso-page .reingreso-welcome h1 { max-width:610px; margin:0 0 18px; color:#fff; font-size:clamp(2.8rem,5.2vw,5.5rem); line-height:.98; }
.reingreso-page .reingreso-welcome .lead { max-width:520px; margin:0 0 22px; color:rgba(255,255,255,.88); font-size:1rem; line-height:1.6; }
.reingreso-page .reingreso-welcome .primary-button { width:max-content; max-width:100%; }
.reingreso-page .reingreso-onboarding,.reingreso-page .result-panel { width:100%; margin:0; }
.reingreso-page .reingreso-progress-header { position:static; grid-template-columns:150px minmax(0,1fr); min-height:82px; padding:14px 22px; border:1px solid #dbe4ef; border-radius:16px; box-shadow:0 8px 24px rgba(7,29,73,.06); backdrop-filter:none; }
.reingreso-page .reingreso-progress { grid-template-columns:repeat(4,minmax(0,1fr)); }
.reingreso-page .reingreso-progress-step.is-active,.reingreso-page .reingreso-progress-step.is-complete { color:#0758c9; }
.reingreso-page .reingreso-progress-step.is-active i,.reingreso-page .reingreso-progress-step.is-complete i { border-color:#0758c9; background:#0758c9; }
.reingreso-page .reingreso-progress-step:not(:last-child)::after { background:#cbd8e8; }
.reingreso-page .reingreso-scene { min-height:0; margin-top:12px; padding:34px 42px 30px; border:1px solid #dbe4ef; border-radius:18px; box-shadow:0 10px 28px rgba(7,29,73,.06); animation:none; }
.reingreso-page .reingreso-scene-heading { gap:7px; max-width:760px; margin-bottom:24px; }
.reingreso-page .reingreso-scene-heading p { color:#0758c9; font-size:.68rem; letter-spacing:.11em; }
.reingreso-page .reingreso-scene-heading h2 { color:#0a2350; font-size:clamp(1.75rem,3.2vw,2.65rem); line-height:1.08; }
.reingreso-page .reingreso-scene-heading span { color:#687a95; font-size:.86rem; line-height:1.45; }
.reingreso-page .reingreso-scene > label,.reingreso-page .reingreso-grade-grid,.reingreso-page .reingreso-whatsapp-choice,.reingreso-page .reingreso-review,.reingreso-page .reingreso-payment-note,.reingreso-page .reingreso-scene-actions { width:100%; }
.reingreso-page label { color:#0a2350; font-size:.78rem; font-weight:800; }
.reingreso-page input,.reingreso-page select,.reingreso-page textarea { min-height:46px; border:1px solid #dbe4ef; border-radius:9px; color:#0a2350; background:#fff; font-size:.84rem; }
.reingreso-page textarea { min-height:82px; }
.reingreso-page .student-row { padding:16px; border:1px solid #dbe4ef; border-radius:12px; background:#fbfdff; }
.reingreso-page .choice-card { min-height:50px; padding:10px 12px; border-color:#dbe4ef; border-radius:9px; background:#fff; }
.reingreso-page .choice-card input { min-height:0; accent-color:#0758c9; }
.reingreso-page .choice-icon { width:24px; height:24px; flex:0 0 24px; color:#0758c9; fill:none; stroke:currentColor; stroke-width:1.55; stroke-linecap:round; stroke-linejoin:round; }
.reingreso-page .choice-card:has(input:checked) .choice-icon { color:#0758c9; }
.reingreso-page .choice-card small,.reingreso-page .form-helper,.reingreso-page .student-match-note { color:#687a95; font-size:.72rem; }
.nuevo-ingreso-page .choice-group:not(.compact) { grid-template-columns:repeat(2,minmax(0,1fr)); }
.reingreso-page .reingreso-payment-note { border:1px solid #cfe0f3; border-left:3px solid #f1a638; border-radius:10px; background:#f5f9ff; }

/* Beneficio de inscripción 2027 */
.reingreso-page .reingreso-promo-callout {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  width: 100%;
  margin: 16px 0 0;
  padding: 15px 17px;
  border: 1px solid rgba(0, 86, 191, .18);
  border-radius: 14px;
  background: linear-gradient(135deg, #edf6ff 0%, #f8fbff 58%, #fff8e8 100%);
  box-shadow: 0 10px 28px rgba(8, 55, 112, .07);
}

.reingreso-page .reingreso-promo-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: #075bc7;
  font-size: 1.08rem;
  font-weight: 900;
  box-shadow: 0 7px 16px rgba(7, 91, 199, .2);
}

.reingreso-page .reingreso-promo-callout div { min-width: 0; }
.reingreso-page .reingreso-promo-callout small,
.reingreso-page .reingreso-promo-callout strong { display: block; }
.reingreso-page .reingreso-promo-callout small { margin-bottom: 3px; color: #4f6a8a; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.reingreso-page .reingreso-promo-callout strong { color: #092b57; font-size: .93rem; line-height: 1.25; }
.reingreso-page .reingreso-promo-callout p { margin: 4px 0 0; color: #5b6f89; font-size: .75rem; line-height: 1.45; }
.reingreso-page .result-promo { margin: 18px 0 2px; text-align: left; }

@media (max-width: 520px) {
  .reingreso-page .reingreso-promo-callout { grid-template-columns: 36px minmax(0, 1fr); padding: 13px; }
  .reingreso-page .reingreso-promo-icon { width: 36px; height: 36px; border-radius: 10px; }
}
.reingreso-page .reingreso-scene-actions button { min-height:42px; border-radius:8px; font-size:.78rem; }
.reingreso-page .primary-button { background:#0758c9; }
@media (max-width:680px) {
  .reingreso-page .page-shell { width:min(100% - 20px,560px); padding-top:10px; }
  .reingreso-page .reingreso-welcome { display:block; min-height:470px; padding:30px 22px 0; }
  .reingreso-page .reingreso-welcome-copy { width:100%; }
  .reingreso-page .reingreso-welcome h1 { font-size:clamp(2.7rem,13vw,4.3rem); }
  .reingreso-page .reingreso-welcome-photo { inset:auto 0 0; height:190px; }
  .reingreso-page .reingreso-welcome-photo img { object-position:62% center; }
  .reingreso-page .reingreso-welcome::before { background:linear-gradient(180deg,rgba(2,12,40,.94) 0%,rgba(2,18,58,.74) 48%,rgba(3,32,91,.1) 100%); }
  .reingreso-page .reingreso-wordmark img { width:142px; }
  .reingreso-page .reingreso-progress-header { grid-template-columns:1fr; gap:8px; min-height:76px; padding:10px 12px; }
  .reingreso-page .reingreso-progress-meta { display:flex; justify-content:space-between; align-items:center; }
  .reingreso-page .reingreso-progress-step { min-width:0; font-size:.57rem; }
  .reingreso-page .reingreso-progress-step i { width:23px; height:23px; }
  .reingreso-page .reingreso-scene { padding:26px 18px 22px; }
  .reingreso-page .reingreso-scene-heading h2 { font-size:1.82rem; }
  .nuevo-ingreso-page .choice-group:not(.compact) { grid-template-columns:1fr; }
}
