/**
 * Estilos para el Banner de Indicadores Financieros
 */

.ifb-banner-container {
    width: 100%;
    background-color: #ffffff;
    border: none;
    border-radius: 0;
    padding: 10px 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.ifb-banner-track {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ifb-banner-items {
    display: flex;
    align-items: center;
    animation: ifb-scroll linear infinite;
    white-space: nowrap;
    will-change: transform;
}

.ifb-banner-container:hover .ifb-banner-items {
    animation-play-state: paused;
}

.ifb-banner-item {
    display: inline-flex;
    align-items: center;
    padding: 0 30px;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
    flex-shrink: 0;
    height: 100%;
}

/* Estilo para la fecha */
.ifb-banner-item.ifb-banner-date {
    padding: 0 40px 0 20px;
}

.ifb-date-text {
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    font-style: italic;
}

.ifb-indicator-name {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    margin-right: 8px;
}

.ifb-indicator-value {
    font-size: 14px;
    font-weight: 600;
    color: #0066cc;
}

/* Separador entre items */
.ifb-banner-item::after {
    content: '•';
    color: #cccccc;
    margin-left: 20px;
    font-size: 12px;
    flex-shrink: 0;
}

.ifb-banner-item:last-child::after {
    display: none;
}

/* Animación de scroll */
@keyframes ifb-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ifb-banner-container {
        padding: 8px 0;
    }
    
    .ifb-banner-item {
        padding: 0 20px;
    }
    
    .ifb-banner-item.ifb-banner-date {
        padding: 0 30px 0 15px;
    }
    
    .ifb-date-text {
        font-size: 12px;
    }
    
    .ifb-indicator-name,
    .ifb-indicator-value {
        font-size: 12px;
    }
}

/* Mensaje de error */
.ifb-banner-error {
    padding: 20px;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    color: #666666;
    background-color: #f5f5f5;
    border-radius: 8px;
}

