/*=======================/
/ verVacantesEmpresa.css /
/=======================*/

.filters button {
  padding: 6px 12px;
  border: 1px solid #ddd;
  background: #c6c8ca;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filters button:hover {
  border-color: #052a51;
}

/* 🔥 ACTIVO (color empresa) */
.filters button.active {
  background: #052a51;
  color: white;
  border-color: #052a51;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #888;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.vacantes-container {
  padding: 30px;
  /*margin-top: -400px;*/
}

.vacantes-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* 🔥 centro absoluto del título */
.vacantes-header h2 {
  margin: 0;
}

/* filtros a la derecha */
.vacantes-header .filters {
  margin-left: auto;
}

.filters button {
  margin: 0 5px;
  padding: 6px 12px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
}

.vacantes-list {
  margin-top: 20px;
  display: grid;
  gap: 15px;
  justify-content: center;
}

.vacante-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vacante-header h2 {
  margin: 0 auto;
  margin-bottom: 25px;
}

.vacante-header .tittle-icon{
    color: #052a51;
}

/*BARRA DE PROGRESO*/

:root {
  --progress-duration: 2s;
}

.progress-bar {
  display: flex;
  align-items: center;
  margin: 10px 0 15px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #aaa;
}

.step::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #eb3131;
  margin-bottom: 5px;
}

.step.active {
  color: #052a51; /* ✔ texto */
}

.step.active::before {
  background: #052a51;
}

.step.pulse-sync::before {
  animation: pulseSync var(--progress-duration) linear infinite;
}

@keyframes pulseSync {
  0% {
    transform: scale(1);
  }

  80% {
    transform: scale(1.4);
  }

  100% {
    transform: scale(1);
  }
}

.line {
  flex: 1;
  height: 10px;
  background: #ccc;
  margin: 0 5px;
  border-radius: 10px;
}

.line.active {
  background: #052a51;
}

.line-animate {
  position: relative;
  overflow: hidden;
}

.line-animate::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%; /* tamaño de la “ola” */
  background: #052a51;
  border-radius: 10px;
  animation: slideLoop var(--progress-duration) linear infinite;
}

@keyframes slideLoop {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}


/*vacante header*/

.vacante-header .estado {
  position: absolute;
  right: 0;
}

.vacante-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  border-left: 5px solid #ccc;
  width: 100%;
  max-width: 700px;
  overflow: hidden;
  margin: 0 auto;
}

.vacante-card.pending { border-color: #f39c12; }
.vacante-card.published { border-color: #27ae60; }
.vacante-card.closed { border-color: #e74c3c; }

.vacante-header {
  display: flex;
  justify-content: space-between;
}

.estado {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f5f7fa;
}

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

.spin {
  display: inline-block;
  animation: spin 1.2s linear infinite;
}


.ubicacion-box {
  background: #f5f7fa;
  padding: 15px;
  margin-top: 10px;
  border-radius: 8px;
}

.puesto-box {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 12px;
  margin-top: 10px;
  border-radius: 6px;
}

.vacante-body h3 {
  margin-top: 15px;
  color: #052a51;
}

.vacante-body b {
  margin-top: 15px;
  color: #052a51;
}

.vacante-body p{
    margin-top: 15px;
}

.vacante-body i{
    color: #052a51;
}

pre {
  background: #111;
  color: #0f0;
  padding: 10px;
  border-radius: 6px;
  overflow-x: auto;
}



.description-box {
  background: #f5f7fa;
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 12px 14px;
  border-radius: 8px;
  border-left: 4px solid #052a51;

  font-size: 14px;
  white-space: pre-line; /* 👈 ESTE ES EL TRUCO */
}




.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 5px 0;
}

.section-title {
  color: #052a51;
  margin-top: 15px;
}

.puesto-title {
  text-align: center;
  color: #052a51;
  font-size: 22px;
  margin-bottom: 10px;
}

.salary-box {
  background: #f5f7fa;
  padding: 10px;
  border-radius: 6px;
  border-left: 4px solid #052a51;
  margin-top: 10px;
}

.no-comp {
  color: #888;
  font-style: italic;
}

.chip {
  background: transparent;
  color: rgb(16, 16, 16);
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
}

.chips-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}


/* =========================
   EVITAR QUE TEXTO SE SALGA
========================= */

.puesto-box p,
.ubicacion-box p {
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  max-width: 100%;
}

/* descripción específicamente */
.puesto-box p {
  line-height: 1.5;
}

/* evita scroll horizontal en pre */
pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.description span {
  display: block;
  margin-top: 5px;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

/*fechas*/

/* CONTENEDOR */
.dates-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  margin-bottom: 15px;
}

/* GRUPOS */
.date-group {
  display: flex;
  flex-direction: column;
  width: 140px; /* más pequeño */
}

/* LABEL */
.date-group label {
  font-size: 15px;
  margin-bottom: 3px;
  color: #777;
}


.date-group input {
  padding: 6px 8px;
  border-radius: 6px;
  border: none;
  background: #f5f7fa;
  font-size: 15px;
  text-align: center;
  pointer-events: none; 
  user-select: none;    
  cursor: default;      
}

/* ICONO CENTRAL */
.date-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
  height: 100%;
  margin-bottom: 2px;
  color: #052a51;
  font-size: 16px;
}



.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  border-radius: 12px;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 22px;
}

.candidato-card {
  border: 1px solid #eee;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 10px;
}

