/*
  Archivo: estudiante.css
  Ruta: estudiantes/css/estudiante.css
  Funciones del archivo:
  - Definir estilos principales de la pantalla pública de estudiantes.
  - Controlar encabezado, logo institucional, tarjetas, formularios, botones y modales.
  - Mantener compatibilidad entre clases antiguas app-* y clases nuevas student-*.
  - Evitar que el logo institucional se agrande fuera de su contenedor.
  - Adaptar la interfaz a escritorio, tablet y móvil.
*/

:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #d9e2ef;

  --primary: #0b1f3a;
  --primary-dark: #061325;
  --soft-primary: #e8eef6;

  --success: #147a3f;
  --warning: #9a6700;
  --danger: #b42318;

  --success-bg: #ecfdf3;
  --warning-bg: #fffaeb;
  --danger-bg: #fef3f2;

  --shadow: 0 16px 40px rgba(11, 31, 58, 0.08);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 0;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  min-width: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

.app-header,
.student-hero {
  background: linear-gradient(135deg, #061325, #0b1f3a);
  color: #ffffff;
  padding: 24px 18px 30px;
  overflow: hidden;
}

.app-header__content,
.student-hero__content {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
}

.app-brand,
.student-hero__brand {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.app-logo,
.student-hero__logo {
  width: 132px !important;
  height: auto !important;
  max-width: 132px !important;
  max-height: 82px !important;
  min-width: 0 !important;
  object-fit: contain;
  display: block;
  flex: 0 0 132px;
}

.app-title-block,
.student-hero__text {
  min-width: 0;
}

.student-hero__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-header h1,
.student-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.app-header p,
.student-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  max-width: 780px;
}

.student-hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill--info {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.status-pill--muted {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.app-container,
.student-shell {
  width: min(1180px, 100%);
  margin: 18px auto 54px;
  padding: 0 18px;
  min-width: 0;
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 16px;
}

.step-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  color: var(--muted);
  min-height: 48px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(11, 31, 58, 0.05);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.step-item:disabled {
  opacity: 1;
  background: #ffffff;
  color: #98a2b3;
  border-color: #e5edf7;
}

.step-item span {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  flex: 0 0 auto;
}

.step-item strong {
  display: block;
  font-size: 0.82rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-item.is-active {
  border-color: var(--primary);
  color: var(--primary);
  background: #ffffff;
}

.step-item.is-active span {
  background: var(--primary);
  color: #ffffff;
}

.step-item.is-complete {
  border-color: #b7ebc6;
  color: var(--success);
}

.step-item.is-complete span {
  background: var(--success-bg);
  color: var(--success);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 18px;
  min-width: 0;
}

.card--intro {
  margin-top: 0;
}

.card__header,
.proposal-card__top,
.proposal-card__header,
.receipt-card__header,
.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.card h2,
.card h3,
.modal h2 {
  margin: 0;
}

.section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading p:not(.section-kicker) {
  margin: 0;
  color: var(--muted);
}

.section-kicker {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.muted {
  color: var(--muted);
  margin: 8px 0 0;
}

.is-hidden {
  display: none !important;
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
}

.consulta-form,
.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-top: 18px;
}

.form-grid,
.proposal-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.proposal-card__grid.form-grid {
  margin-top: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field--wide {
  min-width: 0;
}

.field--inline {
  max-width: 520px;
}

.field--title-final {
  margin-top: 16px;
}

label {
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--text);
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11, 31, 58, 0.14);
}

textarea {
  resize: vertical;
  min-height: 88px;
}

small {
  color: var(--muted);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.65;
}

.btn--primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(11, 31, 58, 0.22);
}

.btn--primary:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn--secondary {
  background: var(--soft-primary);
  color: var(--primary);
}

.btn--ghost {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn--ai {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(11, 31, 58, 0.18);
}

.btn--ai:hover:not(:disabled) {
  background: var(--primary-dark);
}

.status-message {
  margin-top: 14px;
  min-height: 24px;
  font-weight: 700;
}

.status-message:empty {
  min-height: 0;
  margin-top: 0;
}

.status-message.is-info {
  color: var(--primary);
}

.status-message.is-success {
  color: var(--success);
}

.status-message.is-warning {
  color: var(--warning);
}

.status-message.is-error {
  color: var(--danger);
}

.student-grid,
.student-data__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.info-box,
.student-data__grid > div {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 14px;
  padding: 14px;
  min-width: 0;
}

.info-box span,
.student-data__grid > div span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.info-box strong,
.student-data__grid > div strong {
  display: block;
  overflow-wrap: anywhere;
}

.telegram-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
  padding: 16px;
  margin-top: 16px;
}

.telegram-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.telegram-status {
  margin-top: 10px;
  font-weight: 800;
  color: var(--warning);
}

.telegram-status[data-validado="true"] {
  color: var(--success);
}

.proposal-stack {
  display: grid;
  gap: 18px;
}

.proposal-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.05);
  min-width: 0;
}

.proposal-card__header {
  margin-bottom: 16px;
}

