/*


 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-orange: #FF9500;
  --dark-blue: #2C3E5D;
  --light-bg: #FFF5EB;
  --white: #FFFFFF;
  --text-gray: #6B7280;
  --border-gray: #E5E7EB;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--white);
  color: #1F2937;
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.header {
  width: 100%;
  padding: 20px 0;
  background: white;
  border-bottom: none !important;
  box-shadow: none !important;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 2rem;
  font-weight: 700;
  margin-top: 30px;
  color: var(--primary-orange);
}

.logo-image {
  height: 50px;
  width: auto;
}

/* Main */
.main-content {
  padding: 35px 0 60px 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 50px;
  align-items: start;
}

/* Form */
.form-section {
  max-width: 800px;
}

.main-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #1F2937;
  text-align: left;
}

.highlight {
  color: var(--primary-orange);
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.4;
  text-align: justify;
}

.enrollment-form {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--border-gray);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 1;
}

.enrollment-form {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--border-gray);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  position: relative;
  z-index: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1F2937;
  margin-bottom: 8px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #F9FAFB;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-orange);
  background-color: white;
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1);
}

/* Select personalizado */
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%236B7280' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

/* Botón subir archivo */
.file-upload-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.file-upload-label {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background-color: var(--primary-orange);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 8px;
  padding: 7px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-upload-label:hover {
  background-color: #E68600;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 149, 0, 0.2);
}

.file-upload-label i {
  font-size: 1.2rem;
}

.form-input-file {
  display: none;
}

.file-hint {
  color: var(--text-gray);
  font-size: 12px;
  display: block;
  margin-top: 8px;
}

/* Submit */
.btn-submit {
  width: 100%;
  padding: 10px 16px;
  background-color: #E5E7EB;
  color: #9CA3AF;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: not-allowed;
  transition: all 0.3s ease;
  font-family: inherit;
}

.btn-submit.active {
  background-color: var(--primary-orange);
  color: white;
  cursor: pointer;
}

.btn-submit.active:hover {
  background-color: #E68600;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 149, 0, 0.2);
}

/* Illustration */
.illustration-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 40px;
}

.background-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  background: white !important;
  border-radius: 40px;
  top: 0;
  left: 0;
  z-index: 0;
}

.student-wrapper {
  position: absolute;
  top: -50px;
  left: 0px;
  z-index: 10;
}

.student-image {
  width: 800px;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.05));
}

/* QR */
.qr-display {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  left: 150px;
  bottom: 100px;
  top: 0px;
}

.qr-placeholder {
  padding: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-image {
  width: 350px;
  height: 350px;
}

/* Footer */
/* =============================== */
/*             FOOTER              */
/* =============================== */

.footer {
  width: 100%;
  background: #FBF7F0;
  border-top: 1px solid #e5e7eb;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-col:first-child {
  justify-content: center;
  align-items: center;
}

.footer-col:last-child {
  justify-content: flex-start;
  align-items: flex-start;
}

.big-fintech {
  height: 80px;
  width: auto;
}

.footer-links {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 15px;
}

.footer-link {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 0.4;
}

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

.social-links {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--dark-blue);
  border-radius: 50%;
  color: white;
  transition: 0.3s ease;
  text-decoration: none;
}

.social-icon i {
  font-size: 16px;
}

.social-icon:hover {
  background-color: var(--primary-orange);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-gray);
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-section {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .enrollment-form {
    padding: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .footer-links {
    text-align: center !important;
  }

  .social-links {
    justify-content: center;
  }
}

/* =============================== */
/*          RESPONSIVE             */
/* =============================== */

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr; /* columnas apiladas */
    text-align: center;
    gap: 24px;
  }

  .footer-links {
    text-align: center;
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .big-fintech {
    height: 90px;
  }

  .social-icon {
    width: 24px;
    height: 24px;
  }

  .social-icon i {
    font-size: 11px;
  }
}


