/*contacto.css*/

#contact-hero {
  position: relative;                /* Permite superponer el overlay */
  height: 60vh;                      /* Ocupa el 60% de la altura de la ventana */
  background: url('../img/hero-contacto.webp') center/cover no-repeat;
                                     /* Imagen centrada y cubre todo el espacio */
  display: flex;                     /* Flex para centrar el contenido */
  align-items: center;               /* Centra verticalmente */
  justify-content: center;           /* Centra horizontalmente */
}

#contact-hero .overlay {
  position: absolute;                /* Cubre toda la sección */
  inset: 0;                          /* top/right/bottom/left = 0 */
  background: rgba(0, 0, 0, 0.4);    /* Capa oscura semitransparente */
}

#contact-hero .hero-content {
  position: relative;                /* Se sitúa sobre el overlay */
  text-align: center;                /* Texto centrado */
  color: #fff;                       /* Texto en blanco para contraste */
  z-index: 1;                        /* Por encima del overlay */
}

#contact-hero h1 {
  font-size: 3rem;                   /* Título grande */
  margin-bottom: 1rem;               /* Separación inferior */
}

#contact-hero p {
  font-size: 1.25rem;                /* Texto descriptivo de tamaño medio */
}

#contact-main {
  padding: 4rem 0;
}

/* Contact grid tweak */
#contact-us {
  padding: 4rem 0;
}


.contact-social-btn.whatsapp {
  background: #25D366;
  color: #fff;
}
.contact-social-btn.whatsapp:hover {
  background: #fff;
  color: #25D366;
}

.contact-social-btn.tripadvisor {
  background: #34E0A1;
  color: #fff;
}
.contact-social-btn.tripadvisor:hover {
  background: #fff;
  color: #34E0A1;
}
.contact-social-btn.tripadvisor img {
  filter: brightness(0) invert(1);
  transition: filter 0.2s;
}
.contact-social-btn.tripadvisor:hover img {
  filter: brightness(0) saturate(100%) invert(68%) sepia(21%) saturate(749%) hue-rotate(116deg) brightness(101%) contrast(92%);
}

.contact-social-btn.facebook {
  background: #1877F3;
  color: #fff;
}
.contact-social-btn.facebook:hover {
  background: #fff;
  color: #1877F3;
}

.contact-social-btn.instagram {
  background: #E1306C;
  color: #fff;
}
.contact-social-btn.instagram:hover {
  background: #fff;
  color: #E1306C;
}

.contact-social-btn.youtube {
  background: #FF0000;
  color: #fff;
}
.contact-social-btn.youtube:hover {
  background: #fff;
  color: #FF0000;
}

.contact-social-btn.tiktok {
  background: #000000;
  color: #fff;
}
.contact-social-btn.tiktok:hover {
  background: #fff;
  color: #000000;
}
.form-contact textarea {
  resize: none;
}
.contact-social,
.contact-form-container {
  color: #111;
}
.form-contact label {
  color: #007b5e;
}
.form-contact input,
.form-contact textarea {
  color: #111;
}
.form-contact button {
  color: #fff;
}
.form-contact h2 {
  color: #111;
}

/* Estilos específicos para los iconos de redes sociales de la sección de contacto */
.contact-social-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.contact-social-btn {
  font-size: 3.6rem;
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff;
  color: #007b5e;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.contact-social-btn img {
  width: 64px;
  height: 64px;
}
.contact-social-btn:hover {
  background: #007b5e;
  color: #fff;
}
#contact-main {
  padding: 4rem 0;
}

.contact-flex {
  display: flex;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
}

.contact-social {
  flex: 1;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (max-width: 900px) {
  .contact-social-links {
    grid-template-columns: repeat(3, 1fr);
  }
  .contact-social {
    padding: 1.5rem 1rem;
  }
}

.contact-form-container {
  flex: 1;
  display: flex;
  align-items: center;
}

.form-contact {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.form-contact h2,
.form-contact label {
  color: #007b5e;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #4c7241;
  border-radius: 4px;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: #007b5e;
  outline: none;
}

.btn-cta {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #007b5e;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
}
.btn-cta:hover {
  background: #005a45;
}


@media (max-width: 900px) {
  #contact-main {
    padding: 1.5rem 0.5rem;
  }
  .contact-flex {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem 0.5rem;
    box-shadow: none;
    border-radius: 12px;
  }
  .contact-social, .contact-form-container {
    width: 100%;
    padding: 0;
  }
}
