/* =============================
   TRABAJO - ESTILOS GENERALES
============================= */
.trabajo {
  font-family: 'Montserrat', sans-serif;
  color: #1a1a1a;
  background-color: #fff;
  line-height: 1.6;
  box-sizing: border-box;
  padding-top: 6rem;
}

/* =============================
   VISUAL 1: Imagen + Texto
============================= */
.trabajo-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 2rem 2rem;
  align-items: start;
}

.trabajo-visual-img {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.trabajo-visual-img img {
  width: 100%;
  max-width: 420px;
  border-radius: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  object-fit: cover;
}

.trabajo-visual-texto {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.trabajo-visual-texto h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #008c45;
  margin-bottom: 1.2rem;
}

.trabajo-visual-texto p {
  font-size: 1.15rem;
  color: #333;
  max-width: 40ch;
  margin: 0;
}

/* =============================
   VISUAL 2: Banner de fondo
============================= */
.trabajo-banner {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  margin-top: 2rem;
}

.trabajo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.trabajo-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  color: #fff;
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
}

.trabajo-banner-overlay h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.trabajo-banner-overlay p {
  font-size: 1.2rem;
  max-width: 60ch;
  margin: 0 auto;
}

/* =============================
   FORMULARIO
============================= */
.trabajo-formulario {
  background-color: #f9f9f9;
  padding: 5rem 2rem;
  box-sizing: border-box;
}

.formulario {
  background: #fff;
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.campo {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  border-radius: 1rem;
  border: 1px solid #ccc;
  background-color: #fafafa;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

/* PRIVACIDAD FORMULARIO TRABAJO */
.campo-privacidad {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.8rem;
  margin-top: 2rem;
}

.label-privacidad {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  max-width: 600px;
}

.label-privacidad a {
  color: #008c45;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.label-privacidad a:hover {
  color: #cd212a;
}

.campo-privacidad input[type='checkbox'] {
  width: 22px;
  height: 22px;
  accent-color: #008c45;
  cursor: pointer;
}

.boton {
  text-align: center;
  margin-top: 2rem;
}

.btn-enviar {
  position: relative;
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50px;
  text-decoration: none;
  overflow: hidden;
  z-index: 0;
  transition: color 0.3s ease, background 0.3s ease;
}

.btn-enviar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50px;
  padding: 2px;
  background: linear-gradient(135deg, #2e8b57, #ffffff, #d2222d);
  background-size: 300%;
  background-position: 0% 50%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background-position 0.6s ease;
}

.btn-enviar:hover::before {
  background-position: 100% 50%;
}

.btn-enviar:hover {
  background: rgba(0, 0, 0, 0.8);
  color: white;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 768px) {
  .trabajo {
    padding-top: 6.5rem;
  }

  /* VISUAL */
  .trabajo-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }

  .trabajo-visual-img,
  .trabajo-visual-texto {
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
  }

  .trabajo-visual-img {
    margin-bottom: 0;
    text-align: center;
  }

  .trabajo-visual-texto {
    text-align: center;
  }

  .trabajo-visual-texto h1 {
    font-size: 2rem;
  }

  .trabajo-visual-texto p {
    font-size: 1rem;
    margin: 0 auto;
  }

  /* BANNER */
  .trabajo-banner {
    height: 50vh;
    margin-top: 2rem;
  }

  .trabajo-banner-overlay h2 {
    font-size: 1.8rem;
  }

  .trabajo-banner-overlay p {
    font-size: 1rem;
  }

  /* FORMULARIO */
  .trabajo-formulario {
    padding: 3rem 1.5rem;
  }

  .formulario {
    padding: 2rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .campo input,
  .campo textarea,
  .campo select {
    width: 100%;
    box-sizing: border-box;
  }

  .checkbox {
    flex-direction: column;
    align-items: flex-start;
  }

  .checkbox input {
    margin-top: 0;
  }

  .btn-enviar {
    width: auto;
    max-width: 100%;
    white-space: nowrap;
  }
}