.proposal-card__header h3 {
  margin: 5px 0 0;
}

.proposal-card__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--soft-primary);
  color: var(--primary);
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proposal-actions,
.final-actions,
.step-actions,
.form-actions,
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.suggestions,
.suggestions-container {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.suggestion-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
}

.suggestion-item p {
  margin: 0;
  color: var(--text);
}

.suggestion-item button {
  margin-top: 10px;
}

.summary-box {
  border: 1px solid var(--line);
  background: #fbfdff;
  border-radius: 16px;
  padding: 16px;
  color: var(--muted);
  font-weight: 700;
}

.summary-titles {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.summary-title-card,
.summary-choice-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
  padding: 14px;
}

.summary-title-card span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.summary-title-card strong {
  display: block;
  overflow-wrap: anywhere;
}

.summary-title-card--preferred {
  border-color: #b7ebc6;
  background: #f6fffa;
}

.summary-choice-card {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.summary-choice-card:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.08);
}

.summary-choice-card input {
  width: auto;
  margin-top: 6px;
  accent-color: var(--primary);
}

.summary-choice-card:has(input:checked) {
  border-color: var(--primary);
  background: #f8fbff;
  box-shadow: 0 12px 28px rgba(11, 31, 58, 0.08);
}

.summary-choice-card__number {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #ffffff;
  font-weight: 900;
}

.summary-choice-card__content {
  display: grid;
  gap: 4px;
}

.summary-choice-card__content small {
  color: var(--muted);
  font-weight: 800;
}

.summary-choice-card__content strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.summary-choice-card__content em {
  color: var(--primary);
  font-style: normal;
  font-size: 0.86rem;
  font-weight: 800;
}

.final-warning {
  border: 1px solid #f5d08a;
  border-radius: 14px;
  background: var(--warning-bg);
  color: var(--warning);
  padding: 14px;
  margin-top: 18px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.58);
}

.modal__panel {
  position: relative;
  width: min(860px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  padding: 24px;
}

.modal__panel--compact {
  width: min(720px, 100%);
}

.modal__panel--alert {
  width: min(520px, 100%);
}

.modal__panel--wide {
  width: min(980px, 100%);
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1;
}

.modal-advice {
  padding-right: 42px;
}

.modal-advice h2 {
  margin-bottom: 14px;
}

.modal-advice p {
  color: var(--muted);
  margin: 0 0 10px;
}

.modal__content {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.recommendation-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.suggestion-modal-list {
  display: grid;
  gap: 12px;
}

.summary-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fbfdff;
}

.summary-block h3 {
  margin: 0 0 8px;
}

.summary-block p {
  margin: 4px 0;
  color: var(--muted);
}

.summary-title {
  color: var(--text) !important;
  font-weight: 800;
}

.receipt-card {
  border-color: #b7ebc6;
  background: linear-gradient(180deg, #ffffff, #f6fffa);
}

.receipt-code {
  border-radius: 16px;
  background: var(--success-bg);
  color: var(--success);
  padding: 14px 16px;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: right;
  min-width: min(320px, 100%);
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.receipt-item {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
}

.receipt-item span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 6px;
}

.receipt-item strong {
  display: block;
  overflow-wrap: anywhere;
}

.ia-loading-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.ia-loading-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 31, 58, 0.58);
  backdrop-filter: blur(5px);
}

.ia-loading-modal__panel {
  position: relative;
  width: min(700px, 100%);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.2);
  padding: 34px;
  text-align: center;
}

.ia-loading-modal__spinner {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 999px;
  border: 6px solid #e6edf7;
  border-top-color: var(--primary);
  animation: ia-spin 0.9s linear infinite;
}

.ia-loading-modal h2 {
  margin: 0 0 8px;
  font-size: 1.7rem;
}

.ia-loading-modal p {
  margin: 0;
  color: var(--muted);
}

.ia-loading-modal__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto 16px;
  border-radius: 999px;
  background: #f3f7ff;
  border: 1px solid #cddbf2;
  color: var(--primary);
  padding: 9px 16px;
  font-weight: 900;
}

.ia-loading-progress {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e5ebf3;
  overflow: hidden;
  margin: 8px 0 20px;
}

.ia-loading-progress__bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 0.25s ease;
}

.ia-loading-steps {
  display: grid;
  gap: 10px;
  text-align: left;
}

