/*


 */

* {
  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: 60px 0;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

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

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

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

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

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

.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: 14px 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: 14px 20px;
  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: 16px 32px;
  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;
  bottom: 40px;
  left: 40px;
  z-index: 10;
}

.student-image {
  width: 700px;
  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;
}

.qr-placeholder {
  padding: 30px;
  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: 280px;
  height: 280px;
}

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

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

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Logos */
.footer-logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

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

/* Links y redes */
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-gray);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

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

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

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

/* === Responsividad === */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .footer-logos {
    justify-content: center;
  }

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

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

@media (max-width: 480px) {
  .footer-link {
    font-size: 0.85rem;
  }

  .social-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}


/* === Responsividad avanzada === */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .illustration-section {
    order: -1;
    min-height: 400px;
  }

  .student-image {
    width: 400px;
    max-width: 80%;
  }

  .qr-display {
    position: static;
    transform: none;
    margin: 30px auto 0;
  }
}

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

  .subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .form-section {
    width: 100%;
  }

  .enrollment-form {
    padding: 20px;
  }

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

  .student-image {
    width: 300px;
  }

  .btn-submit {
    font-size: 1rem;
    padding: 14px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .main-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .student-image {
    width: 240px;
  }

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

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

  .footer {
    padding: 30px 0;
  }

  .footer-links {
    gap: 8px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

.help-link {
  color: var(--primary-orange);
  pointer-events: none; /* Desactiva clics */
  text-decoration: none; /* Quita subrayado si es un enlace */
  cursor: default; /* Cambia el cursor a normal */
}

html, body {
  overflow-x: hidden; /* Elimina cualquier scroll horizontal */
  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;          /* Logo más grande y protagonista */
  max-width: 80%;
  height: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
  animation: zoomIn 0.6s ease-in-out; /* entrada con estilo */
}

.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; }
}

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

/* Layout general desktop */
.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ===== Ajuste responsive para que el QR quede debajo del formulario ===== */
@media (max-width: 1024px) {
  .content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .form-section {
    order: 1;
  }

  .illustration-section {
    order: 2;
    min-height: auto;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .qr-display {
    position: static;
    transform: none;
    margin: 40px auto 0;
    left: 0;
    bottom: 0;
    text-align: center;
  }

  .student-wrapper {
    position: static;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

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

  .illustration-section .background-circle {
    display: none;
  }
}

/* Ajuste adicional para móviles */
@media (max-width: 768px) {
  .qr-image {
    width: 180px;
    height: 180px;
  }

  .qr-display {
    margin-top: 20px;
  }

  .loading-overlay p {
    font-size: 1rem;
  }
}

/* Pequeños refinamientos visuales */
@media (max-width: 480px) {
  .logo-loading {
    width: 220px;
  }

  .spinner {
    width: 60px;
    height: 60px;
  }
}
