/*
 Theme Name:   Energium Child
 Description:  Energium Child Theme
 Theme URI:	   https://demo.artureanec.com/themes/energium
 Author:       Artureanec
 Author URI:   https://demo.artureanec.com
 Template:     energium
 Version:      1.0.0
 License: GNU  General Public License version 3.0
 License URI:  http://www.gnu.org/licenses/gpl-3.0.html
 Text Domain:  energium-child
*/

/* =Theme customization starts here
------------------------------------------------------- */

/* Automaticas DS brand colors */
:root {
  --e-global-color-primary: #aa1124;
  --e-global-color-secondary: #002d1d;
  --e-global-color-accent: #aa1124;
}
a { color: #aa1124; }
a:hover { color: #002d1d; }
.elementor-button,
.elementor-button-wrapper .elementor-button,
button, .btn, input[type="submit"] {
  border-color: #aa1124 !important;
}
.elementor-button:hover,
button:hover, .btn:hover, input[type="submit"]:hover {
  background-color: #aa1124 !important;
  border-color: #aa1124 !important;
  color: #ffffff !important;
}
/* Botones flotantes de contacto
------------------------------------------------------- */
.ads-flotantes {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9998; /* por debajo del menu movil del tema, que usa 9999 */
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ads-flotantes__boton {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;   /* area tactil por encima de los 44 px recomendados */
  height: 52px;
  border-radius: 50%;
  color: #ffffff;
  background-color: #002d1d;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
  transition: transform .18s ease, background-color .18s ease;
}

/* WhatsApp es la accion principal y se deja en su verde reconocible;
   Facebook e Instagram quedan en el verde de la marca, un escalon por debajo */
.ads-flotantes__boton--whatsapp {
  background-color: #25d366;
}

.ads-flotantes__boton:hover,
.ads-flotantes__boton:focus-visible {
  color: #ffffff;
  background-color: #aa1124;
  transform: translateY(-2px);
}

.ads-flotantes__boton:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

.ads-flotantes__boton svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 767px) {
  .ads-flotantes {
    right: 12px;
    bottom: 12px;
    gap: 10px;
  }
  .ads-flotantes__boton {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ads-flotantes__boton {
    transition: none;
  }
  .ads-flotantes__boton:hover,
  .ads-flotantes__boton:focus-visible {
    transform: none;
  }
}
