/* File: /public/assets/css/pages/footer-trabaja-con-nosotros.css */

/* ======================================= */
/* TRABAJA CON NOSOTROS                    */
/* ======================================= */

.empleo-language-note {
  margin: 1.2rem 0 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--color-acento);
  background-color: #f4f7f6;
  border-radius: var(--border-radius-6);
  font-family: var(--fuente-principal);
  font-size: var(--texto-14);
  line-height: 1.6;
  color: var(--color-texto-secundario);
}

.empleo-optional {
  font-weight: 400;
  color: var(--color-texto-secundario);
}

/* ======================================= */
/* TIPO DE RELACIÓN                        */
/* ======================================= */

.empleo-role-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.empleo-role-legend {
  margin-bottom: 0.55rem;
}

.empleo-role-intro {
  margin: 0 0 1rem;
  font-family: var(--fuente-principal);
  font-size: var(--texto-14);
  line-height: 1.6;
  color: var(--color-texto-secundario);
}

.empleo-role-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.empleo-role-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.empleo-role-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.empleo-role-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  height: 100%;
  box-sizing: border-box;
  padding: 1.2rem 1.3rem;
  border: 2px solid var(--color-borde-1);
  border-radius: var(--border-radius-10);
  background-color: var(--color-blanco);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    transform 0.15s ease;
}

.empleo-role-option:hover .empleo-role-card {
  border-color: var(--color-borde-2);
  background-color: #f9f9f9;
  transform: translateY(-1px);
}

.empleo-role-radio:checked + .empleo-role-card {
  border-color: var(--color-acento);
  background-color: rgba(0, 90, 44, 0.05);
  box-shadow: 0 0 0 1px rgba(0, 90, 44, 0.1);
}

.empleo-role-radio:focus-visible + .empleo-role-card {
  outline: none;
  border-color: var(--color-acento);
  box-shadow: 0 0 0 3px rgba(0, 90, 44, 0.12);
}

.empleo-role-title {
  font-family: var(--fuente-principal);
  font-size: var(--texto-16);
  font-weight: 800;
  line-height: 1.35;
  color: var(--color-texto-principal);
}

.empleo-role-radio:checked + .empleo-role-card .empleo-role-title {
  color: var(--color-acento);
}

.empleo-role-description {
  font-family: var(--fuente-principal);
  font-size: var(--texto-13);
  line-height: 1.6;
  color: var(--color-texto-secundario);
}

.empleo-optional[hidden],
#empleo-cv-required[hidden] {
  display: none;
}

@media (max-width: 700px) {
  .empleo-role-options {
    grid-template-columns: 1fr;
  }
}

/* ======================================= */
/* TELÉFONO                                */
/* ======================================= */

.empleo-phone-row {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 1rem;
}

.empleo-phone-prefix,
.empleo-phone-number {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.empleo-small-label {
  font-family: var(--fuente-principal);
  font-size: var(--texto-12);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-texto-secundario);
}

/* ======================================= */
/* CURRÍCULUM · DROPZONE                   */
/* Mismo patrón visual que dashboard       */
/* ======================================= */

.empleo-cv-file-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.empleo-cv-dropzone {
  width: 100%;
  min-height: 120px;
  box-sizing: border-box;

  border-radius: var(--border-radius-10);
  border: 2px dashed var(--color-borde-1);
  background: var(--color-blanco);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 0.35rem;
  padding: 1.2rem;

  cursor: pointer;
  text-align: center;

  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease,
    transform 0.15s ease;
}

.empleo-cv-dropzone:hover {
  border-color: var(--color-borde-2);
  background-color: #f9f9f9;
  transform: translateY(-1px);
}

.empleo-cv-dropzone:focus-visible {
  outline: none;
  border-color: var(--color-acento);
  box-shadow: 0 0 0 3px rgba(0, 90, 44, 0.12);
}

.empleo-cv-dropzone.is-dragover {
  border-color: var(--color-acento);
  background: rgba(0, 90, 44, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 90, 44, 0.1);
}

.empleo-cv-dropzone-title {
  font-family: var(--fuente-principal);
  font-size: var(--texto-14);
  font-weight: 800;
  line-height: 1.4;
  color: var(--color-texto-principal);
}

.empleo-cv-dropzone-sub {
  font-family: var(--fuente-principal);
  font-size: var(--texto-12);
  line-height: 1.45;
  color: var(--color-texto-secundario);
}

/* Archivo seleccionado */

.empleo-cv-selected {
  margin: 0.8rem 0 0;
  padding: 0.75rem 1rem;

  border: 1px solid rgba(0, 90, 44, 0.2);
  border-radius: var(--border-radius-8);
  background-color: rgba(0, 90, 44, 0.05);

  font-family: var(--fuente-principal);
  font-size: var(--texto-12);
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-acento);

  overflow-wrap: anywhere;
}

.empleo-cv-selected[hidden] {
  display: none;
}

/* Texto auxiliar */

.empleo-cv-help {
  margin: 0.35rem 0 0;
  font-family: var(--fuente-principal);
  font-size: var(--texto-12);
  line-height: 1.45;
  color: var(--color-texto-secundario);
}

/* ======================================= */
/* ESTADO DE ERROR DEL CV                  */
/* ======================================= */

/*
 * El input real está oculto, por lo que cuando la validación
 * añade la clase de error se resalta visualmente la dropzone.
 */

.empleo-cv-file-hidden.footer-contacto-input--error ~ .footer-contacto-error {
  display: block;
}

/*
 * :has() permite marcar también la dropzone cuando el input
 * de archivo contiene el estado de error.
 */

.footer-contacto-field:has(.empleo-cv-file-hidden.footer-contacto-input--error)
  .empleo-cv-dropzone {
  border-color: var(--color-peligro);
  background-color: rgba(200, 0, 0, 0.03);
  box-shadow: 0 0 0 1px rgba(200, 0, 0, 0.08);
}

/* ======================================= */
/* RESPONSIVE                              */
/* ======================================= */

@media (max-width: 600px) {
  .empleo-phone-row {
    grid-template-columns: 1fr;
  }

  .empleo-cv-dropzone {
    min-height: 120px;
    padding: 1.2rem 1rem;
  }

  .empleo-cv-dropzone-title {
    font-size: var(--texto-14);
  }

  .empleo-cv-dropzone-sub {
    max-width: 28rem;
  }
}