.help-link {
  color: var(--primary-orange);
  pointer-events: none;
  text-decoration: none;
  cursor: default;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

/* =======================
   ⚡ LOADING OVERLAY ⚡
   ======================= */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease-in-out;
}

.loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.loading-logo {
  margin-bottom: 2rem;
  animation: float 2.5s ease-in-out infinite;
}

.logo-loading {
  width: 280px;
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  animation: zoomIn 0.6s ease-in-out;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 6px solid #ddd;
  border-top-color: #ff9500;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-overlay p {
  margin-top: 1.5rem;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
}

/* ==== ANIMACIONES ==== */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Botón "Generar nueva inscripción" igual al submit */
.center .btn-submit.active {
  display: inline-block;
  background-color: var(--primary-orange);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 100%;
  font-family: inherit;
  text-align: center;
}

.center .btn-submit.active:hover {
  background-color: #E68600;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(255, 149, 0, 0.2);
}

.file-upload-wrapper2 {
  width: 100%;
  text-align: left;
}

.file-upload-label2 {
  display: inline-block;
  background-color: #C4C2C2;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 12px 0;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  border: none;
}

/* Estado inactivo */
.file-upload-label.disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  box-shadow: none;
  border: 1px solid #bdbdbd;
}

/* === Checkbox personalizado === */
.checkbox-label {
  font-size: 14px;
  color: #333;
  margin-top: 0px;
  line-height: 1.2;
  text-align: left;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ccc;
  border-radius: 4px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 2px;
}

/* Estado marcado (naranja BioCredit) */
.checkbox-label input[type="checkbox"]:checked {
  background-color: #E68600;
  border-color: #E68600;
}

/* Icono de check al marcar */
.checkbox-label input[type="checkbox"]:checked::after {
  content: '✔';
  position: absolute;
  top: 0;
  left: 3px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

/* Efecto hover */
.checkbox-label input[type="checkbox"]:hover {
  border-color: #E68600;
}

/* Texto adicional */
.checkbox-label a {
  color: #E68600;
  text-decoration: none;
}

.checkbox-label a:hover {
  text-decoration: underline;
}

/* =======================
   ⚡ RESPONSIVE DESIGN ⚡
   ======================= */

/* ===== AJUSTES CORREGIDOS SEGÚN IMAGEN ===== */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
  }

  .form-section {
    order: 1;
    max-width: 100%;
  }

  .illustration-section {
    order: 2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    min-height: 600px;
  }

  .student-wrapper {
    position: relative;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
  }

  .student-image {
    width: 600px;
    height: auto;
  }

  .qr-display {
    position: absolute;
    top: 16%;
    left: 60%;
    transform: translateX(-50%);
  }

  .qr-placeholder {
    padding: 25px;
  }

  .qr-image {
    width: 250px;
    height: 250px;
  }
}

