.modal-box::-webkit-scrollbar {
  width: 10px;              /* ancho del scroll */
}

.modal-box::-webkit-scrollbar-track {
  background: transparent;      /* fondo del track */
  border-radius: 10px;
}

.modal-box::-webkit-scrollbar-thumb {
  background: #052a51;      /* color del thumb */
  border-radius: 10px;
}

.modal-box::-webkit-scrollbar-thumb:hover {
  background: #041f3d;      /* hover */
}


/*============ CUADRO DE VACANTE =============*/

#modalPuestos::-webkit-scrollbar {
  width: 10px;              /* ancho del scroll */
}

#modalPuestos::-webkit-scrollbar-track {
  background: transparent;      /* fondo del track */
  border-radius: 10px;
}

#modalPuestos::-webkit-scrollbar-thumb {
  background: #052a51;      /* color del thumb */
  border-radius: 10px;
}

#modalPuestos::-webkit-scrollbar-thumb:hover {
  background: #041f3d;      /* hover */
}



/*============ CUADRO FILTRO =============*/


.cuadro-filtro::-webkit-scrollbar {
  width: 10px;              /* ancho del scroll */
}

.cuadro-filtro::-webkit-scrollbar-track {
  background: transparent;      /* fondo del track */
  border-radius: 10px;
}

.cuadro-filtro::-webkit-scrollbar-thumb {
  background: #052a51;      /* color del thumb */
  border-radius: 10px;
}

.cuadro-filtro::-webkit-scrollbar-thumb:hover {
  background: #041f3d;      /* hover */
}

.puesto-box b{
  font-weight: 500;
}

.margen-titulos{
  margin-top: 50px;
}

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

.close{
  font-size: 30px;
  color: #cc2c2c;
}

.close:hover{
  cursor: pointer;
}


.multi-select {
  position: relative;
  width: 100%;
}

.multi-select-header {
  border: 1px solid #ccc;
  padding: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
}

.multi-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #ccc;
  background: #fff;
  z-index: 1000;
}

.checkbox-item {
  display: block;
  padding: 6px 10px;
  cursor: pointer;
}

.checkbox-item:hover {
  background: #f5f5f5;
}

.hidden {
  display: none;
}