.btn-candidatos {
  display: block;
  margin: 15px auto 0;
  padding: 10px 16px;
  background: linear-gradient(135deg, #052a51, #07406b);
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}

.btn-candidatos i{
  color: white;
}

.btn-candidatos:hover {
  background: #041f3d;     /* 👈 mismo tono que usas en scroll */
}




.puesto-actions {
  display: flex;
  justify-content: center;
}

/* 🔥 BASE */
.btn-cerrar-puesto {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff4d4f, #c03737);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition: all 0.25s ease;
  margin: 15px auto;

  box-shadow: 0 6px 18px rgba(192, 55, 55, 0.35);
}

/* 🔥 ICONO */
.btn-cerrar-puesto i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.publicado i{
  color: white;
}

/* ✨ HOVER BONITO */
.btn-cerrar-puesto:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(192, 55, 55, 0.45);
  background: linear-gradient(135deg, #ff6b6b, #a82d2d);
}

/* 💥 CLICK */
.btn-cerrar-puesto:active {
  transform: scale(0.97);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* 🔄 ESTADO PENDIENTE */
.btn-cerrar-puesto.pending {
  background: linear-gradient(135deg, #f5a623, #d48806);
  box-shadow: 0 6px 18px rgba(245, 166, 35, 0.35);
}

/* 🔄 SPINNER */
.spin {
  animation: spin 1s linear infinite;
}

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

/* 🚫 DISABLED */
.btn-cerrar-puesto.disabled {
  background: #e0e0e0;
  color: #777;
  cursor: not-allowed;
  box-shadow: none;
}

/* 🟢 CERRADO */
.btn-cerrar-puesto.closed {
  background: #444;
  box-shadow: none;
}



/* ================= VACANTE ACTIONS ================= */

.vacante-actions {
  display: flex;
  justify-content: center;
  margin-top: 25px;
}

/* 🔥 BASE */
.btn-cerrar-vacante {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 14px 22px;

  border: none;
  border-radius: 14px;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;

  cursor: pointer;

  color: #fff;

  transition: all 0.25s ease;

  backdrop-filter: blur(6px);

  position: relative;
  overflow: hidden;
}

/* ✨ EFECTO BRILLO */
.btn-cerrar-vacante::before {
  content: "";

  position: absolute;
  top: 0;
  left: -120%;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.18),
    transparent
  );

  transition: all 0.6s ease;
}

.btn-cerrar-vacante:hover::before {
  left: 120%;
}

/* 🔥 ICONOS */
.btn-cerrar-vacante i {
  font-size: 15px;
  transition: transform 0.3s ease;
}

/* ================= PUBLICADO ================= */

.btn-cerrar-vacante.publicado {
  background: linear-gradient(135deg, #5b21b6, #7c3aed);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
}

.btn-cerrar-vacante.publicado:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.45);
}

.btn-cerrar-vacante.publicado:hover i {
  transform: rotate(-10deg) scale(1.15);
}

/* ================= PENDIENTE ================= */

.btn-cerrar-vacante.pending {
  background: linear-gradient(135deg, #ffb347, #ff8c42);
  box-shadow: 0 8px 22px rgba(255, 140, 66, 0.35);
}

/* ================= CLOSED ================= */

.btn-cerrar-vacante.closed {
  background: linear-gradient(135deg, #4b5563, #1f2937);
  box-shadow: none;
}

/* ================= DISABLED ================= */

.btn-cerrar-vacante.disabled {
  cursor: not-allowed;
  opacity: 0.92;
}

/* ================= SPIN ================= */

.spin {
  animation: spinVacante 1s linear infinite;
}

@keyframes spinVacante {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


/* ===== MODAL ===== */
.confirm-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.confirm-modal.hidden {
  display: none;
}

/* ===== CAJA ===== */
.confirm-box {
  width: 90%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  animation: fadeIn 0.25s ease;
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

/* ===== HEADER ===== */
.confirm-header h2 {
  text-align: center;
  color: #052a51;
  margin-bottom: 10px;
}

/* ===== BODY ===== */
.confirm-body p {
  text-align: center;
  color: #555;
  margin-bottom: 15px;
}

.confirm-body textarea {
  width: 100%;
  min-height: 90px;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 10px;
  resize: none;
  outline: none;
}

.confirm-body textarea:focus {
  border-color: #052a51;
}

/* ===== BOTONES ===== */
.confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.confirm-actions .btn {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

/* cancelar */
.btn.cancel {
  background: #e0e0e0;
}

.btn.cancel:hover {
  background: #cfcfcf;
}

/* confirmar (color empresa 🔥) */
.btn.ok {
  background: linear-gradient(135deg, #052a51, #07406b);
  color: white;
}

.btn.ok:hover {
  background: #041f3d;
}

/* animación */
@keyframes fadeIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}



/* =========================
   📱 TABLET (≤ 1024px)
========================= */
@media (max-width: 1024px) {

  .vacantes-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .vacante-header {
    flex-direction: column;
    align-items: center;
    position: relative;
  }

  .vacante-header .estado {
    position: static; /* 🔥 quita el absolute */
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .vacantes-header h2 {
    width: 100%;
    text-align: center;
    font-size: 22px;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
  }

  .filters button {
    flex: 1 1 auto;
    min-width: 120px;
  }

  .btn-subir-vacante {
    width: 100%;
  }
}


/* =========================
   📱 MOBILE (≤ 600px)
========================= */
@media (max-width: 600px) {

  .vacantes-container {
    padding: 15px;
  }

  .vacante-header .estado {
    position: static; /* 🔥 quita el absolute */
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .vacantes-header h2 {
    font-size: 20px;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .filters button {
    width: 100%;
    padding: 10px;
    font-size: 14px;
  }

  .header-actions {
    gap: 8px;
  }

  .btn-subir-vacante {
    padding: 12px;
    font-size: 14px;
  }
}