/* Ajuste adicional para móviles */
@media (max-width: 768px) {
  .main-title {
    font-size: 2rem;
    text-align: left;
  }

  .subtitle {
    font-size: 1rem;
    text-align: justify;
    margin-bottom: 24px;
  }

  .enrollment-form {
    padding: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .illustration-section {
    min-height: 500px;
  }

  .student-image {
    width: 420px;
  }

  .qr-display {
    position: absolute;
    bottom: 0;
    top: 10%;
    left: 35%;
    transform: none;
    margin-top: 20px;
  }

  .qr-image {
    width: 200px;
    height: 200px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }
}

/* ✅ CELULARES PEQUEÑOS */
@media (max-width: 480px) {
  .main-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .student-image {
    width: 300px;
  }

  .qr-image {
    width: 180px;
    height: 180px;
  }

  .btn-submit,
  .file-upload-label {
    font-size: 1rem;
    padding: 12px;
  }

  .footer {
    padding: 30px 0;
  }

  .social-icon {
    width: 30px;
    height: 30px;
  }
}

.social-links .social-icon i {
  font-size: 14px;
}

.social-links .social-icon {
  padding: 2px;
}

.btn-submit {
  background-color: #C4C2C2;
  color: white;
  cursor: not-allowed;
  transition: background 0.3s;
}

.btn-submit.active {
  background-color: #FF9500;
  cursor: pointer;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 40px;
  line-height: 1.4;
  text-align: justify;
}

.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.benefit-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.benefit-icon {
  background-color: #FFF5EB;
  color: var(--primary-orange);
  padding: 10px 15px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.benefit-item p {
  font-size: 0.95rem;
  color: #1F2937;
  line-height: 1.3;
  flex: 1;
}

/* Form Background Wrapper */
.form-background-wrapper {
  position: relative;
  border-radius: 24px;
  padding: 20px;
}

.form-background-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(/assets/fondo_acuarela.png);
  background-size: 180%;
  background-position: center center;
  background-repeat: no-repeat;
  border-radius: 24px;
  z-index: 0;
}

/* ============================= */
/*        APROBACIÓN STYLE       */
/* ============================= */

.approval-wrapper {
  max-width: 840px;
  margin: 60px auto;
  text-align: left;
}

.logo-approval {
  text-align: left;
  margin-bottom: 20px;
}

.logo-approval-img {
  height: 55px;
}

.approval-card-v2 {
  width: 100%;
  max-width: 900px; /* súbelo más si quieres */
  padding: 40px 50px; /* más aire para que la imagen no se corte */

  background-image: url(/assets/fondo_acuarela.png);
  background-size: cover;      /* o 'contain' si quieres que nunca se corte */
  background-repeat: no-repeat;
  background-position: center;

  border-radius: 16px; /* opcional si lo necesitas */
}


.approval-title-v2 {
  color: #FF9500;
  font-size: 2.6rem;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 800;
}

.approval-message-v2 p {
  margin-bottom: 18px;
  font-size: 1.05rem;
  color: #4A4A4A;
  text-align: justify;
}

.highlight-v2 {
  color: #FF9500;
  font-weight: 700;
}

.contact-link-v2 {
  color: #FF9500;
  font-weight: 600;
  text-decoration: none;
}

.student-info-grid-v2 {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  text-align: center;
}

.info-item-v2 {
  display: flex;
  flex-direction: column;
}
approval-card-v2
.label-v2 {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 5px;
}

.value-v2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2A2A2A;
}

.amount-v2 {
  color: #000;
  font-weight: 800;
}

/* MOBILE */
@media (max-width: 600px) {
  .approval-card-v2 {
    padding: 30px;
  }

  .student-info-grid-v2 {
    grid-template-columns: 1fr;
  }

  .approval-title-v2 {
    font-size: 2rem;
  }
}




.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: white;
  border-radius: 24px;
  width: 90%;
  max-width: 520px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-header {
  padding: 30px 30px 10px;
  padding: 30px 30px 10px;
  text-align: center;
  position: relative;
}

.modal-logo {
  height: 60px;
  display: block;
  margin: 0 auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 34px;
  color: #aaa;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  background: #f5f5f5;
  color: #000;
}

.modal-body {
  padding: 10px 40px 30px;
  text-align: center;
}

.modal-footer {
  padding: 0 40px 40px;
  text-align: center;
}

/* Botón naranja exacto como tu marca */
.btn-orange-understood {
  background: #FF9500;
  color: white;
  font-weight: 600;
  font-size: 17px;
  padding: 16px 60px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  min-width: 200px;
  box-shadow: 0 8px 20px rgba(255, 149, 0, 0.35);
  transition: all 0.3s ease;
}

.btn-orange-understood:hover {
  background: #e67e22;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 149, 0, 0.4);
}

.btn-orange-understood:active {
  transform: translateY(0);
}




/***** select ***/
/* ======================= SELECT2 BIOCREDIT ======================= */
.select2-container--default .select2-selection--single {
  background-color: #F9FAFB !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px !important;
  height: 48px !important;
  padding: 0 16px !important;
  font-size: 1rem !important;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #FF9500 !important;
  box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.1) !important;
}

/* ... (el resto del bloque que te pasé antes) ... */