.ia-loading-step {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.ia-loading-step span {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #cbd5e1;
}

.ia-loading-step strong {
  color: var(--text);
}

.ia-loading-step em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.ia-loading-step.is-active {
  border-color: #bcd1f5;
  background: #f7faff;
}

.ia-loading-step.is-active span {
  background: var(--primary);
}

.ia-loading-step.is-complete span {
  background: var(--success);
}

.ia-loading-modal__hint {
  margin-top: 18px !important;
  font-size: 0.92rem;
}

@keyframes ia-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1100px) {
  .wizard-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .app-header__content,
  .student-hero__content {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-hero__meta {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .student-grid,
  .student-data__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-header,
  .student-hero {
    padding: 22px 16px 28px;
  }

  .app-brand,
  .student-hero__brand,
  .card__header,
  .proposal-card__header,
  .receipt-card__header,
  .modal__header {
    flex-direction: column;
  }

  .app-logo,
  .student-hero__logo {
    width: 110px !important;
    max-width: 110px !important;
    max-height: 72px !important;
    flex-basis: 110px;
  }

  .app-header h1,
  .student-hero h1 {
    font-size: 1.55rem;
  }

  .app-container,
  .student-shell {
    margin-top: 14px;
    padding: 0 14px;
  }

  .wizard-steps {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .step-item {
    min-height: 44px;
  }

  .consulta-form,
  .search-form,
  .form-grid,
  .proposal-card__grid,
  .student-grid,
  .student-data__grid,
  .telegram-row,
  .receipt-grid,
  .summary-choice-card {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .proposal-actions,
  .final-actions,
  .step-actions,
  .form-actions,
  .modal__actions {
    width: 100%;
    flex-direction: column;
  }

  .receipt-code {
    width: 100%;
    text-align: left;
  }

  .modal__panel {
    padding: 22px;
  }

  .modal-advice {
    padding-right: 34px;
  }

  .ia-loading-modal__panel {
    padding: 26px 20px;
  }

  .ia-loading-step {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ia-loading-step em {
    grid-column: 2;
  }
}

@media (max-width: 430px) {
  .app-logo,
  .student-hero__logo {
    width: 96px !important;
    max-width: 96px !important;
    max-height: 64px !important;
    flex-basis: 96px;
  }

  .card,
  .proposal-card {
    padding: 18px;
  }
}
/* =========================================================
   Ajuste visual puntual - Pantalla estudiante / Paso 1
   ========================================================= */

.student-shell,
.app-container {
  width: min(1120px, 100%);
  margin: 20px auto 56px;
  padding: 0 18px;
}

.card--intro,
#consultaCard {
  max-width: 1040px;
  margin: 0 auto 18px;
  padding: 26px;
  border-radius: 20px;
}

#consultaForm.search-form,
#consultaForm.consulta-form,
.search-form.consulta-form {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  align-items: start;
  gap: 14px;
}

#cedulaInput,
#consultaForm input {
  min-height: 52px;
}

#btnConsultar,
#consultaForm .btn {
  width: 100%;
  min-height: 52px;
  margin-top: 30px;
  white-space: normal;
}

.student-hero__content,
.app-header__content {
  align-items: flex-start;
}

.student-hero__meta {
  padding-top: 18px;
}

@media (max-width: 760px) {
  #consultaForm.search-form,
  #consultaForm.consulta-form,
  .search-form.consulta-form {
    grid-template-columns: 1fr;
  }

  #btnConsultar,
  #consultaForm .btn {
    margin-top: 0;
  }

  #consultaCard {
    padding: 20px;
  }

  .student-hero__content,
  .app-header__content,
  .student-hero__brand,
  .app-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-hero__meta {
    width: 100%;
    padding-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
}
/* =========================================================
   Corrección visual puntual - Modal consultando datos
   ========================================================= */

.ia-loading-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.ia-loading-modal.is-hidden {
  display: none !important;
}

.ia-loading-modal__panel {
  width: min(500px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 28px 30px;
  border-radius: 24px;
}

.ia-loading-steps {
  width: 100%;
  display: grid;
  gap: 8px;
}

.ia-loading-step {
  width: 100%;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
}

/* Corrige el problema causado por .ia-loading-step span */
.ia-loading-step .ia-loading-step__label,
.ia-loading-step .ia-loading-step__status,
.ia-loading-step .ia-loading-step__state {
  width: auto;
  height: auto;
  min-width: 0;
  border-radius: 0;
  background: transparent;
  line-height: 1.25;
}

.ia-loading-step .ia-loading-step__label {
  color: #334155;
  font-size: 0.88rem;
  font-weight: 800;
  word-break: normal;
  overflow-wrap: normal;
}

.ia-loading-step .ia-loading-step__status,
.ia-loading-step .ia-loading-step__state {
  justify-self: end;
  color: #64748b;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  text-align: right;
}

.ia-loading-step .ia-loading-step__dot {
  width: 12px;
  height: 12px;
  justify-self: center;
  border-radius: 999px;
  background: #cbd5e1;
}

.ia-loading-step--trabajando .ia-loading-step__status,
.ia-loading-step--trabajando .ia-loading-step__state {
  color: #1d4ed8;
}

.ia-loading-step--completado .ia-loading-step__status,
.ia-loading-step--completado .ia-loading-step__state {
  color: #166534;
}

@media (max-width: 520px) {
  .ia-loading-modal__panel {
    padding: 24px 18px;
  }

  .ia-loading-step {
    grid-template-columns: 14px minmax(0, 1fr);
  }

  .ia-loading-step .ia-loading-step__status,
  .ia-loading-step .ia-loading-step__state {
    grid-column: 2;
    justify-self: start;
    text-align: left;
    margin-top: 2px;
  }
}