/* PLACEHOLDER (no afecta checkbox, pero lo dejamos limpio) */
input:not([type="checkbox"]):not(#filtersModal input)::placeholder,
textarea:not(#filtersModal textarea)::placeholder {
  color: var(--text-muted);
}

/* FOCUS */
input:not([type="checkbox"]):not(#filtersModal input):focus,
select:not(#filtersModal select):focus,
textarea:not(#filtersModal textarea):focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(5,42,81,0.15);
}

/* HOVER */
input:not([type="checkbox"]):not(#filtersModal input):hover,
select:not(#filtersModal select):hover,
textarea:not(#filtersModal textarea):hover {
  border-color: var(--primary);
}

.label-espacio-abajo{
  margin-bottom: 25px;
  margin-top: 25px;
  font-weight: 400;
  color: #052a51;
}

/* HEADER FILTROS */
.filters-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  position: relative;
}

/* TITULO */
.filters-title {
  font-size: 24px;
  font-weight: 700;
  color: #052a51;
  text-align: center;
  position: relative;
}

/* LINEA DECORATIVA */
.filters-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #052a51, #0a3d62);
  display: block;
  margin: 8px auto 0;
  border-radius: 10px;
}

/* BOTON LIMPIAR */
.btn-clear-filters {
  background: linear-gradient(135deg, #cc2c2c, #ff4d4d);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;

  box-shadow: 0 5px 15px rgba(204,44,44,0.3);
  transition: all 0.25s ease;
}

/* HOVER */
.btn-clear-filters:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 20px rgba(204,44,44,0.45);
}

/* CLICK */
.btn-clear-filters:active {
  transform: scale(0.95);
}

/* ANIMACION ENTRADA */
.filters-top {
  animation: fadeSlideDown 0.4s ease;
}

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

.multi-select-header{
    width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-input);
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: all 0.25s ease;
}


.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}


.hidden {
  display: none !important;
}

.btn-filtro{
  color: #052a51;
  font-size: 25px;
  border: none;
  background-color: transparent;
}

.btn-filtro:hover{
  cursor: pointer;
}

.btn-filtro-ViewCandidates{
  display: flex;
  position: absolute;
  right: 50px;
}

.btn-ver-vacantes-aplicando{
  color: #052a51;
  font-size: 25px;
  border: none;
  background-color: transparent;
  display: flex;
  position: absolute;
  right: 100px;
}

.btn-ver-vacantes-aplicando:hover{
  cursor: pointer;
}



.applying-modal-box{
  width: 92%;
  max-width: 760px;
  max-height: 88vh;
  overflow-y: auto;

  background: #fff;
  border-radius: 24px;

  padding: 25px;

  animation: applyingModalEnter .35s ease;

  box-shadow:
    0 20px 60px rgba(5,42,81,.18);
}

/* HEADER */

.modal-header{
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 25px;
}

/* HEADER */

.modal-header h2{
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 12px;

  font-size: 28px;
  font-weight: 800;

  margin: 0;

  color: #111827; /* 🔥 negro */

  text-align: center;
}

.modal-header h2 i{
  color: #052a51; /* 🔥 azul empresa */
}

/* BOTON CERRAR */

.close-btn{
  position: absolute;

  right: 0;
  top: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: #eef2f7;

  color: #052a51;

  font-size: 22px;
  font-weight: bold;

  cursor: pointer;

  transform: translateY(-50%);

  transition:
    background .25s ease,
    color .25s ease,
    transform .25s ease;
}

.close-btn:hover{
  background: #ef4444;
  color: #fff;

  transform: translateY(-50%) scale(1.08) rotate(90deg);
}

/* LISTA */

.applying-list{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* CARD */

.applying-card{
  position: relative;

  background: linear-gradient(
    135deg,
    #ffffff,
    #f8fafc
  );

  border: 1px solid #e5e7eb;

  border-radius: 22px;

  padding: 22px;

  overflow: hidden;

  transition:
    transform .3s ease,
    box-shadow .3s ease;

  animation: fadeCard .4s ease;
}

.applying-card:hover{
  transform: translateY(-4px);

  box-shadow:
    0 14px 30px rgba(5,42,81,.10);
}

/* LINEA LATERAL */

.applying-card::before{
  content: "";

  position: absolute;

  left: 0;
  top: 0;

  width: 6px;
  height: 100%;

  background: linear-gradient(
    to bottom,
    #052a51,
    #0a3d73
  );
}

/* TITULO */

.applying-card h3{
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 15px;

  font-size: 22px;
  font-weight: 700;

  color: #111827; /* 🔥 negro */
}

.applying-card h3 i{
  color: #052a51; /* 🔥 azul empresa */
}

.applying-card b{
  font-weight: 500;
}

/* INFO */

.applying-info{
  display: flex;
  align-items: center;

  gap: 10px;

  margin-bottom: 12px;

  font-size: 15px;

  color: #374151;
}

.applying-info i{
  width: 18px;

  color: #052a51;
}

/* STATUS */

.applying-status{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 10px 16px;

  border-radius: 999px;

  font-size: 14px;
  font-weight: 700;

  margin-top: 10px;

  animation: pulseStatus 2s infinite;
}

/* REVISION */

.status-revision{
  background: rgba(234,179,8,.15);

  color: #b45309;

  border: 1px solid rgba(234,179,8,.3);
}

.status-revision i{
  animation: spinReview 1s linear infinite;
}

/* ACEPTADO */

.status-aceptado{
  background: rgba(34,197,94,.14);

  color: #15803d;

  border: 1px solid rgba(34,197,94,.25);
}

/* RECHAZADO */

.status-rechazado{
  background: rgba(239,68,68,.12);

  color: #b91c1c;

  border: 1px solid rgba(239,68,68,.2);
}

/* EMPTY */

.empty-state{
  text-align: center;

  padding: 50px 20px;

  color: #6b7280;

  font-size: 17px;
}

/* SCROLL */

.applying-modal-box::-webkit-scrollbar{
  width: 8px;
}

.applying-modal-box::-webkit-scrollbar-thumb{
  background: rgba(5,42,81,.35);
  border-radius: 20px;
}

/* ANIMACIONES */

@keyframes spinReview{
  from{
    transform: rotate(0deg);
  }

  to{
    transform: rotate(360deg);
  }
}

@keyframes applyingModalEnter{
  from{
    opacity: 0;
    transform: translateY(20px) scale(.96);
  }

  to{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeCard{
  from{
    opacity: 0;
    transform: translateY(12px);
  }

  to{
    opacity: 1;
    transform: translateY(0);
  }
}

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

  50%{
    transform: scale(1.02);
  }

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

.empty-state {
  text-align: center;
  padding: 40px;
  opacity: 0.7;
}

.auth-alert {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn .2s ease;
}

.auth-alert.hidden {
  display: none;
}

.auth-alert-box {
  background: #ffffff;
  width: 92%;
  max-width: 420px;
  border-radius: 16px;
  padding: 24px;
  position: relative;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  animation: popIn .25s ease;
}

/* X */
.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: #888;
  transition: .2s;
}

.auth-close:hover {
  color: #000;
  transform: scale(1.1);
}

/* TITULO */
.auth-alert-box h3 {
  margin: 10px 0;
  font-size: 20px;
  color: #0f172a;
}

/* TEXTO */
.auth-alert-box p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 18px;
}

/* BOTONES */
.auth-alert-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* BOTÓN LOGIN (PRINCIPAL) */
.auth-alert-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

/* BOTÓN PRINCIPAL LOGIN */
#authLoginBtn {
  position: relative;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;

  background: #052a51;
  color: #fff;
  font-weight: 600;

  transition: all 0.25s ease;
  overflow: hidden;
}

/* hover elegante */
#authLoginBtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: rgba(255,255,255,0.15);
  transform: skewX(-25deg);
  transition: 0.5s;
}

