/* Estilos para el footer moderno inspirado en Buff Motion */
.site-footer {
  background-color: black;
  color: white;
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
  margin-top: -1px; /* Elimina cualquier espacio entre el footer y el contenido anterior */
}

/* Texto de fondo gigante "IBICENCAMENTE" */
.footer-background-text {
  position: absolute;
  font-size: 13vw; /* Tamaño ajustado para que quepa completo */
  font-weight: 900;
  color: #ffffff; /* Blanco puro */
  z-index: 1;
  top: -25px; /* Lo empujamos un poco hacia arriba para que se fusione con el contenido anterior */
  left: 0;
  width: 100%;
  text-align: center;
  pointer-events: none; /* Para que no interfiera con los clics */
  letter-spacing: -0.05em;
  opacity: 1;
  transform-origin: top center;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 40px 40px; /* Aumentamos aún más el padding superior */
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Dos columnas */
  gap: 40px;
  min-height: 300px; /* Altura mínima para asegurar espacio vertical suficiente */
}

/* Sección de newsletter */
.footer-newsletter {
  grid-column: 1;
}

.footer-newsletter h2 {
  font-size: 1.8rem;
  margin: 0 0 15px 0;
  font-weight: 700;
}

.footer-newsletter p {
  margin: 0 0 20px;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  margin-top: 20px;
  border-bottom: 1px solid #1c1c28;
  max-width: 300px;
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 5px;
  font-size: 1rem;
  color: #1c1c28;
}

.newsletter-form input::placeholder {
  color: rgba(28, 28, 40, 0.7);
}

.newsletter-form button {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0 5px;
  color: #1c1c28;
}

/* Sección de contacto/visita */
.footer-contact {
  grid-column: 1;
  padding-right: 20px;
}

.footer-contact h2 {
  font-size: 1.8rem;
  margin: 0 0 15px 0;
  font-weight: 700;
}

.footer-contact address {
  font-style: normal;
  line-height: 1.5;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-contact p {
  font-size: 1.1rem;
}

/* Sección de redes sociales */
.footer-social {
  grid-column: 2;
  justify-self: end;
  align-self: start;
  padding-top: 10px;
}

.footer-social h2 {
  font-size: 1.8rem;
  margin: 0 0 15px 0;
  font-weight: 700;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-links a {
  color: #1c1c28;
  font-size: 1.5rem;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  opacity: 0.7;
}

/* Elemento decorativo */
.decorative-element {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.dot {
  width: 10px;
  height: 10px;
  background-color: #1c1c28;
  border-radius: 50%;
  margin-bottom: 10px;
}

.line {
  width: 80px;
  height: 2px;
  background-color: #1c1c28;
}

/* Línea divisoria y pie */
.footer-bottom {
  grid-column: 1 / -1;
  margin-top: 60px; /* Aumentamos el margen superior */
  padding-top: 20px; /* Añadimos padding superior */
  border-top: 1px solid rgba(28, 28, 40, 0.1); /* Añadimos una línea sutil */
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

.footer-bottom-right a {
  color: #1c1c28;
  text-decoration: none;
  margin-left: 20px;
}

/* Estilos responsivos */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .footer-contact {
    grid-column: 1;
  }
  
  .footer-social {
    grid-column: 1;
    justify-self: start;
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 100px;
  }
  
  .footer-contact,
  .footer-social {
    grid-column: 1;
    text-align: left;
    justify-self: start;
  }
  
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .footer-bottom-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .footer-bottom-right a {
    margin-left: 0;
  }
  
  .footer-background-text {
    font-size: 20vw; /* Ajustamos para móviles */
    top: -10px; /* Ajustamos la posición en móviles */
  }
  
  .decorative-element {
    align-items: flex-start;
    margin-top: 20px;
  }
}