/* =============================================================================
   registro.css — Cumplify Onboarding / Registro
   Secciones: Reset → Layout → Logo → Progress Bar → Card → Formulario
              → Upload → Tabla empleados → Pantallas de éxito
   ============================================================================= */


  * { margin: 0; padding: 0; box-sizing: border-box; }
  body {
    font-family: 'Inter', sans-serif;
    background: #F0F2F5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 24px;
  }

  /* Logo */
  .logo {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 36px; text-decoration: none;
  }
  .logo-name { font-size: 20px; font-weight: 800; color: #0F172A; letter-spacing: -0.5px; }
  .logo-domain { font-size: 11px; color: #34A853; font-weight: 700; }

  /* Progress bar */
  .progress-wrap {
    width: 100%; max-width: 560px;
    margin-bottom: 40px;
  }
  .progress-steps {
    display: flex; align-items: center; justify-content: space-between;
    position: relative; padding-bottom: 28px;
  }
  .progress-line {
    position: absolute; top: 18px; left: 18px; right: 18px;
    height: 2px; background: #E2E8F0; z-index: 0;
  }
  .progress-line-fill {
    height: 100%; background: linear-gradient(90deg, #4285F4, #34A853);
    transition: width 0.4s ease; width: 0%;
  }
  .step-dot {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; z-index: 1;
    transition: all 0.3s; position: relative;
    background: white; border: 2px solid #E2E8F0; color: #94A3B8;
  }
  .step-dot.active { background: #4285F4; border-color: #4285F4; color: white; }
  .step-dot.done { background: #34A853; border-color: #34A853; color: white; }
  .step-label {
    position: absolute; top: 44px; left: 50%; transform: translateX(-50%);
    font-size: 10px; font-weight: 600; color: #94A3B8; white-space: nowrap;
    text-transform: uppercase; letter-spacing: 0.5px;
  }
  .step-dot.active .step-label { color: #4285F4; }
  .step-dot.done .step-label { color: #34A853; }

  /* Card */
  .card {
    background: white; border-radius: 24px;
    padding: 48px 48px 40px;
    width: 100%; max-width: 560px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  }

  .card-title {
    font-size: 24px; font-weight: 800; color: #0F172A;
    letter-spacing: -0.5px; margin-bottom: 6px;
  }
  .card-sub {
    font-size: 14px; color: #6B7280; margin-bottom: 32px; line-height: 1.6;
  }

  /* Form */
  .field { margin-bottom: 18px; }
  .field label {
    display: block; font-size: 13px; font-weight: 600;
    color: #374151; margin-bottom: 6px;
  }
  .field label span { color: #9CA3AF; font-weight: 400; }
  .field input, .field select {
    width: 100%; padding: 12px 16px;
    border: 1.5px solid #E5E7EB; border-radius: 12px;
    font-size: 14px; font-family: 'Inter', sans-serif;
    color: #1E293B; outline: none; transition: border 0.2s;
    background: white;
  }
  .field input:focus, .field select:focus { border-color: #4285F4; }
  .field input::placeholder { color: #9CA3AF; }

  .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Buttons */
  .btn-primary {
    width: 100%; padding: 14px;
    background: linear-gradient(135deg, #4285F4, #34A853);
    color: white; border: none; border-radius: 100px;
    font-size: 15px; font-weight: 700; font-family: 'Inter', sans-serif;
    cursor: pointer; transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(66,133,244,0.3);
    margin-top: 8px;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(66,133,244,0.4); }
  .btn-secondary {
    background: none; border: none; color: #6B7280;
    font-size: 13px; font-family: 'Inter', sans-serif;
    cursor: pointer; margin-top: 12px; text-decoration: underline;
    display: block; text-align: center; width: 100%;
  }

  /* Terms box */
  .terms-box {
    background: #F8FAFF; border: 1px solid #E2E8F0;
    border-radius: 16px; padding: 24px;
    max-height: 320px; overflow-y: auto;
    margin-bottom: 24px; font-size: 13px;
    color: #4B5563; line-height: 1.75;
  }
  .terms-box::-webkit-scrollbar { width: 4px; }
  .terms-box::-webkit-scrollbar-thumb { background: #E2E8F0; border-radius: 2px; }
  .terms-box h3 { font-size: 13px; font-weight: 700; color: #0F172A; margin: 16px 0 6px; }
  .terms-box h3:first-child { margin-top: 0; }
  .terms-box ul { padding-left: 16px; margin: 6px 0; }
  .terms-box ul li { margin-bottom: 4px; }

  .checkbox-wrap {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 24px;
  }
  .checkbox-wrap input[type="checkbox"] {
    width: 18px; height: 18px; margin-top: 2px;
    accent-color: #4285F4; cursor: pointer; flex-shrink: 0;
  }
  .checkbox-wrap label {
    font-size: 13px; color: #374151; line-height: 1.6; cursor: pointer;
  }
  .checkbox-wrap label a { color: #4285F4; }

  /* Upload area */
  .upload-area {
    border: 2px dashed #E2E8F0; border-radius: 16px;
    padding: 32px 24px; text-align: center;
    cursor: pointer; transition: all 0.2s; margin-bottom: 20px;
  }
  .upload-area:hover { border-color: #4285F4; background: #F0F7FF; }
  .upload-icon { font-size: 32px; margin-bottom: 10px; }
  .upload-title { font-size: 15px; font-weight: 700; color: #0F172A; margin-bottom: 4px; }
  .upload-sub { font-size: 13px; color: #6B7280; }
  .upload-input { display: none; }

  /* Table preview */
  .table-preview {
    border: 1px solid #E5E7EB; border-radius: 12px;
    overflow: hidden; margin-bottom: 20px;
  }
  .table-preview table { width: 100%; border-collapse: collapse; font-size: 12px; }
  .table-preview th {
    background: #0F172A; color: white;
    padding: 10px 12px; text-align: left; font-weight: 600;
    font-size: 11px; letter-spacing: 0.5px; text-transform: uppercase;
  }
  .table-preview td {
    padding: 9px 12px; color: #4B5563;
    border-bottom: 1px solid #F1F5F9;
  }
  .table-preview tr:last-child td { border-bottom: none; }
  .table-preview tr:nth-child(even) td { background: #F8FAFC; }

  /* Or divider */
  .or-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 16px 0; color: #9CA3AF; font-size: 13px; font-weight: 500;
  }
  .or-divider::before, .or-divider::after {
    content: ''; flex: 1; height: 1px; background: #E5E7EB;
  }

  /* Manual row */
  .manual-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto;
    gap: 8px; align-items: center; margin-bottom: 8px;
  }
  .manual-row input {
    padding: 8px 10px; border: 1.5px solid #E5E7EB;
    border-radius: 8px; font-size: 12px; font-family: 'Inter', sans-serif;
    color: #1E293B; outline: none;
  }
  .manual-row input:focus { border-color: #4285F4; }
  .remove-row {
    width: 28px; height: 28px; border-radius: 50%;
    background: #FEE2E2; border: none; color: #DC2626;
    font-size: 16px; cursor: pointer; display: flex;
    align-items: center; justify-content: center;
    font-family: 'Inter', sans-serif; line-height: 1;
  }
  .add-row-btn {
    background: none; border: 1.5px dashed #E2E8F0;
    border-radius: 8px; padding: 8px 16px;
    font-size: 13px; color: #6B7280; cursor: pointer;
    font-family: 'Inter', sans-serif; width: 100%;
    transition: all 0.2s; margin-bottom: 16px;
  }
  .add-row-btn:hover { border-color: #4285F4; color: #4285F4; }

  /* Success */
  .success-icon { font-size: 56px; margin-bottom: 16px; }
  .success-title { font-size: 26px; font-weight: 800; color: #0F172A; margin-bottom: 8px; letter-spacing: -0.5px; }
  .success-sub { font-size: 15px; color: #6B7280; line-height: 1.65; margin-bottom: 32px; }

  /* Hidden */
  .step { display: none; }
  .step.active { display: block; }

/* Modal de carga de empleados */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}

.modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.28), 0 4px 20px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 760px;
  max-height: 94vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-header-info {
  padding: 20px 26px 18px;
  border-bottom: 1px solid #e2e8eb;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
  border-radius: 18px 18px 0 0;
}

.modal-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.header-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #3730a3;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
}

.btn-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
}

.btn-close:hover {
  color: #1e293b;
}

.modal-body {
  padding: 22px 26px 26px;
  background: #f8fafc;
  flex: 1;
}

.tabs-container {
  display: flex;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  margin: 20px 0 16px;
  gap: 2px;
}

.tab-btn {
  flex: 1;
  padding: 9px 10px;
  border: none;
  background: transparent;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12.5px;
  color: #64748b;
  transition: all 0.18s ease;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.tab-btn:hover { color: #374151; background: rgba(255, 255, 255, 0.6); }
.tab-btn.active { background: white; color: #111827; box-shadow: 0 1px 4px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.04); }

.carga-tab-content {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e5e7eb;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field-full { grid-column: span 2; }

.form-field label {
  font-size: 13px;
  color: #334155;
  font-weight: 600;
}

.form-field input,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  background: white;
  outline: none;
  transition: border 0.2s ease;
}

.form-field input:focus,
.form-field select:focus { border-color: #4285f4; }

.form-actions { margin-top: 18px; display: flex; justify-content: flex-end; }

.csv-instructivo { font-size: 13px; color: #475569; line-height: 1.7; }
.csv-instructivo code {
  display: block;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 8px 10px;
  border-radius: 10px;
  margin: 10px 0;
}

.telefono-ar-grupo { display: flex; gap: 8px; }

.telefono-ar-grupo input { flex: 1; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
