:root {
  /* Color principal */
  --primary: #052a51;
  --primary-dark: #041f3d;
  --primary-light: #0a3b6f;

  /* Fondos */
  --bg-section: #f6f8fb;
  --bg-card: #ffffff;

  /* Texto */
  --text-main: #052a51;
  --text-muted: #6b7280;

  /* Premium */
  --gold-premium: #d4af37;
  --gold-light: #f5d76e;

  /* Estados */
  --success: #2ecc71;
  --danger: #e74c3c;
}

:root {
  --primary: #052a51;
  --primary-light: #0b3f78;
  --primary-soft: #eaf1f8;

  --text-dark: #1f2a37;
  --text-muted: #6b7280;

  --border: #d1d9e6;
  --bg-input: #f9fbfd;

  --danger: #dc2626;
  --success: #16a34a;

  --gold-premium: #d4af37;
}

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

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

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

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

.btn-subir-vacante {
  z-index: 1;
  background-color: #052a51; /* azul empresa */
  color: #fff;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(5, 42, 81, 0.25);
  transition: all 0.2s ease-in-out;
}

.btn-subir-vacante:hover {
  background-color: #06406f;
}

.btn-subir-vacante:active {
  transform: scale(0.98);
}


.form-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-overlay.active {
  display: block;
  opacity: 1;
}

.form-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  z-index: 1000;
  display: none;
  opacity: 0;
  transform: translate(-50%, -45%) scale(0.96);
  transition: all 0.35s ease;
}

.form-modal.active {
  display: block;
  opacity: 1;
}

.form-modal h2 {
  margin-bottom: 25px;
  color: var(--primary);
  text-align: center;
}

.form-group {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
}

.form-group input,
.form-group select{
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d1d9e6;
  font-size: 0.95rem;
  transition: all 0.25s ease;
  background: #f9fbfd;
}

.container-disponibilidad {
  max-width: 500px;
  width: 90%;
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translate(-50%, -10px);
  background: #ffffff;
  border-radius: 14px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.container-disponibilidad.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  z-index: 999999;
}

/* cada bloque */
.stat {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* iconos */
.stat i {
  font-size: 18px;
  color: #052a51;
  background: rgba(5, 42, 81, 0.1);
  padding: 10px;
  border-radius: 8px;
}

/* texto */
.stat .label {
  display: block;
  font-size: 0.8rem;
  color: #666;
}

.stat b {
  font-size: 1.2rem;
  color: #052a51;
}

/* separador */
.divider {
  width: 1px;
  height: 35px;
  background: #e5e5e5;
}

.container-disponibilidad.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  z-index: 1000;
}

/* estados */
.stat b.ok {
  color: #16a34a; /* verde */
}

.stat b.warning {
  color: #f59e0b; /* naranja */
}

.stat b.danger {
  color: #dc2626; /* rojo */
}


.ubicacion-header,
.puesto-header {
  display: flex;
  align-items: center;
  width: 100%;
}

.Titulos_principales {
  font-size: 20px;
  flex: 1;
  text-align: center;
  margin: 0;
}

.Titulos_secundarios{
margin-top: 10px;
}

.ubicacion-card{
    background-color: rgb(202, 202, 202);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.puesto-card{
    background-color: rgb(233, 233, 233);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.remove-puesto,
.remove-ubicacion {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--danger);
  font-weight: 900;
}

.remove-puesto,.remove-ubicacion:hover {
  cursor: pointer;
}

.estilos-inputs-puesto{
    margin-bottom: 10px;
}

.jobDescription{
  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;
  resize: none;
  height: 100px;
}

.jobDescription::placeholder {
  color: var(--text-muted);
}

.jobDescription:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(5,42,81,0.15);
}

.jobDescription:hover {
  border-color: var(--primary);
}

.form-group.column {
  flex-direction: column;
}

.input-add-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.requirementsInput {
  flex: 1; /* 🔥 ocupa todo el espacio disponible */
  width: auto !important; /* quita ese 50% que te está dañando */
}

.addrequirementsBtn {
  width: 50px;
  height: 50px;
  flex-shrink: 0; /* evita que se encoja */
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 0 14px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.addrequirementsBtn:active {
  transform: scale(0.95);
}

@media (max-width: 480px) {
  .input-add-container {
    flex-direction: row;
    gap: 6px;
  }

  .addrequirementsBtn {
    padding: 0 12px;
    font-size: 1.1rem;
  }
}

.date-range {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* cada bloque fecha */
.date-box {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* label arriba */
.date-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #052a51;
}

/* inputs */
.date-box input {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  outline: none;
}

/* flecha en medio */
.date-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-size: 1.2rem;
  color: #052a51;
}

/* responsive */
@media (max-width: 600px) {
  .date-range {
    flex-direction: column;
    align-items: stretch;
  }

  .date-arrow {
    transform: rotate(90deg);
    margin: 5px 0;
  }
}


.addCompensationsBtn {
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 0 14px;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.addCompensationsBtn:active {
  transform: scale(0.95);
}

@media (max-width: 480px) {
  .input-add-container {
    flex-direction: row;
    gap: 6px;
  }

  .addCompensationsBtn {
    padding: 0 12px;
    font-size: 1.1rem;
  }
}


/* CONTENEDOR EN FILA */
.radio-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 10px;
}

/* OPCIÓN */
.radio-option {
  position: relative;
  cursor: pointer;
}

/* OCULTAR RADIO REAL */
.radio-option input {
  display: none;
}

/* ESTILO VISUAL */
.radio-option span {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  border: 2px solid #052a51; /* color empresa */
  color: #052a51;
  font-weight: 500;
  transition: all 0.2s ease;
}

/* HOVER */
.radio-option:hover span {
  background: rgba(5, 42, 81, 0.1);
}

/* SELECCIONADO */
.radio-option input:checked + span {
  background: #052a51;
  color: #fff;
  border-color: #052a51;
  box-shadow: 0 4px 10px rgba(5, 42, 81, 0.3);
}

.form-group input:focus,
.form-group select:focus{
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(5,42,81,0.12);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: 30px;
  border: none;
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-light)
  );
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

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

