/* ==========================================================
   ZINAPTIK - RECLUTAMIENTO, SELECCIÓN Y SOLICITUD DE EMPLEO
   (ALTA LEGIBILIDAD + FORMATO AMPLIO EJECUTIVO)
   ========================================================== */

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

body.reclutamiento-body {
  font-family: 'Montserrat', sans-serif;
  background-color: #04070d;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Fondo con video y overlay oscuro de alto contraste para lectura nítida */
.bg-video-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bg-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.16;
  filter: saturate(1.1) contrast(1.1);
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 50% 10%, rgba(0, 240, 255, 0.08) 0%, rgba(4, 7, 13, 0.96) 75%);
  pointer-events: none;
}

/* Contenedor principal mucho más amplio (1340px) */
.recruit-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 28px 80px;
}

/* Header superior */
.recruit-topbar {
  width: 100%;
  max-width: 1340px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 15px;
  flex-wrap: wrap;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 50px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.back-btn:hover {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
  color: #00f0ff;
  transform: translateX(-3px);
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-badge a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-badge img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 240, 255, 0.45));
  transition: transform 0.25s ease;
}

.brand-badge img:hover {
  transform: scale(1.03);
}

.brand-badge .badge-pipe {
  color: rgba(255, 255, 255, 0.25);
  font-size: 20px;
  font-weight: 300;
}

.brand-badge .badge-sub {
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00f0ff;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.32);
  padding: 6px 14px;
  border-radius: 20px;
}

/* Tarjeta principal grande y de alto contraste */
.recruit-card {
  width: 100%;
  max-width: 1340px;
  background: rgba(11, 17, 30, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 240, 255, 0.28);
  border-radius: 26px;
  padding: 46px 52px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.85), 0 0 45px rgba(0, 240, 255, 0.08);
}

.recruit-header {
  text-align: center;
  margin-bottom: 36px;
}

.recruit-header h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #ffffff, #00f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.recruit-header p {
  font-size: 16px;
  color: #e2e8f0;
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 500;
}

/* Stepper de 4 pasos */
.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 38px;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(20, 30, 48, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: all 0.3s ease;
}

.step-indicator.active {
  background: rgba(0, 240, 255, 0.14);
  border-color: #00f0ff;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.2);
}

.step-indicator.completed {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.6);
}

.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  flex-shrink: 0;
}

.step-indicator.active .step-num {
  background: #00f0ff;
  color: #040812;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.6);
}

.step-indicator.completed .step-num {
  background: #10b981;
  color: #040812;
}

.step-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.step-meta small {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #94a3b8;
}

.step-indicator.active .step-meta small {
  color: #00f0ff;
}

.step-meta strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
}

/* Paneles de cada paso */
.step-panel {
  display: none;
  animation: fadeSlide 0.35s ease;
}

.step-panel.active {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 22px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.panel-title i {
  color: #00f0ff;
  font-size: 24px;
}

.panel-subtitle {
  font-size: 15.5px;
  color: #cbd5e1;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Bloques seccionales dentro de la Solicitud de Empleo */
.form-section-block {
  background: rgba(17, 25, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.form-section-block:hover {
  border-color: rgba(0, 240, 255, 0.32);
}

.form-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.form-section-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-badge-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(59, 130, 246, 0.22));
  border: 1px solid rgba(0, 240, 255, 0.45);
  color: #00f0ff;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-section-header h3 {
  font-size: 18.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.4px;
}

.form-section-header p {
  font-size: 13.5px;
  color: #cbd5e1;
  margin-top: 3px;
}

/* Sub-tarjetas para Empleos Previos y Referencias */
.subcard-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.subcard-box {
  background: rgba(9, 14, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 22px 24px;
}

.subcard-title {
  font-size: 15px;
  font-weight: 800;
  color: #00f0ff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Checkbox de "Sin experiencia previa" */
.toggle-check-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  user-select: none;
}

.toggle-check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00f0ff;
  cursor: pointer;
}

/* Grid de formularios */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

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

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

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

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.form-group label i {
  color: #00f0ff;
  font-size: 14px;
}

.req-star {
  color: #ff4d6d;
  font-weight: 900;
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 15px 18px;
  background: #09101f;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15.5px;
  font-weight: 500;
  outline: none;
  transition: all 0.25s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #00f0ff;
  background: #0d172c;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.18);
}

.form-select option {
  background: #0b111e;
  color: #ffffff;
  font-size: 15px;
}

.form-textarea {
  min-height: 105px;
  resize: vertical;
  line-height: 1.55;
}

/* Tarjetas de carga de archivos */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.upload-box {
  position: relative;
  background: rgba(15, 23, 42, 0.85);
  border: 2px dashed rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.upload-box:hover {
  border-color: #00f0ff;
  background: rgba(0, 240, 255, 0.06);
}

.upload-box.has-file {
  border-style: solid;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.14);
  color: #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 14px;
}

.upload-box.has-file .upload-icon {
  background: rgba(16, 185, 129, 0.22);
  color: #10b981;
}

.upload-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.upload-box p {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.45;
}

.file-name-pill {
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.16);
  padding: 6px 12px;
  border-radius: 20px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}

.upload-box.has-file .file-name-pill {
  display: inline-block;
}

.photo-preview-thumb {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #10b981;
  margin-bottom: 10px;
  display: none;
}

/* Grabador de Video en Tiempo Real (WebRTC) */
.video-studio {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: start;
}

.camera-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #050811;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.camera-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle, rgba(16, 24, 42, 0.92), rgba(5, 8, 17, 0.98));
  text-align: center;
  padding: 24px;
}