#authLoginBtn:hover::before {
  left: 120%;
}

#authLoginBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(5, 42, 81, 0.35);
}

/* BOTÓN APPLY (SECUNDARIO) */
#authApplyBtn {
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;

  background: #f1f5f9;
  color: #052a51;
  font-weight: 500;

  border: 1px solid #dbe5ef;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

#authApplyBtn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 42, 81, 0.06);
  opacity: 0;
  transition: 0.3s;
}

#authApplyBtn:hover::after {
  opacity: 1;
}

#authApplyBtn:hover {
  transform: translateY(-2px);
  border-color: #052a51;
}

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

@keyframes popIn {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* GRID */
#verVacantesCandidatoList {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 20px;
}

/* CARD */
.verVacantesCandidato-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border-left: 5px solid #ccc;

  display: flex;
  flex-direction: column;
  align-items: center; /* 🔥 centra todo horizontal */
  gap: 12px;

  text-align: center; /* 🔥 centra textos */
  transition: 0.2s ease;
}

.verVacantesCandidato-card:hover {
  transform: translateY(-3px);
}

/* LOGO CENTRADO PERFECTO */
.empresa-logo {
  width: 200px;
  height: 120px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  border-radius: 12px;

  display: block;
  margin: 0 auto; /* 🔥 CENTRADO REAL */
}

/* HEADER (ya no necesita flex raro) */
.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* NOMBRE EMPRESA */
.card-header h3 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}

