.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 */
}






.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;
}

.logo-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 1rem;
  border: 1px dashed #ccc;
  border-radius: 8px;
  background: #fafafa;
}

.logo-preview img {
  max-width: 120px;
  max-height: 120px;
  object-fit: contain;

  /* patrón para mostrar transparencia */
  background: repeating-conic-gradient(
    #eee 0% 25%,
    #fff 0% 50%
  ) 50% / 20px 20px;

  border-radius: 6px;
}

#area{
  margin-bottom: 10px;
}

#otherArea{
  margin-bottom: 10px;
}

#skillInputEmpresa{
  margin-bottom: 10px;
}

.input-add-container {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.perfiles-contratan{
  background-color: #eee;
  border-radius: 10px;
  padding: 20px;
}

.perfiles-contratan input{
  background-color: transparent;
}

.beneficios{
  background-color: #eee;
  border-radius: 10px;
  padding: 20px;
}

.beneficios input{
  background-color: transparent;
}

.presencia-digital{
  background-color: #eee;
  border-radius: 10px;
  padding: 20px;
}

.presencia-digital .section-hint{
  margin-bottom: 10px;
}

.presencia-digital select, input{
  margin-top: 10px;
}

#addSkillBtnEmpresa {
  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;
  margin-top: 10px;
}

#addSkillBtnEmpresa:active {
  transform: scale(0.95);
}

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

  #addSkillBtnEmpresa {
    padding: 0 12px;
    font-size: 1.1rem;
  }
}

#addBenefitBtnEmpresa {
  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;
  margin-top: 10px;
}

#addBenefitBtnEmpresa:active {
  transform: scale(0.95);
}

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

  #addBenefitBtnEmpresa {
    padding: 0 12px;
    font-size: 1.1rem;
  }
}


#addDigitalBtn {
width: 80px;
  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;
  margin-top: 10px;
}

#addDigitalBtn:active {
  transform: scale(0.95);
}

@media (max-width: 480px) {
  #addDigitalBtn {
    font-size: 1.1rem;
  }
}

.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;
}

.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);
}

.premium-only {
  background: #fdfbf4;
  border: 1px dashed var(--gold-premium);
  padding: 14px;
  border-radius: 12px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--primary);
}

.switch {
  display: flex;
  align-items: center;
  gap: 12px;
}

.switch input {
  display: none;
}

.slider {
  width: 46px;
  height: 26px;
  background: #ccc;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: 0.3s;
}

.slider::before {
  content: "";
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

.switch input:checked + .slider {
  background: var(--primary);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}



@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);
}

textarea#presentation {
  margin-top: 5px;
  margin-bottom: 10px;
  resize: none;
  min-height: 100px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  width: 100%;
  transition: all 0.25s ease;
}

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

.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,
.form-section 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;
}


#skills {
  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 {
  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;
}


.upload-box {
  border: 2px dashed var(--primary);
  padding: 18px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: 0.3s;
  background: var(--bg-input);
  color: var(--primary);
  margin-bottom: 10px;
}

.upload-box i {
  font-size: 1.6rem;
  margin-bottom: 6px;
  display: block;
}

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

/* 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 */
}





.account-box {
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 14px;
  background: var(--bg-input);
}

.account-box input{
  margin-bottom: 10px;
  margin-top: 10px;
}


.premium-only {
  background: #fffdf5;
  border: 1px dashed var(--gold-premium);
  padding: 16px;
  border-radius: 12px;
}


.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--primary);
}

.switch input {
  display: none;
}

.slider {
  width: 46px;
  height: 26px;
  background: #ccc;
  border-radius: 50px;
  position: relative;
  cursor: pointer;
  transition: 0.3s;
}

.slider::before {
  content: "";
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2px;
  left: 2px;
  transition: 0.3s;
}

.switch input:checked + .slider {
  background: var(--primary);
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

.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;
}



