/* Pie de página y botón flotante de WhatsApp */

/* Contenedor general del pie */
#et-pie {
  background-color: #0B1626;
  color: #DCE5F0;
  font-family: "Barlow", sans-serif;
  font-size: 17px;
  line-height: 1.5;
  padding: 64px 20px 48px;
}

#et-pie p {
  color: #DCE5F0;
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.7;
}

#et-pie li {
  color: #DCE5F0;
  margin-top: 0;
  margin-bottom: 12px;
}

#et-pie a {
  color: #FFFFFF !important;
  text-decoration: none;
}

#et-pie a:hover {
  text-decoration: underline;
}

/* Foco accesible */
#et-pie a:focus-visible,
.elementor-widget.et-flota a:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

/* Títulos H2 de columnas */
#et-pie .elementor-heading-title {
  font-family: "Barlow Semi Condensed", sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #FFFFFF !important;
  margin: 0 0 12px 0;
  text-transform: none;
}

/* Estructura de columnas en escritorio */
#et-pie > .elementor-container {
  max-width: 1140px;
  margin: 0 auto;
  gap: 48px;
  flex-wrap: nowrap;
}

#et-pie > .elementor-container > .elementor-column {
  flex: 1 1 0;
  width: auto;
}

/* Menú del pie en dos columnas */
.et-pie-menu .elementor-nav-menu {
  display: block;
  columns: 2;
  column-gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.et-pie-menu .elementor-nav-menu > li {
  padding: 0;
  margin: 0;
  break-inside: avoid;
}

.et-pie-menu .elementor-nav-menu a.elementor-item {
  padding: 5px 0 !important;
  min-height: 0;
  font: 400 17px/1.4 "Barlow", sans-serif;
  color: #FFFFFF !important;
  white-space: normal;
  text-transform: none;
  display: inline-block;
}

/* Redes sociales */
.elementor-social-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Barra inferior de derechos y créditos */
.et-pie-fin {
  padding: 0 20px;
}

.et-pie-fin > .elementor-container {
  max-width: 1140px;
  margin: 0 auto;
  border-top: 1px solid #2B3E58;
  padding: 18px 0 22px;
}

.et-pie-fin p {
  margin: 0;
  font: 400 15px/1.5 "Barlow", sans-serif;
  color: #DCE5F0 !important;
}

/* Botón flotante WhatsApp */
.elementor-widget.et-flota {
  --et-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 20.5l1.3-4.4a8.2 8.2 0 1 1 3.2 3.1z'/%3E%3Cpath d='M8.6 8.2c-.6 2.8 3.3 7 6.7 7.2.9-.2 1.4-.9 1.4-1.7l-2.3-1.1-1 1.1c-1.3-.5-2.4-1.6-2.9-2.9l1-1-1-2.2c-.8-.1-1.6.1-1.9.6z'/%3E%3C/svg%3E");
  position: fixed !important;
  right: 20px;
  bottom: 20px;
  width: 56px !important;
  height: 56px !important;
  margin: 0 !important;
  z-index: 999;
}

.et-flota p {
  margin: 0;
}

.et-flota .elementor-widget-container {
  margin: 0;
  padding: 0;
}

.et-flota a {
  position: relative;
  display: block;
  background: #0F7A3D;
  border-radius: 50%;
  font-size: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  width: 56px;
  height: 56px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.et-flota a:hover {
  background: #0b6030;
}

.et-flota a::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 28px;
  height: 28px;
  background: #FFFFFF;
  -webkit-mask: var(--et-wa) center / contain no-repeat;
  mask: var(--et-wa) center / contain no-repeat;
}

/* Adaptación para pantallas táctiles y móviles */
@media (max-width: 767px) {
  #et-pie {
    padding: 48px 20px 48px;
  }

  #et-pie > .elementor-container {
    flex-direction: column;
    gap: 36px;
  }

  #et-pie > .elementor-container > .elementor-column {
    width: 100%;
    flex: 1 1 auto;
  }

  .elementor-widget.et-flota {
    right: 16px;
    bottom: 16px;
  }
}

/* Respeto a reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .et-flota a {
    transition: none;
  }
}
