/* ===================== CONTACTO ===================== */

/* Contenedor general con fondo y overlay */
.contact__container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centrado horizontal */
  align-items: center; /* centrado vertical */
  gap: 3rem;
  padding: 5rem 2rem;
  border-radius: 25px;
  overflow: hidden;
  background-image: url('/img/piscina2.jpeg'); /* ruta de tu imagen */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.contact__container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.45); /* overlay semitransparente */
  z-index: 0;
}

.contact__form-container .section__description {
  color: #ffcc00; /* el color que quieras */
}

/* Formulario y contenido */
.contact__form-container {
  flex: 1 1 400px;
  max-width: 450px;
  position: relative;
  z-index: 1;
  color: #fff;
  text-align: left; /* alineado a la izquierda */
  animation: fadeInUp 1s ease forwards;
}

.contact__form-container h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: white;
}

.contact__description {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: #cac7bb;
}

.contact__info {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.contact__info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #e0e0e0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact__info li:hover {
  transform: translateX(5px);
  color: #00b4d8;
}

/* Campos del formulario */
.contact__form input,
.contact__form textarea {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: none;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.contact__form input:focus,
.contact__form textarea:focus {
  box-shadow: 0 0 15px rgba(0, 180, 216, 0.5);
}

.contact__form textarea {
  min-height: 130px;
  resize: none;
}

/* Botón */
.contact__form button {
  background: linear-gradient(135deg, #00b4d8, #0077cc);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact__form button:hover {
  background: linear-gradient(135deg, #0077cc, #00b4d8);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(177, 30, 30, 0.35);
}

/* Imagen redonda a la derecha */
.contact__image-container {
  flex: 0 0 250px; /* tamaño fijo para la imagen */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1.2s ease forwards;
}

.contact__image-container img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #ffcc00;
  box-shadow: 0 10px 30px rgba(182, 44, 44, 0.4);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.contact__image-container img:hover {
  transform: scale(1.1) rotate(-3deg);
  box-shadow: 0 15px 40px rgba(155, 146, 146, 0.5);
}

/* Animación de entrada */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px);}
  to { opacity: 1; transform: translateY(0);}
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
  .contact__container {
    flex-direction: column-reverse;
    text-align: center;
    padding: 4rem 1.5rem;
  }

  .contact__form-container {
    text-align: center;
  }

  .contact__image-container img {
    width: 180px;
    height: 180px;
    margin-bottom: 2rem;
  }
}

@media (max-width: 576px) {
  .contact__form-container h2 {
    font-size: 1.8rem;
  }

  .contact__description {
    font-size: 0.95rem;
  }

  .contact__form button {
    padding: 12px 22px;
    font-size: 0.95rem;
  }

  .contact__image-container img {
    width: 150px;
    height: 150px;
  }
}