.submit-btn:active {
  transform: scale(0.97);
}

.close-form {
  position: absolute;
  top: 18px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #999;
  transition: color 0.2s ease, transform 0.2s ease;
}

.close-form:hover {
  color: var(--danger);
  transform: rotate(90deg);
}



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

.form-group input:hover,
.form-group select:hover,
textarea:hover {
  border-color: var(--primary);
}


.upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 2px dashed var(--primary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.upload-box:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.company-form {
  display: flex;
  flex-direction: column;
}

.form-section {
  margin-bottom: 28px;
  animation: fadeUp 0.5s ease both;
}

.form-section h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-address h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section-language{
  margin-top: -20px;
}

.form-section-language h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-section input, select{
  margin-bottom: 10px;
}

.section-title-with-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  color: var(--primary);
}

.info-tooltip i {
  font-size: 14px;
  opacity: 0.8;
}

.info-tooltip:hover i {
  opacity: 1;
}

/* CAJA DEL TOOLTIP */
.tooltip-text {
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  background: #1f2937;
  color: #fff;
  font-size: 13px;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

/* FLECHITA */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
}

/* HOVER */
.info-tooltip:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-4px);
}


input,
select,
textarea {
  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;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(5,42,81,0.15);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--primary);
}

.form-group {
  display: flex;
  gap: 15px;
  margin-bottom: 18px;
}

.form-group.column {
  flex-direction: column;
}


select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='none' stroke='%23052a51' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
}

select[multiple] {
  height: auto;
  padding: 12px;
  background-image: none;
}


input[list] {
  cursor: pointer;
}


#requirements {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.chip {
  background: var(--primary);
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  margin: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip button {
  background: none;
  border: none;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  margin-bottom: -5px;
}

.add-btn {
    width: 100%;
  background: transparent;
  border: 1px dashed var(--primary);
  color: var(--primary);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: 0.25s;
}

.add-btn:hover {
  background: var(--primary-soft);
}

.remove-btn {
  pointer-events: auto;
  z-index: 10;
  cursor: pointer;
  background: transparent;
  border: none;
}


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


/* Mensajes de error específicos para habilidades y estudio */
#error, .error {
  color: var(--danger, #e74c3c);
  font-size: 0.85rem;
  display: block;
  margin-top: 10px;  /* sube un poco el mensaje hacia el input */
  margin-bottom: 15px; /* espacio debajo del mensaje */
}

/* Mensajes de error específicos para habilidades y estudio */
.success-text{
  color:  #2e7d32;
  font-size: 0.85rem;
  display: block;
  margin-top: 10px;  /* sube un poco el mensaje hacia el input */
  margin-bottom: 15px; /* espacio debajo del mensaje */
}

.input-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.35) !important;
}

.input-success {
  border-color: #2ecc71 !important;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.35) !important;
}

select.input-error {
  border: 2px solid #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.35) !important;
}

select.input-success {
  border: 2px solid #2ecc71 !important;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.35) !important;
}


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

.submit-btn:active {
  transform: scale(0.97);
}



#addressCountry {
  height: 50px;
  margin-top: 9px;
}

.address-country{
  margin-bottom: 0px !important;
}


#addressCountry option {
  font-size: 0.9rem;
  padding: 6px 10px;
}

.form-message {
  display: none;
  margin-bottom: 18px;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  animation: fadeDown 0.35s ease;
}

.form-message.error {
  display: block;
  background: #fdecea;
  color: #b42318;
  border: 1px solid #f5c2c7;
}

.form-message.success {
  display: block;
  background: #ecfdf3;
  color: #027a48;
  border: 1px solid #abefc6;
}

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




@media (max-width: 480px) {
  .form-group {
    flex-direction: column;
  }

  .form-modal {
    padding: 22px;
  }
}

@media (max-width: 600px) {
  .form-modal {
    max-height: 100vh;
    border-radius: 0;
  }
}

@media (max-width: 400px) {
  .submit-btn {
    font-size: 0.95rem;
    padding: 13px;
  }
}


