/*
 Theme Name: Astra Child
 Theme URI: https://jasnet.mx
 Description: Tema hijo de Astra
 Author: Tu Nombre
 Author URI: https://tusitio.com
 Template: astra
 Text Domain: astra-child
 Version: 1.0.0
*/

/* Aquí va tu CSS personalizado */

/* Contenedor flotante: ahora en columna */
.whatsapp-float {
    position: fixed;
    bottom: 120px;    /* ajusta según el aviso de la tienda */
    right: 20px;
    display: inline-flex;
    flex-direction: column;    /* ⬅️ CLAVE: logo arriba, texto abajo */
    align-items: center;
    gap: 6px;                  /* espacio entre logo y texto */
    text-decoration: none;
    z-index: 999999;
    font-family: inherit;
}

/* Círculo donde va el logo y las ondas */
.whatsapp-circle {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.whatsapp-icon {
    width: 65px;
    height: 65px;
    display: block;
}

/* Texto debajo del logo */
.whatsapp-label {
    background: rgba(0, 0, 0, 0.75);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    text-align: center;
    line-height: 1.2;
}

/* Ondas verdes alrededor del círculo (igual que antes) */
.whatsapp-circle::before,
.whatsapp-circle::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #25D366;
    opacity: 0;
    transform: scale(1);
    pointer-events: none;
}

.whatsapp-circle::before {
    animation: whatsapp-wave 2s ease-out infinite;
}

.whatsapp-circle::after {
    animation: whatsapp-wave 2s ease-out infinite;
    animation-delay: 1s;
}

@keyframes whatsapp-wave {
    0% {
        transform: scale(0.7);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Opcional: ajustes en móvil */
@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 140px;
    }

    .whatsapp-circle {
        width: 52px;
        height: 52px;
    }

    .whatsapp-icon {
        width: 35px;
        height: 35px;
    }

    .whatsapp-label {
        font-size: 12px;
        padding: 3px 8px;
    }
}