/* --- VARIABLES --- */
:root {
    --footer-bg: #ffffff;
    --footer-text: #475569;
    --footer-title: #1e293b;
    --primary-color: #2563eb; /* Azul Institucional */
    --accent-color: #0f172a;
    --success-color: #10b981;
    --border-color: #e2e8f0;
}

/* --- CONTENEDOR PRINCIPAL --- */
.modern-footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding-top: 3rem;
    padding-bottom: 1.5rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--footer-text);
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- BARRA DE ESTADO EN VIVO (Live Status) --- */
.live-status-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

/* Indicador verde de pulso */
.live-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.live-indicator {
    position: relative;
    width: 12px;
    height: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--success-color);
    border-radius: 50%;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: var(--success-color);
    border-radius: 50%;
    animation: pulse-animation 2s infinite;
    opacity: 0.5;
}

@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

.live-title {
    font-weight: 700;
    color: var(--footer-title);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Grid de Usuarios (Chips) */
.users-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1rem;
}

.user-chip {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border-color);
    padding: 4px 12px 4px 4px;
    border-radius: 50px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.user-chip:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.1);
}

.user-avatar {
    width: 24px;
    height: 24px;
    background: #eff6ff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-right: 8px;
}

.user-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--footer-title);
}

.live-footer-info {
    font-size: 0.85rem;
    color: #64748b;
    border-top: 1px dashed var(--border-color);
    padding-top: 10px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.total-badge {
    background: #dcfce7;
    color: #166534;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
}

/* --- GRID DE ENLACES --- */
.footer-main-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 3rem;
}

.footer-logo {
    max-width: 160px;
    margin-bottom: 1rem;
    display: block;
}

.brand-col p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #25D366;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-whatsapp:hover {
    background-color: #1ebc57;
    color: white;
}

.footer-col h4 {
    color: var(--footer-title);
    font-weight: 700;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--footer-text);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px; /* Efecto sutil de movimiento */
}

/* --- COPYRIGHT BARRA INFERIOR --- */
.footer-copyright {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.made-with .fa-heart {
    color: #e11d48;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.heart-beat {
    animation: heartbeat 1.5s infinite;
    display: inline-block;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: #94a3b8;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* --- RESPONSIVE MOBILE --- */
@media (max-width: 991px) {
    .footer-main-grid {
        grid-template-columns: 1fr 1fr; /* 2 columnas en tablet */
    }
    .brand-col {
        grid-column: span 2; /* Logo ocupa todo el ancho arriba */
    }
}

@media (max-width: 600px) {
    .footer-main-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
        gap: 30px;
    }
    .brand-col {
        grid-column: span 1;
        text-align: center;
    }
    .footer-logo {
        margin: 0 auto 1rem auto;
    }
    .footer-copyright {
        flex-direction: column;
        text-align: center;
    }
    .users-grid {
        justify-content: center;
    }
    .live-footer-info {
        flex-direction: column;
        text-align: center;
    }
}