:root {





















































  --azul-oscuro: #0f2f66;
  --azul-medio: #1a5bc4;
  --azul-claro: #3fa9f5;
  --rojo: #e8432e;
  --verde: #8bc53f;
  --amarillo: #ffd23f;
  --gris-texto: #4a5568;




























}

* {












  box-sizing: border-box;
  margin: 0;
  padding: 0;















}







html, body {













  height: 100%;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}















.page {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

.hero {
  flex: 1;
  min-width: 0;
  background-color: var(--azul-oscuro);
  background-image: url('https://i.postimg.cc/wBZctcNS/estudiante-05022026.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.panel {
  flex: 1.2;
  min-width: 300px;
  max-width: 560px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #ffffff;
  padding: 30px 24px 40px;
}

.panel__inner {
  width: 100%;
  max-width: 360px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.panel__logo {
  width: 130px;
  height: auto;
  margin-bottom: 8px;
  display: block;
}

.panel__title {
  color: var(--azul-oscuro);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin: 0 0 6px 0;
  text-transform: uppercase;
}

.panel__label {
  color: #1a1a2e;
  font-weight: 600;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.consulta-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 4px;
}

.input-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d6dbe3;
  border-radius: 10px;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafbfc;
}

.input-wrap:focus-within {
  border-color: var(--azul-medio);
  box-shadow: 0 0 0 3px rgba(26, 91, 196, 0.15);
}

.input-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.6;
}

.input-wrap input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1rem;
  color: #1a1a2e;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

.input-wrap input::placeholder {
  color: #a0aec0;
}

.error-msg {
  display: block;
  min-height: 18px;
  color: var(--rojo);
  font-size: 0.8rem;
  margin-top: 2px;
  text-align: left;
  width: 100%;
  font-weight: 500;
}

.btn-consultar {
  margin-top: 14px;
  width: 100%;
  background: var(--azul-oscuro);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 14px 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  font-family: 'Inter', sans-serif;
}

.btn-consultar:hover {
  background: var(--azul-medio);
  box-shadow: 0 4px 12px rgba(26, 91, 196, 0.3);
}

.btn-consultar:active {
  transform: scale(0.97);
}

.btn-consultar:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Modales */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal-overlay.show {
  display: flex; 
}

.modal-content {
  background: #ffffff;
  padding: 32px 40px 28px;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalFade 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalFade {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--azul-oscuro);
  margin: 0 0 4px 0;
  letter-spacing: -1px;
}

.modal-message {
  font-size: 1rem;
  color: #2d3748;
  margin: 8px 0 28px 0;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-btn {
  padding: 10px 28px;
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  min-width: 100px;
}

.modal-btn:active {
  transform: scale(0.97);
}

.modal-btn-primary {
  background: var(--azul-oscuro);
  color: #fff;
}
.modal-btn-primary:hover {
  background: var(--azul-medio);
}

.modal-btn-secondary {
  background: #e2e8f0;
  color: #1a1a2e;
}
.modal-btn-secondary:hover {
  background: #cbd5e0;
}

.modal-btn-gray {
  background: #8e9aab;
  color: #fff;
}
.modal-btn-gray:hover {
  background: #718096;
}

.success-content {
  padding: 30px 30px 20px;
}

.success-icon {
  width: 80px;
  height: 80px;
  border: 3px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-icon svg {
  width: 45px;
  height: 45px;
}

.success-title {
  font-size: 1.8rem;
  color: #4a5568;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 12px;
}

.success-name {
  font-size: 1.1rem;
  color: #4a5568;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.success-amount {
  font-size: 0.95rem;
  color: #4a5568;
  margin-bottom: 24px;
}

.success-amount strong {
  color: #1a1a2e;
  font-weight: 800;
}

.success-text {
  font-size: 0.85rem;
  color: #718096;
  line-height: 1.6;
  margin-bottom: 16px;
  padding: 0 10px;
}

.card-form {
  margin-top: 8px;
  text-align: left;
}

.card-input-group {
  margin-bottom: 12px;
}

.card-input-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #4a5568;
  margin-bottom: 4px;
}

.card-input-group input,
.card-input-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d6dbe3;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  background: #fafbfc;
  transition: border-color 0.2s;
}

.card-input-group input:focus,
.card-input-group select:focus {
  outline: none;
  border-color: var(--azul-medio);
  box-shadow: 0 0 0 3px rgba(26, 91, 196, 0.15);
}

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

.card-row .card-input-group {
  flex: 1;
}

.card-type-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-type-wrapper select {
  flex: 1;
}

.bank-logo-display {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  min-width: 70px;
  height: 38px;
}

.bank-logo-display .bank-logo-text {
  text-transform: none;
  letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 860px) {
  .page {
    flex-direction: column;
  }
  .hero {
    min-height: 30vh;
  }
  .panel {
    padding: 20px 16px 30px;
    min-width: 0;
    max-width: 100%;
  }
  .panel__inner {
    max-width: 100%;
  }
  .panel__logo {
    width: 120px;
  }
  .panel__title {
    font-size: 1.6rem;
  }
  .panel__label {
    font-size: 0.85rem;
  }
  .modal-content {
    padding: 20px;
    max-width: 95%;
  }
  .card-type-wrapper {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .panel {
    padding: 16px 12px 24px;
  }
  .panel__logo {
    width: 100px;
  }
  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .modal-btn {
    width: 100%;
  }
  .card-row {
    flex-direction: column;
    gap: 0;
  }
  .bank-logo-display {
    font-size: 0.75rem;
    padding: 4px 10px;
    min-width: 60px;
    height: 32px;
  }
}