.phone-dropdown-empresa {
  position: relative;
  width: 220px;
  cursor: pointer;
  font-family: sans-serif;
}
.phone-dropdown-empresa .selected {
  display: flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 4px;
  position: relative;
  height: 50px;
  margin-top: 5px;
}
.phone-dropdown-empresa .selected img {
  width: 20px;
  height: 14px;
  object-fit: cover;
}
.phone-dropdown-empresa .options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  border: 1px solid #ccc;
  max-height: 250px;
  overflow-y: auto;
  background: white;
  z-index: 10000000;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.phone-dropdown-empresa.active .options {
  display: block;
}
.phone-dropdown-empresa .options li {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
}
.phone-dropdown-empresa .options li:hover {
  background: #f0f0f0;
}
.phone-dropdown-empresa .options img {
  width: 20px;
  height: 14px;
  object-fit: cover;
}

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

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

.phone-group {
  position: relative;
  z-index: 999999;
}

.form-group.phone-group {
  overflow: visible !important;
}



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

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


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




.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px; /* espacio para el ojito */
}

.password-wrapper .toggle-password {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
  font-size: 16px;
}

.password-wrapper .toggle-password:hover {
  color: #333;
}

.password-rules {
  display: none;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #e53935; /* rojo */
}

.password-match {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #e53935;
}

.password-rules.valid {
  color: #28a745; /* verde */
}

.password-rules.invalid {
  color: #dc3545; /* rojo */
}

.password-match.valid {
  color: #28a745;
}

.password-match.invalid {
  color: #dc3545;
}





.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);
  }
}


/* Overlay que bloquea el fondo */
#overlayEmailVerification{
  display: none; /* mientras probamos, luego lo pones en none */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* semi-transparente */
  z-index: 9998; /* detrás del cuadro */
}

/* Contenedor del cuadro de verificación */
#emailVerificationBox {
  display: none; /* mientras probamos */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* centra perfectamente */
  width: 350px; /* ancho fijo o adaptativo */
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  z-index: 9999; /* encima del overlay */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Texto principal del cuadro */
#verifyEmailText {
  margin-bottom: 8px;
  font-weight: 600;
}

/* Input de código de verificación */
#verificationCode {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 2px solid #052a51;
  margin-bottom: 10px;
  font-size: 14px;
  text-align: center;
}

#verificationCode:focus{
  border: none;
}

/* Botón de verificar código */
#verifyCodeBtn {
  width: 100%;
  padding: 10px;
  background: #052a51;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

/* Opcional: hover para el botón */
#verifyCodeBtn:hover {
  background: #031a32;
}

/* Botón de reenviar código */
#resendCodeBtn {
  width: 100%;
  padding: 10px;
  background: #ccc; /* gris cuando está deshabilitado */
  color: #333;
  border: none;
  border-radius: 6px;
  cursor: not-allowed; /* cursor distinto mientras está deshabilitado */
  font-weight: 600;
  margin-top: 8px;
  transition: background 0.3s, color 0.3s;
}

/* Cuando está habilitado */
#resendCodeBtn:enabled {
  background: #052a51;
  color: white;
  cursor: pointer;
}

#resendCodeBtn:enabled:hover {
  background: #031a32;
}


/*================================*/


.logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
}

.logo-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.logo-btn {
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
  background: #eee;
  font-size: 14px;
}


.logo-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  border: none;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  transition: 0.2s;
}

.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none; /* 🔥 CLAVE */
}

/* VER */
.logo-btn.view {
  background: #2d8cff;
  color: white;
}

.logo-btn.view:hover {
  background: #1a6fe0;
}

/* DESCARGAR */
.logo-btn.download {
  background: #00c853;
  color: white;
}

.logo-btn.download:hover {
  background: #00a844;
}

/* REEMPLAZAR */
.logo-btn.replace {
  background: #ff9800;
  color: white;
}

.logo-btn.replace:hover {
  background: #e68900;
}

.logo-info {
  display: flex;
  flex-direction: column; /* 🔥 ahora TODO vertical */
  align-items: center;
  gap: 8px;
}

.logo-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
}

.logo-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #28a745; /* verde bonito */
}

.logo-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.logo-error {
  margin-top: 10px;
  color: #ff4d4f;
  font-size: 0.9rem;
  display: none;
}

.logo-status {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #22c55e;
}



@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;
  }
}


