/* ===== Contenedor principal (animación inicial) ===== */
.contacto-container {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.contacto-container.animar {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Intro ===== */
.contacto-intro {
  text-align: center;
  margin: 3rem auto 2rem;
  max-width: 800px;
  padding: 1rem;
}

.contacto-intro h2 {
  font-size: 2.4rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.contacto-intro p {
  color: #d1d1d1;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* ===== Main (grid) ===== */
.contacto-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

/* ===== Formulario ===== */
.contacto-form {
  border: solid 1px rgba(255, 255, 255, 0.184);
  background: rgba(15, 15, 15, 0.447);
  padding: 2.5rem;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(62, 87, 96, 0.612);
}

.campo {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.2rem;
}

.campo label {
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #e5e5e5;
}

.campo input,
.campo textarea {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.9rem;
  color: #fff;
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: none;
}

.campo input::placeholder,
.campo textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);

}

.campo input:focus,
.campo textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid #4da3ff;
}

.aceptacion-rgpd {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
}
.btn-politica {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  color: #4da3ff;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
}

.btn-politica:hover {
  text-decoration: none;
}
/* Botón enviar */
.btn-enviar {
  background: linear-gradient(135deg, #0078ff, #4da3ff);
  color: #fff;
  border: none;
  padding: 1rem;
  width: 100%;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
}

.btn-enviar:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #4da3ff, #0078ff);
}

.mensaje-exito {
  display: none;
  color: #4ade80;
  font-weight: bold;
  text-align: center;
  margin-top: 1rem;
  font-size: 1rem;
}

.mensaje-exito.visible {
  display: block;
}

/* ===== Información lateral ===== */
.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border: solid 1px rgba(255, 255, 255, 0.184);
  background: rgba(15, 15, 15, 0.447);
  border-radius: 14px;
  align-self: start;
  box-shadow: 0 8px 25px rgba(62, 87, 96, 0.612);
  text-align: center;
}

.contacto-info h3 {
  font-size: 1.3rem;
  color: #ffffff;
  
}

.contacto-info a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  display: block;
}

.contacto-info a:hover {
  text-decoration: underline;
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  padding: 0.8rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  display: inline-block;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}

/* ===== Mapa ===== */
.contacto-mapa {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.contacto-mapa iframe {
  border-radius: 12px;
  width: 100%;
  height: 380px;
  border: none;
}

/* ===== Fondo con imagen + blur para la sección de contacto ===== */
.contacto-container {
  position: relative;
  overflow: hidden;
  background: none;

}

.contacto-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/heroContacto.webp') center/cover no-repeat;
  filter: blur(3px) brightness(0.55);
  /* Blur + oscurecer */
  transform: scale(1.1);
  /* Evita bordes blancos por el blur */
  z-index: -2;
  /* Queda al fondo */
}

/* Overlay adicional para un toque elegante */
.contacto-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  z-index: -1;
}

.contacto-container::before {
  background-attachment: fixed;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .contacto-main {
    grid-template-columns: 1fr;
  }

  .contacto-info {
    margin-top: 2rem;
  }
}

@media (max-width: 600px) {
  .contacto-container::before {
    background-position: center;
    background-size: cover;
    transform: scale(1);
  }
  .contacto-intro h2 {
    font-size: 1.8rem;
  }

  .btn-enviar {
    font-size: 1rem;
  }
}