/* =============================
   ESTILO SECCIÓN "TRABAJA CON NOSOTROS"
   ============================= */
   #trabaja {
    width: 100%;
    max-width: 800px;
    margin: 80px auto;
    padding: 40px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  /* Título */
  #trabaja h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #009fe3;
    margin-bottom: 15px;
  }
  
  /* Subtítulo */
  #trabaja p {
    text-align: center;
    font-size: 1.05rem;
    color: #444;
    margin-bottom: 35px;
  }
  
  /* =============================
     FORMULARIO
     ============================= */
  #trabajaForm {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }
  
  /* Contenedor del campo */
  .contact-field {
    position: relative;
    display: flex;
    flex-direction: column;
  }
  
  /* Campos de texto y textarea */
  .contact-field input,
  .contact-field textarea {
    width: 100%;
    padding: 14px 15px 14px 45px; /* espacio a la izquierda para el ícono */
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s ease;
    background: #f9f9f9;
    resize: none;
  }
  
  .contact-field input:focus,
  .contact-field textarea:focus {
    border-color: #009fe3;
    background: #fff;
    box-shadow: 0px 0px 8px rgba(0, 159, 227, 0.3);
  }
  
  /* Etiquetas flotantes */
  .contact-field label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 5px;
    font-size: 0.95rem;
    color: #777;
    pointer-events: none;
    transition: 0.3s ease;
  }
  
  /* Efecto al escribir o enfocar */
  .contact-field input:focus + span + label,
  .contact-field input:not(:placeholder-shown) + span + label,
  .contact-field textarea:focus + span + label,
  .contact-field textarea:not(:placeholder-shown) + span + label {
    top: -10px;
    font-size: 0.8rem;
    color: #009fe3;
  }
  
  /* Icono dentro del campo */
  .contact-icon {
    position: absolute;
    left: 15px; 
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
    pointer-events: none;
  }
  
  /* =============================
     ESTILO ESPECIAL PARA FILE UPLOAD
     ============================= */
  /* =============================
   CAMPO FILE (Subir archivo)
   ============================= */
.file-field {
    position: relative;
    display: flex;
    flex-direction: column;
  }
  
  /* Ocultamos el input nativo */
  .file-field input[type="file"] {
    display: none;
  }
  
  /* Estilo visible que reemplaza al input */
  .file-upload {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 14px 15px 14px 45px; /* espacio para el ícono */
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 1rem;
    color: #555;
    background: #f9f9f9;
    cursor: pointer;
    transition: 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .file-upload:hover {
    border-color: #009fe3;
    background: #fff;
    box-shadow: 0px 0px 8px rgba(0, 159, 227, 0.2);
  }
  
  /* Botón dentro del campo */
  .file-upload span {
    background: linear-gradient(135deg, #009fe3, #00d4a5);
    color: #fff;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 8px;
    white-space: nowrap;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  .file-upload span:hover {
    transform: translateY(-1px);
    box-shadow: 0px 4px 10px rgba(0, 159, 227, 0.3);
  }
  
  /* Texto con el nombre del archivo */
  .file-upload p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Icono 📎 dentro del campo */
  .file-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
    pointer-events: none;
  }
  
  /* Etiqueta flotante "Adjunta tu CV" */
  .file-field label {
    position: absolute;
    top: 50%;
    left: 45px;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 5px;
    font-size: 0.95rem;
    color: #777;
    pointer-events: none;
    transition: 0.3s ease;
  }
  
  /* Cuando se selecciona archivo o hay focus */
  .file-field input[type="file"]:focus + .file-upload + label,
  .file-field input[type="file"]:valid + .file-upload + label {
    top: -10px;
    font-size: 0.8rem;
    color: #009fe3;
  }
  
  
  /* =============================
     BOTÓN SUBMIT
     ============================= */
  #trabajaForm button {
    background: linear-gradient(135deg, #009fe3, #00d4a5);
    border: none;
    padding: 14px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  
  #trabajaForm button:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 15px rgba(0, 159, 227, 0.4);
  }
  
  /* Respuesta */
  #respuesta_trabaja {
    margin-top: 10px;
    font-size: 0.95rem;
    text-align: center;
  }
  
  /* =============================
     RESPONSIVE
     ============================= */
  @media (max-width: 600px) {
    #trabaja {
      padding: 25px;
    }
  
    #trabaja h2 {
      font-size: 1.6rem;
    }
  
    #trabaja p {
      font-size: 0.95rem;
    }
  }
  

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  