/* --- ESTILOS DEL MODAL (POPUP) --- */
/* (No se usa actualmente, pero se deja por compatibilidad si hiciera falta) */
.shopcrm-modal{display:flex;position:fixed;z-index:99999;left:0;top:0;width:100%;height:100%;background:rgba(0,0,0,0.5);}

/* --- ESTILOS DE BANNERS FLOTANTES --- */
#shopcrm-flotantes{position:fixed;z-index:9999;pointer-events:none}
#shopcrm-flotantes .shopcrm-flotante{pointer-events:auto;position:fixed;margin:10px}

/* Clases de posicionamiento */
.shopcrm-flotante.top-left{top:10px;left:10px}
.shopcrm-flotante.top-right{top:10px;right:10px}
.shopcrm-flotante.bottom-left{bottom:10px;left:10px}
.shopcrm-flotante.bottom-right{bottom:10px;right:10px}

/* --- Estilos para Banner Centrado --- */
.shopcrm-flotante.center {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    margin: 0; 
}

/* --- Estilos para Banner Draggable y Cerrable --- */
.shopcrm-flotante {
    margin: 10px; 
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 4px;
    padding: 4px; 
    cursor: move; 
    overflow: visible; /* Corregido para mostrar X */
}

.shopcrm-iframe-content { width: 100%; height: 100%; border: 0; }

/* Botón de cerrar (X) */
.shopcrm-close-banner {
    position: absolute; top: -10px; right: -10px;
    width: 24px; height: 24px; line-height: 22px; 
    text-align: center; background: #000; color: #fff;
    border-radius: 50%; font-size: 18px; font-weight: bold;
    cursor: pointer; z-index: 10; border: 1px solid #fff;
}
.shopcrm-close-banner:hover { background: #d00; }


/* --- NUEVO: RESPONSIVIDAD (Visibilidad por dispositivo) --- */
@media (max-width: 768px) {
    .shopcrm-hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
    .shopcrm-hide-desktop { display: none !important; }
}

/* --- NUEVO: ESTILOS BANNER DE CONFIANZA (Presets) --- */
.shopcrm-trust-banner-card {
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 10px 0;
    position: relative;
    transition: all 0.3s ease;
}

/* Estilo: Shadow (Sombra) - Predeterminado */
.trust-style-shadow {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border: none;
}

/* Estilo: Border (Bordeado) */
.trust-style-border {
    border: 2px solid rgba(0,0,0,0.1);
    box-shadow: none;
}

/* Estilo: Flat (Plano) */
.trust-style-flat {
    box-shadow: none;
    border: none;
}

/* Estilo: Alert (Rojo Intenso) */
.trust-style-alert {
    border: 2px solid #d32f2f;
    box-shadow: 0 0 8px rgba(211, 47, 47, 0.4);
    animation: pulse-alert 2s infinite;
}

/* Estilo: Antenna (Señal/Pulso) */
.trust-style-antenna::before {
    content: '';
    position: absolute;
    top: 10px; right: 10px;
    width: 10px; height: 10px;
    background-color: #4CAF50;
    border-radius: 50%;
    animation: antenna-pulse 1.5s infinite;
}

/* Animaciones para estilos */
@keyframes pulse-alert {
    0% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(211, 47, 47, 0); }
    100% { box-shadow: 0 0 0 0 rgba(211, 47, 47, 0); }
}
@keyframes antenna-pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

/* --- NUEVO: EFECTO MARQUEE (Scrolling Text) --- */
.shopcrm-trust-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}


.marquee-content {
    display: inline-block;
    padding-left: 100%;
    font-weight: 600;
    font-size: 15px;
    
    /* VELOCIDAD PARA PC (Escritorio) */
    /* Entre más alto el número, más lento se mueve */
    animation: marquee 30s linear infinite; 
}

/* VELOCIDAD ESPECÍFICA PARA MÓVILES */
@media (max-width: 768px) {
    .marquee-content {
        /* Aquí puedes poner un número distinto para celular si lo ves muy rápido o lento */
        animation-duration: 30s; 
    }
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}