/* PUESTOS */
.card-body {
  font-size: 13px;
  color: #555;
  min-height: 40px;
}

/* BOTÓN */
.ver-mas-btn {
  margin-top: auto; /* 🔥 lo empuja abajo */
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 8px;
  background: #052a51;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.ver-mas-btn:hover {
  background: #0b3d6b;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  #verVacantesCandidatoList {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  #verVacantesCandidatoList {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  #verVacantesCandidatoList {
    grid-template-columns: 1fr;
  }
}



.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99;
  overflow-y: auto; /* 🔥 importante */
  padding: 20px;     /* espacio cuando es grande */
}

.modal.hidden {
  display: none;
}

.modal-box {
  background: white;
  width: 100%;
  max-width: 700px;

  max-height: 90vh;   /* 🔥 clave */
  overflow-y: auto;   /* 🔥 scroll interno */
    display: flex;
  flex-direction: column;

  border-radius: 10px;
  padding: 15px;
}

#modalPuestos {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

#modalEmpresa {
  color: white;
  background: linear-gradient(135deg, #052a51, #0b3d6b);
  padding: 18px 25px;

  text-align: center;

  margin: 0 auto 25px auto; /* 🔥 CENTRADO REAL */
  border-radius: 15px;

  width: fit-content; /* 🔥 se ajusta al contenido */
  min-width: 200px;
  max-width: 90%;

  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;

  box-shadow: 0 10px 25px rgba(5, 42, 81, 0.3);
  transition: 0.2s ease;
}

#modalEmpresa:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(5, 42, 81, 0.4);
}

#modalAplicarBtn {
  flex: 1;
  max-width: 250px;

  padding: 12px;
  border: none;
  border-radius: 12px;

  background: linear-gradient(135deg, #052a51, #0b3d6b);
  color: white;

  font-weight: 600;
  font-size: 15px;

  cursor: pointer;
  position: relative;
  overflow: hidden;

  transition: all 0.25s ease;
}

/* efecto shine */
#modalAplicarBtn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: rgba(255,255,255,0.2);
  transform: skewX(-25deg);
  transition: 0.5s;
}

#modalAplicarBtn:hover::before {
  left: 120%;
}

#modalAplicarBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(5, 42, 81, 0.4);
}

#modalCloseBtn {
  flex: 1;
  max-width: 150px;

  padding: 12px;
  border-radius: 12px;

  background: #f1f5f9;
  color: #052a51;

  border: 1px solid #dbe5ef;
  font-weight: 500;

  cursor: pointer;
  transition: all 0.25s ease;
}

#modalCloseBtn:hover {
  transform: translateY(-2px);
  border-color: #052a51;
  background: #e6edf5;
}

.modal-box {
  padding-bottom: 80px; /* 🔥 espacio para botones */
}



.apply-btn {
  margin-top: 10px;
  width: 100%;

  padding: 10px;
  border: none;
  border-radius: 10px;

  background: #052a51;
  color: white;

  font-weight: 600;
  cursor: pointer;

  transition: 0.2s;
}

.apply-btn:hover {
  background: #0b3d6b;
  transform: translateY(-2px);
}


#closeForm {
  display: block;
  margin: 20px auto;

  min-width: 200px;
  padding: 10px 18px;

  border: none;
  border-radius: 10px;

  background: linear-gradient(135deg, #dc2626, #991b1b);
  color: white;

  font-weight: 600;
  font-size: 14px;

  cursor: pointer;

  position: relative;
  overflow: hidden;

  transition: all 0.25s ease;

  /* 🔥 FIX CLAVE */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

/* shine effect */
#closeForm::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 120%;
  height: 100%;
  background: rgba(255,255,255,0.18);
  transform: skewX(-25deg);
  transition: 0.5s;
}

#closeForm:hover::before {
  left: 120%;
}

#closeForm:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.35);
}

.apply-btn.applied {
  background: #ff4d4d;
  color: white;
}