.camera-placeholder i {
  font-size: 46px;
  color: #00f0ff;
}

.camera-placeholder p {
  font-size: 15px;
  color: #e2e8f0;
  max-width: 340px;
  line-height: 1.5;
}

.rec-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(220, 38, 38, 0.9);
  color: #ffffff;
  padding: 7px 15px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1px;
}

.rec-badge.recording {
  display: inline-flex;
}

.rec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  animation: pulseRec 1s infinite;
}

@keyframes pulseRec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.camera-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.cam-btn {
  flex: 1;
  min-width: 150px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all 0.25s ease;
}

.cam-btn:hover:not(:disabled) {
  background: rgba(0, 240, 255, 0.15);
  border-color: #00f0ff;
}

.cam-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cam-btn.rec-start {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
}

.cam-btn.rec-start:hover:not(:disabled) {
  background: #ef4444;
  color: #ffffff;
}

.cam-btn.rec-stop {
  background: #ef4444;
  border-color: #ef4444;
  color: #ffffff;
}

.video-guide-box {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 26px;
}

.video-guide-box h4 {
  font-size: 16px;
  font-weight: 800;
  color: #00f0ff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.video-guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.video-guide-list li {
  font-size: 14.5px;
  color: #e2e8f0;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.video-guide-list li i {
  color: #10b981;
  margin-top: 4px;
}

.fallback-video-upload {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
  margin-top: 12px;
}

.fallback-video-upload label {
  font-size: 13.5px;
  color: #cbd5e1;
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

/* Resumen de Confirmación (Paso 4) */
.summary-box {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 22px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.summary-item {
  background: rgba(9, 14, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
}

.summary-item span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
  margin-bottom: 5px;
  font-weight: 700;
}

.summary-item strong {
  font-size: 15.5px;
  color: #ffffff;
  font-weight: 700;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  border-radius: 14px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.3);
  font-size: 14.5px;
  color: #f1f5f9;
  line-height: 1.6;
}

.privacy-check input {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  accent-color: #00f0ff;
  cursor: pointer;
  flex-shrink: 0;
}

/* Botones de navegación inferior */
.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  gap: 15px;
}

.btn-nav {
  padding: 16px 32px;
  border-radius: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  border: none;
}

.btn-cv-direct {
  background: rgba(0, 240, 255, 0.12);
  color: #00f0ff;
  border: 1.5px solid rgba(0, 240, 255, 0.45);
  box-shadow: 0 4px 18px rgba(0, 240, 255, 0.15);
}

.btn-cv-direct:hover {
  background: rgba(0, 240, 255, 0.22);
  border-color: #00f0ff;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.3);
}

.btn-cv-direct.cv-loaded {
  background: rgba(16, 185, 129, 0.18);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.25);
}

.btn-prev {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-prev:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-next {
  background: linear-gradient(135deg, #00f0ff, #3b82f6);
  color: #040812;
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.28);
  margin-left: auto;
}

.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 240, 255, 0.45);
}

.btn-submit {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
  margin-left: auto;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(16, 185, 129, 0.5);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Pantalla de Éxito */
.success-screen {
  display: none;
  text-align: center;
  padding: 45px 24px;
}

.success-screen.active {
  display: block;
}

.success-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  border: 2px solid #10b981;
  color: #10b981;
  font-size: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.success-screen h2 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 14px;
}

.success-screen p {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

@media (max-width: 1024px) {
  .recruit-card {
    padding: 32px 26px;
  }
  .stepper {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-grid-3,
  .form-grid-4,
  .subcard-grid,
  .upload-grid,
  .video-studio,
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .recruit-wrapper {
    padding: 16px 10px 40px;
  }
  .recruit-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .back-btn {
    width: 100%;
    justify-content: center;
    font-size: 12px;
    padding: 10px 14px;
    box-sizing: border-box;
  }
  .brand-badge {
    justify-content: center;
  }
  .recruit-card {
    padding: 20px 14px;
    border-radius: 16px;
  }
  .form-section-block {
    padding: 16px 12px;
    border-radius: 12px;
  }
  .stepper {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .step-indicator {
    padding: 10px 12px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .recruit-header h1 {
    font-size: 21px;
    line-height: 1.25;
  }
  .recruit-header p {
    font-size: 13px;
  }
  .wizard-actions {
    flex-direction: column-reverse;
    gap: 10px;
  }
  .btn-prev, .btn-next, .btn-submit {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
}
