/* =============================
   CONTACTO - ESTILO GENERAL
============================= */
.contacto {
  font-family: 'Montserrat', sans-serif;
  background-color: #fff;
  color: #1a1a1a;
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.contacto-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.contacto-intro h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  color: #008c45;
}

.contacto-intro p {
  font-size: 1.2rem;
  color: #333;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =============================
   FORMULARIO
============================= */
.contacto-formulario {
  background: #f9f9f9;
  padding: 3rem 2rem;
  border-radius: 1rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.campo label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #444;
}

.campo input,
.campo select,
.campo textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 0.8rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: #008c45;
  outline: none;
}

.campo textarea {
  resize: vertical;
  min-height: 120px;
}

.campo.enviar {
  text-align: center;
}

/* =============================
   BOTÓN CON ESTILO INDEX
============================= */
button[type='submit'] {
  position: relative;
  display: inline-block;
  padding: 0.75rem 2rem;
  font-size: 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;
}

button[type='submit']::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;
}

button[type='submit']:hover::before {
  background-position: 100% 50%;
}

button[type='submit']:hover {
  background: rgba(0, 0, 0, 0.8);
  color: white;
}

/* =============================
   PRIVACIDAD
============================= */
.campo label[for='privacidad'] {
  font-weight: normal;
}

.privacidad {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

.privacidad input[type='checkbox'] {
  margin-top: 0.2rem;
}

.privacidad a {
  color: #008c45;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.privacidad a:hover {
  color: #cd212a;
}

.privacidad {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: #555;
  text-align: center;
  line-height: 1.5;
  margin: 1rem auto 0 auto;
  max-width: 100%;
}

.privacidad input[type='checkbox'] {
  margin: 0;
  transform: scale(1.1);
  accent-color: #008c45;
}

.privacidad label {
  cursor: pointer;
}

.privacidad a {
  color: #008c45;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.privacidad a:hover {
  color: #cd212a;
}

/* =============================
   ERRORES
============================= */
.error {
  border: 1px solid #cd212a;
  outline: none;
}

.error-msg {
  color: #cd212a;
  font-size: 0.9rem;
  margin-top: 0.3rem;
}

/* =============================
   RESPONSIVE
============================= */
@media (max-width: 768px) {
  .contacto {
    padding: 7rem 1rem 3rem;
  }

  .contacto-formulario {
    padding: 2rem 1rem;
  }

  form {
    gap: 1.5rem;
  }

  .privacidad {
    flex-direction: column;
    align-items: flex-start;
  }

  .campo.enviar {
    text-align: center;
  }
}
