/*
Theme Name:   Salient Child
Description:  Tema hijo para Salient con barra flotante
Author:       Estudio Graffiti
Template:     salient
Version:      1.0.0
*/

/* =========================================
   CSS DE LA BARRA FLOTANTE (CON SVGs)
   ========================================= */
.mg-cta-shell {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    max-width: 92%;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    z-index: 9999999 !important; /* Muy alto para Salient */
    padding: 10px 25px;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    transition: transform 0.4s ease;
    font-family: inherit; /* Hereda la fuente de Salient */
}

.mg-cta-container { display: flex; align-items: center; gap: 20px; }

/* TEXTO IZQUIERDA */
.mg-cta-copy { display: flex; align-items: center; gap: 12px; color: #333; line-height: 1.2; padding-right: 15px; border-right: 1px solid #eee; }
.mg-cta-dot { height: 10px; width: 10px; background-color: #25D366; border-radius: 50%; animation: pulse-dot 2s infinite; }
.mg-cta-text { display: flex; flex-direction: column; font-size: 14px; }
.mg-cta-text span { font-weight: 400; color: #666; font-size: 12px; }
.mg-cta-text strong { font-weight: 700; color: #000; }

/* BOTONES */
.mg-cta-actions { display: flex; align-items: center; gap: 8px; }
.mg-cta-btn { text-decoration: none !important; padding: 8px 18px; border-radius: 50px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; }
.mg-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* COLORES */
.mg-btn-whatsapp { background-color: #25D366; color: #fff !important; }
.mg-btn-light { background-color: #f4f4f7; color: #1e293b !important; }
.mg-btn-primary { background-color: #A6CE40; color: #fff !important; }

/* CERRAR */
.mg-cta-close { background: none; border: none; font-size: 18px; cursor: pointer; color: #ccc; margin-left: 10px; padding: 5px; line-height: 1; }
.mg-cta-close:hover { color: #333; }

@keyframes pulse-dot {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* RESPONSIVE MÓVIL */
@media (max-width: 991px) {
    .mg-cta-shell { bottom: 20px; width: 94%; padding: 10px 12px; border-radius: 18px; flex-direction: column; }
    .mg-cta-container { width: 100%; justify-content: space-between; }
    .mg-cta-copy { display: none; }
    .mg-cta-actions { width: 100%; justify-content: space-between; gap: 6px; }
    .mg-cta-btn { flex: 1; justify-content: center; padding: 12px 5px; font-size: 13px; }
}
